Updated to 1.2 a couple of weeks ago and all seemed to go well. I then noticed that the comments was throwing up an error. No big problem, I disabled the comments for now. I then stumbled across another problem... Normally I leave myself logged in to Admin. I logged out to check that a hidden album was 'hidden'. Now I can't log back in!
Warning: unpack(): Type H: outside of string in /websitename/zp-core/auth_zp.php on line 52
Pretty sure that this is the same as I was getting with the comments section.
Is this down to the version of PHP or something else? What can I do to sort it out? Thanks.
Unfortunately, no. The bug is in your PHP: http://bugs.php.net/bug.php?id=31465
You need to upgrade your PHP, but not to 5.0.3! The bug is in 4.3.10 and 5.0.3.
I am not really sure why that error is making the login fail. But you can disable the captcha on the login (and thus bypass the error) by changing line 357 in admin-functions.php. It currently reads if (count(getAdminEmail()) > 0) {. Change it to if (false) { The down side of this is that it also disables the password reset e-mail.
EDIT: Just noticed that you said when you log off you are redirected to the upgrade page. Did you run setup after you loaded the nightly build? If not you need to. Zenphoto detects when the files have been upgraded and redirects you to the setup page so that you will run it to make any database changes that might be needed.