Admin Username/Password Erased After Upgrade

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?

Comments

  • Also: When I reset my password, the new password does not change in the SQL database.
  • Delete the OPTION table row for `adminpass`, `adminuser`, `admin_name`, and `admin_email`. Drop the table `ADMINISTRATORS` then re-run setup.
  • 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?
  • 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.
  • 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
Sign In or Register to comment.