Ok, so I'm having an issue. I recently upgraded from 1.2.6 release to the svn (1.2.6 [4504]). Performed the setup.php for the upgrade of the database like it says and almost everything is working flawlessly. I did however notice one issue. The full image link, if set to protected, just returns to the index page, it doesn't produce the image.
If I set it to unprotected or download, it processes fine. I've tried clearing caches, and using protected with cache full image both checked and un-checked.
Did some perusing through the forums and not seeing anyone else posting about the issue. I think I've exhausted about every option, barring a complete fresh install of the gallery.
Any suggestions besides fresh install? I'd like to keep the tags/descriptions I have, though if I must try a fresh install I will.
Alright, I've updated to the latest nightly and still get the error. I am now currently running version 1.2.6 [4518] (the 10-7-2009 nightly) and have the same problem. If protected mode is enabled and I click for a full-size view, it returns me to the index page. If I set it to unprotected, or download options, the image is produced properly. If I set it to no-access, it returns me to the image page.
It happens on all themes I've tried, my theme, example theme, default theme.
Is this just for the no-access case? That is the only case I can reproduce. There is an error in all the standard themes. They are not cheking to see if there is a link before creating the HREF. So they create an empty link which takes you to the index page.
This will be fixed in the nightly tonight.
Ok, just did a completely fresh install with a fresh database and everything. Uploaded 3 pictures to a test album and get the same results. http://www.michealmalone.com/zentest/ for linkage.
Aha! It IS what I thought, using protected view without any watermarking etc was causing the issue. The moment I turned watermarking on, the fullsize images generated properly..
Edit:
This does pose a slight problem/bug though. My whole intent for the protected viewing was to avoid hotlinking. I suppose I could just create a fully transparent watermark to get around the issue, but the problem itself is still there.
Whatever you changed appears to have fixed the issue Thanks to the zenphoto team looking into this.
Edit:
I did have a question though after this. If I set protected view and check "disable hotlinking" then click the view full size image... it shows the image, but it shows the full URL direct to the image. Shouldn't it be showing the protected image url? And since it's not, the protected/disable hot-linking really isn't functioning as intended.
If I link the "view image" link it'll break, but if I click the view image link, then copy the addy from address bar, it displays the image, thereby bypassing the disable hotlinking function.
Yes, it should be the full image url. Probably an oversite. I will look into it.
EDIT: The browser address will be the actual image--that's the way browsers work. If someone knows that link they do not even need to get it from Zenphoto, just enter it directly. Only way to prevent that is an external album folder.
Real hotlinking prevention is possible via .htaccess. Here is a tool that generates code that needs to be added to our htaccess file:
http://www.htaccesstools.com/hotlink-protection/
Yeah, I had hoped to avoid the actual .htaccess changes. I noticed though that in some of the showcase links the image url is the coded one and not the direct link to the album folder. Just wondering if I had modified something that had screwed it up.
Thanks again