can't login after 1.1.5 upgrade

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

  • What happens when you try to login?

    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.
  • pled Member
    Thanks sbillard,

    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.
  • pled Member
    and yes, the password was in cleartext in the database. Now it is coded.
  • Sorry, forgot the step of running setup.php again. It is needed.
  • Sorry, forgot the step of running setup.php again. It is needed.
  • NOn Member
    Hi, am having the same problem! I have only just installed zenphoto 1.1.5, fresh install, not an upgrade, on the day i did it, i was able to login and out, no problems, but since then, it gives me an error logging in. I have reset the passwords a few times to no avail and when i found this post i went into my database to look, but the passwords ARE encrypted, so didn't want to delete stuff unnecessarily... cache has been cleared, all of that... what should i do?

    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 is the error you are getting? Is "There was an error logging in...."?

    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.
  • robbo Member
    Hi,

    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.
  • robbo Member
    Ah...ok...I got it.

    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.
Sign In or Register to comment.