I am stuck trying to input an admin username and password, but when I fill out the form, and click "save" it just gives me the same form again - like the info does not stick. Here is my link:
http://www.iiemena-discovery.org/zenphoto/zp-core/admin.phpMy setup seems to be all fine, just can't get past the prompt for an admin username and password. Please help!! thanks.
Comments
I have currently no idea why that does not work. Could you try reinstalling zenphoto please? Maybe a file got lost somehow...
Otherwise we'll have to wait if one of my fellow developers has any ideas.
Tried install again.
IIS 6.0/win2k server
Shawn
Please look in your database at the options table and see if there is a password stored in it. (It will be encrypted, so what is says is of no matter, just want to know if it got stored.)
I believe the issue has to do with client side cookies. Although they are set in both FF and IE7 when I check the cookie files I see nothing that pertains to Zenphoto on my domain (http://www.carboncow.net). Any ideas of anything on the server side with php/mysql that would not allow a persistent cookie?
Again, please note that this win2k server also runs a Joomla! website, Gallery 1.5 website as well as MS Frontpage with ASP. All this functionality has no issue with cookies.
Lastly how can I get email notifcation of updates to this thread? Not seeing the config for that need.
Thank you for your time, will get back shortly on the password in the database.
Shawn
What does this tell us? Is the system not writing to the database in this case? I have tried putting the root password to the correct database to double check my credentials with no success. Again I get no error messages about the install, all looks well.
Shawn
That said, I definitely think this is a cookie issue. If you're not seeing the cookie in your browser, that's a problem. If you can find one, delete it and try again. Also, try looking at your cookies right after logging in, and if you find one then let us know what's in it. Thanks.
I understand the 3 items I see are the column names, but what data are you looking for if there is NOTHING pertaining to user/pass content? Did you happen to look at my screen shot to my view? The options colums/table shows 48 values but I have no idea how to view them in mysql administrator.
What name(s) are given to Zen cookies? I've looked at my cookies in detail for my test site and see NOTHING pertaining to zen or my site. Additionally, there is nothing that posts immediately after a login attempt.
There has to be some error server side for this cookie concern since my cookies were 100% ok for all other needs on my server and others.
I need this software! I am sick of the bloatware of other gallery options!
The zenphoto cookies are named "zenphoto_auth".
This forum does not have email noficications but you can subscribe to the rss feed.
Loaded the nightly build but another issue is showing up now, see screenshot:
http://carboncow.net/php/gallery/view_photo.php?set_albumName=album164&id=screen2_002
although one can clearly see those permissions are given in the admin:
http://carboncow.net/php/gallery/view_photo.php?set_albumName=album164&id=screen3
I am going to reboot everything, clean up directories, databases and start over again tonight with the nightly build.
Did you add this identifier in the config message to the nightly build to trigger database permission issues or has this "shown up" now for another reason?
Shawn
"Your mySQL user must have Select, Insert, Update, and Delete rights. The SHOW GRANTS query failed."
during the Zenphoto Setup Config Page. This obviously has something to do with my inability to move forward but I can see nothing on the backend preventing the user from having these needed privileges. All other products I use function fine and was able to install another instance of Joomla! to test out the user/database privileges.
It's may be time to punt!
As for the password, in the options table there should be row with the name `adminuser` and one with the name `adminpass`. If these are present, the first should have the user name you picked and the second some strange looking numbers & letters.
If they are empty (blank) then the user/password is not being stored when you try to set it. If they have valid data then the problem must be with the cookie that remembers them for you.
the adminuser or adminpass entry are missing from the options table, so nothing is going into the database for this need...but the tables were created. So our issue must be with writing to the database correct?
You state the Show Grants query failed is not a concern. What about the permission issue from the message related to Select, Insert, Update, and Delete rights not being set? Is that most likely the smoking gun or are those simple query return issues too? Obviously the tables were created.
Sorry my limited knowledge of mysql and databases. I know enough to config and test but am not a coder or database expert.
Thank you for your time and comments.
If you can log in *at all* then the username/password are working, it's just the cookie mechanism that's the problem. So, do not worry about the database.
I think you're right about the problem being server-side, since you can't see the cookie at all (it's called 'zenphoto' I believe). I just wish I had more information, because I'm stumped...
Would you be willing to change the user/pass to something to share with us so we can test this out ourselves? Make it admin/pass1234 if that's ok.
I was curious in previous comments that I now see this comment, posibly a trigger written into the nightly build:
"Your mySQL user must have Select, Insert, Update, and Delete rights."
anything to be concerned about?
I'll crack open a mysql for dummies book I have around here and try to remember how to look tables/values via cmd line, late time I did that it took me all night to view things via cmd line.
No need for cmd line.
I have tried your site using the user=admin and pass=pass1234. I was unable to log in, I got a message saying that the user/password was not correct. Can you log in from the login screen with these credentials?
Again, do not worry about the database, forget about mysql, let's focus on Zenphoto first. Once we can see what's wrong we'll go from there.
I definitely want just the Zenphoto password changed - not the database password. Change the database back (make sure the zenphoto zp-config.php matches it), and just try changing the zenphoto password. Also, try logging in to zenphoto with the new username/password and make sure that works.
I'm sorry this was my error:
user:admin
pass:admin1234
I can in fact login with those credentials but as expected am returned to the same login screen. There must be a password in the database becuase even knowing I'm returned to that screen we know a "bad" password will inform us! Therefor the user/pass is accepted but the cookie issue is the concern.
This is the url: http://carboncow.net/zenphoto/zp-core/admin.php
user: admin
pass: admin1234
When I login the screen doesn't advance, it simply returns to a blank login screen but if I enter the wrong credentials it gives me a failure.
This first link shows you what I see after loging in:
http://carboncow.net/php/gallery/view_photo.php?set_albumName=album164&id=1_G
This link shows the error message when I enter the wrong credentials on purpose:
http://carboncow.net/php/gallery/view_photo.php?set_albumName=album164&id=2_G
Again, this tells me that the credentials are in fact being verified and when they fail we get the message we would expect. The correct credentials do not advance to the expected admin screen with tabs. I have never seen that screen after logging in.
Fun eh?
I honestly don't want to give up on the project but was hoping for an easy answer. I know these install can throw some curves as I have NEVER had and easy install on a Win2K server with Mambo, Joomla!, Gallery 1.5, ect. I think word press may have been the only think that never gave me issues, but I never liked that product.
Thanks again for the continued efforts. Let me know if you can get to the login screen with the credentials supplied.
Shawn
Now you are beyond my ability to help. Perhaps someone else would know why the cookie would not be sent.
How about you TRISWEB, you got any ideas why cookies are NOT being set?
I've filed a bug and we'll see if we can find the problem, but my first guess is some kind of server security setting. It seems like the username/password are validated and allowed, but then the cookie header simply does not get sent... very strange.
I'll research more later when I have time. Sorry I can't help you more...