![]() |
|
admin login failing yet everything "seems" set ok - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: admin login failing yet everything "seems" set ok (/thread-4847.html) Pages:
1
2
|
admin login failing yet everything "seems" set ok - MartinHansell - 2009-03-14 Hi, I am unable to login as admin (the link is even missing on my home page). When I try I get Quote:There was an error logging in. Check your username and password and try again. But it is working fine for browsing... strange huh? Anyone able to point me in the right direction? admin login failing yet everything "seems" set ok - sbillard - 2009-03-14 You cannot directly set passwords since they are stored as encrypted strings. So your mysql setting will cause it to be impossible for you to log in. Delete the rows of your administrator table and you will get the new install set user/password screen when you visit admin. As for browsing, no login is needed normally to view a site. admin login failing yet everything "seems" set ok - MartinHansell - 2009-03-14 Thanks for your response... I have tried that and it has had no effect. What are the other possible causes? Permissions? I have them all set to www-data... Quote:// If this is a new Zenphoto install, change the following to from 'false' to 'true' admin login failing yet everything "seems" set ok - sbillard - 2009-03-14 That fixed the login? admin login failing yet everything "seems" set ok - MartinHansell - 2009-03-14 Yep... I migrated from Windows to Linux a little while back... but the setting in zp-config.php was "false" under Windows. Not sure why it should require this on a Linux box, but hey! Maybe I changed my MySQL installation and configuration to being utf8 when I switched to Linux (it was a while back and becoming a Linux user is all a bit of a blur) hence maybe I was unable to read the data in it without having the setting as "true". If you get any ideas it would be good to know for general future use. admin login failing yet everything "seems" set ok - sbillard - 2009-03-14 Do you have accented characters in your user ID? that is the only thing this should impact. admin login failing yet everything "seems" set ok - staz - 2009-03-30 I just installed zenphoto for the first time and after all of that, I am now unable to login as admin as well. I get the same error as Martin: "There was an error logging in. Check your username and password and try again." I am positive I'm using the correct username/password because I just set it up five minutes earlier. This is very confusing. Any ideas as to why I suddenly can't login after just setting up zenphoto? admin login failing yet everything "seems" set ok - sbillard - 2009-03-30 Were you ever able to log in? Does the password reset work. (See the troubleshooting guide.) admin login failing yet everything "seems" set ok - staz - 2009-03-30 No, I was never able to log in and it still does not work. I checked the troubleshooting guide, but I am unsure where the "Administrators table" is. What file can that be found in exactly? admin login failing yet everything "seems" set ok - staz - 2009-03-30 Okay, I found the correct file. However, the Administrators table is not there and as best I can tell, there are no "adminuser" or "adminpass" in the Options table. Still, when I run setup, it continues to tell me the username/password are incorrect. I still have not received an email allowing me to reset the username/password either. admin login failing yet everything "seems" set ok - sbillard - 2009-03-30 You do have a Did the login form say it sent the reset e-mail? admin login failing yet everything "seems" set ok - staz - 2009-03-30 No, the login form tells me nothing but "There was an error logging in. Check your username and password and try again." I've even tried using the username/password listed in PHPmyadmin and still nothing. I just continually receive the same error message no matter what. I've only given zenphoto one email address (which it shows in the captcha on the login page) and have yet to receive a reset email. To be clear, this all started immediately after the initial zenphoto setup. I've not yet been able to login to zenphoto at all. admin login failing yet everything "seems" set ok - sbillard - 2009-03-30 How was Zenphoto installed? By uploading the files and running setup.php or via some 'quick install' script? The only times we have had this sort of problem is with things like simplescripts. Anyway, what you will need to do is delete the zp_administrators table then run the setup program. This will start you clean where you will provide a username and password for Zenphoto. These are NOT the same thing as your MySQL credentials. admin login failing yet everything "seems" set ok - staz - 2009-03-31 I uploaded the files and ran setup.php. There was no "quick install" script. I am trying to delete zp_administrators table, but I am not finding it in any files. What file is it in exactly? admin login failing yet everything "seems" set ok - acrylian - 2009-03-31
admin login failing yet everything "seems" set ok - staz - 2009-03-31 Thank you! Just deleted the zp_administrators table and that worked! Yay, I'm in! But no, I never used a quick install script such as SimpleScripts/Fantastico/etc. I just uploaded the files to my ftp and ran setup.php. Will deleting the zp_administrators table give me any problems in the future or am I safe without it? admin login failing yet everything "seems" set ok - sbillard - 2009-03-31 Setup has recreated the table, so you are back on a clean slate. You should check with your provider on why you did not get the reset e-mail. Presumably they are not supporting the PHP mail capability. If this is the case you will also not get comment notification if you have enabled it. In the mean time, maybe a post-it note with your user/password would be a good investment admin login failing yet everything "seems" set ok - cleavon - 2009-05-09 Guys, admin login failing yet everything "seems" set ok - sbillard - 2009-05-09 Sorry, simplescripts seems to be a problem for passwords. You need to contact the simplescript people on this. Many threads to this effect on the forum here. Something simplescript is doing is really messing things up. admin login failing yet everything "seems" set ok - AlanB66 - 2009-06-30 OK, this is quite annoying. Bear with me, 'cause I can prove this is not an MD5 password ... I set up a new user and set their password to: 83mB7tNN When I try to use mySQL in my zp_administrators table to alter the password and use the MD5 function against the string '83mB7tNN', I also see the results as: 2967F60F5CB7194F74C942A150D40648 When I try to log in to my ZenPhoto admin page with this account, it fails. So, the question remains, what is the encryption method for ZenPhoto's zp_administrators' password column? |