Can't guest login to password protected albums.

I have an album that has a guest user and password. ZP is correctly marking the album as protected. When I try to log in as the guest user I get an error that user id or password is incorrect. I have just done a new install on a 1and1 server:

# Zenphoto version 1.2.4 [3716] (Official Build)
# Current gallery theme: default
# PHP version: 4.4.9
# PHP memory limit: 96M (Note: Your server might allocate less!)
# MySQL version: 5.0.67

Should I redo with PHP5? Ideas?

Comments

  • Did you assign both a user and a password to the album or just a password? Some browsers "kindly" fill in user/password fields for you, so maybe you did not setup the user/password the way you thought or maybe on a subsequent save it got changed for you. You should check that.

    If you have provided a user name for the album it must be supplied along with the password when a guest attempts to log in.
  • Sbillard Valid guesses, but I believe I am entering it correctly. On the edit albumn page, after entering a guest user and password the form blanks the user field. When I look at the zp_albums table I see the password, but don't see a field for the user name.
  • Sorry, those are my only guesses. I cannot reproduce the problem, at least on the nightly build. Maybe you can try the nightly?
  • It must be the php or mysql setup at 1and1.

    Can you tell me what database field the guest user id is supposed to be in?
  • In the albums table, `password` and `user` fields. Note that the password is encrypted. The actual password is not stored.
  • That's what I was afraid of. I have no user field in the albums table. That is weird. Have you heard of this happening? Would the creation of that be my version of MySQL? When I go to the main admin page it shows 5.0.67, but if I revisit the setup.php page it says 4.0.27. Setup also wants to update some tables including albums, which I let it do, but it didn't help. User still MIA. I am so tired of 1and1.
  • Well, seems that admin and setup are reporting two different things. Admin is reporting the version of the MySQL client, Setup is reporting the version of the MySQL server. (I did not even know that there was a difference.) We will fix it so that they both report the same item.

    As to the login, I doubt it is a MySQL version difference.

    Did you ever try the nightly build?
  • FIXED:sbillard, thanks for staying with me on this. It was definitely a config issue. What exactly between the version of php, mysql, magic quotes and utf8 I am not sure, but it works. I have an install solution for 1and1 users here:

    http://www.cyberward.net/blog/2009/05/installing-zenphoto-on-1and1/
  • Glad it is working. If you ever discover what was wrong, let us know.
  • I do know that the install didn't create all the fields, such as user on the album table. I didn't try things one at a time, so it was some combination or one of magic quotes, utf8, the 4.x version of php, or the 5.x version of mysql I had. If you look at that blog post, BEFORE I ran the install I turned off magic quotes, set utf8 encoding, set to use php5, and created the database with mysql6. Sorry, but I didn't try the things one at a time.
  • Thanks anyway. None of those things `should` have caused the problems....
  • Thanks for letting me read this great post, keep it up.
Sign In or Register to comment.