I am using : version 1.4.1.6 [8326](fresh install) and I am having issues setting an album password for private viewing.
Once I set the password in Admin and then try the password on that album in another browser, I am never allowed into the album. I just keep seeing the password entry page.
Any help would be appreciated. I can provide links and passwords to the devs to test if needed.
Comments
http://order.stein-photos.com/ and you will see the Gallery for the Lloyd Family is password protected
go to that gallery and put in the pass 'test'
when I do that here, I am taken to the Zenphoto admin login page and can never see the gallery.
``
that could explain why it keeps redirecting me to the admin sign in page.
Since you are running a custom theme, check to be sure you have not got any deprecated errors. If the theme is supplying the password form it may be incorrect.
Where would I see that?
I do not have any code for this type of form in my custom theme.
I see that the printLoginForm on password.php is passing NULL for the redirect.
`<?php $_zp_authority->printLoginForm(NULL, true, $_zp_gallery->getUserLogonField(), false, gettext("A password is required for the page you requested")); ?>`
and then on lib_auth.php lines 768 - 770 - if redirect is NULL, then redirect is set to point to the admin login.
hope this helps.
Not sure how to fix this though.
I am still playing with this, to see if I can figure out the proper $server variable to use
Change :
`<?php $_zp_authority->printLoginForm(NULL, true, $_zp_gallery->getUserLogonField(), false, gettext("A password is required for the page you requested")); ?>`
To :
`<?php $_zp_authority->printLoginForm($_SERVER['REQUEST_URI'], true, $_zp_gallery->getUserLogonField(), false, gettext("A password is required for the page you requested")); ?>`
You should try with an unmodified install/distributed theme and see if there is a problem with that combination.
Thanks
I'm running a custom theme but the stock themes aren't working either...won't let me login.
I even tried elrol's change this to that but it didn't work either. Recent upgrade to 1.4.3. I have another 1.4.3 install and that works fine. What do I need to copy from that to make the other one work?
Thanks,
Mike
You should upgrade to the 1.4.3.1 release. Then you will need to re-save any album passwords that were created on the 1.4.3 base release.
Thanks