Links to images aren't redirecting to Login Page

chrisb Member
edited December 2017 in General support

Hi, I've poked around a bit but need some help knowing where to look in order to solve this problem. Hoping someone can point me in the right direction.

I have a site where all of my albums are "unpublished" and users must log in to see anything.

I sometimes send photos links to users via email. These links work perfectly fine when the user has logged into the site, but the links do not redirect to the login page if the user is not logged into the site. Instead they an error message: "This page isn't working - HTTP ERROR 500". (I'm using Chrome)

I'd really like my users to be prompted to log in if they try to access my link. From what I've read, I think Zen Photo is supposed to behave this way. Should I be looking for a server configuraton problem, or a ZenPhoto configuration problem? Is Zen Photo code responsible for redirecting requests like this to the Login Page. I see there is a 404.php that supposed to be handling this error?

Here is a link that shows the problem:

This link correctly goes to the login page:

I get a very similar problem when I am looking at an album or photo in the site, and I hit the Admin->Logout menu item. The site will log me out, but it does not redirect me at that point to the login page as I would expect. Instead, the page refreshes to the Error 500, and the URL is slightly modified with the "fromlogout=" attribute. ""

Does this sound familiar enough to anyone to give me some clues where to look?

I'm using Zenphoto version 1.4.12
Current gallery theme: Libratus
PHP version: 5.6.31
mod rewrite and UTF8 image URIs are checked
There is stuff in my .htaccess file, in my "photoalbum" folder, but I think it is just the default stuff.

Thanks for any help..


  • Actually, I think I found the problem. I will check the latest code on GitHub and post the issue there, if it hasn't already been fixed. Thanks!

  • Yeah...the query format error described in is what was causing my issues. I see that has been fixed, so I'll keep my patch for the moment and update to the latest sometime soon. Thanks for letting me think this through out loud. :-)

  • acrylian Administrator
    edited December 2017

    No problem, glad you manage to solve it! First advice indeed would have been to upgrade to 1.4.14 ;-)

Sign In or Register to comment.