Hello,
I just upgraded my local zenphoto album from 1.3 to 1.5. But now I can't login, I get the following error :
"There was an error logging in. Check your username and password and try again."
Here is what I did during the setup (something wrong most probably !):
I had first somme errors related .htaccess file : I first forgot to copy the new one, then with the new one some permissions related errors, that were solved modifying the RewriteBase value. Using 1.1.3, I had :
RewriteBase
http://localhost/wordpress/zenphoto /albums
With the new one, I have now :
RewriteBase /wordpress/zenphoto
??
Then I clicked Go!, and was presented a form to change my password : There were 2 areas as I remember, one already filled with username/password, and another blank.
I changed password in the first area, and let the second one empty. Should I have filled the 2nd ?
So I am stuck. I can check in the database table (zen_administrators) the user and password is correct. I have deleted all cookies, empty the cache, restarted everything. But still can't login. Note the album works fine.
What can I do ? Is there a way to reset it ?
Thank you for your help.
Comments
Is the password in zen_administrators in cleartext? If so, follow the steps below:
The definitave way to clear passwords is as follows (requires editing your database)
In the options table delete the records named `adminuser` and `adminpass`.
delete the table `administrators`
Both these tables will be prefixed by whatever you have selected for your zenphoto prefix.
You can also try upgrading to the nightly build of 1.1.5.
I did it and was prompted with the "Password reset request" form. But When I clicked OK, I got "Table 'wordpress.zen_administrators' doesn't exist".
So I ran setup again, but that time only empty the administrator table. And I could login ! :-)
Thanks a lot for the quick answer.
As i said, have only just set up the gallery, and it's already on display, so would rather not have to reinstall...? why has it suddenly stopped working? thanks for any help in advance
What happens when you request a password reset? Do you get an e-mail with a link to reset the password? What happens when you click on that link?
You can still follow the steps above to reset your password and start fresh. You should not require a reinstall.
I'm having this same problem.
I've just upgraded to 1.1.5. I think I was on 1.1.2 before this.
I ran the setup.php script.
When I try to log in I get:
"There was an error logging in.
Check your username and password and try again."
When I view the admininstrators table my password is readable.
I have tried the steps of emptying the table and rerunning setup.
Each time I do this:
- the administrator table is repopulated and
- the password is still human-readable and
- the login problem persists.
I had an adminuser and adminpass defined in my zp-config.php file. Once I removed that and redid all the repair steps it worked.