ZenphotoCMS Forum
Admin Username/Password Erased After Upgrade - 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 Username/Password Erased After Upgrade (/thread-2363.html)



Admin Username/Password Erased After Upgrade - thisisted - 2008-03-08

I upgraded from 1.1.1 to 1.1.5.

  1. Uploaded all files.
  2. Ran setup.php.
  3. Nothing was missing from the system check.
    My gallery shows up, but I cannot login. ZP says my username and password are incorrect.
    I re-uploaded all ZP files, tried the password reset function,
    but when I saved my new password ZP still says my username and password are incorrect.

What should I do to fix my problem?




Admin Username/Password Erased After Upgrade - thisisted - 2008-03-08

Also: When I reset my password, the new password does not change in the SQL database.




Admin Username/Password Erased After Upgrade - sbillard - 2008-03-08

Delete the OPTION table row for adminpass, adminuser, admin_name, and admin_email. Drop the table ADMINISTRATORS then re-run setup.




Admin Username/Password Erased After Upgrade - thisisted - 2008-03-08

Worked beautifully. Thank you very much.
Was there a change in the database structure from ZP 1.1.2 to 1.1.5?
If so, why didn't the setup script make these changes?




Admin Username/Password Erased After Upgrade - sbillard - 2008-03-08

Yes. In 1.1.1 the admin user/password were stored in the options tabel in clear text. The password store became encrypted on 1.1.2. In 1.1.5 the credentials are in a new table (since there can be multiple admins.) I suspect that the leap directly from the unencrypted password was what caused the problem, although I do not know why the password reset would have failed.




Admin Username/Password Erased After Upgrade - Yooakim - 2008-03-13

I had exatly the same problem and the workaround did not work for me at first.

The reason was that I had left the lines:
`

$conf['adminuser'] = "admin;

$conf['adminpass'] = "supersecret";

`

in my zp-config.php file.

Once I removed these lines and did as instructed above it worked fine.

Thanks for an excellent piece of software!

Cheers,
Joakim