ZenphotoCMS Forum
HELP! Working but images are being saved incorrectly - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: HELP! Working but images are being saved incorrectly (/thread-517.html)



HELP! Working but images are being saved incorrectly - lifthere - 18-05-2006

I installed the zen photo and everything went great. The only problem is when i upload a file the system seems to be creating the files incorrectly

Here is my installation:
http://www.lifthere.com/portfolio

You will see that image it creates is weird
http://www.lifthere.com/portfolio/zen/i.php?a=logos&i=cazuelas_logo_web.jpg&s=550

Turns to this:
https://www.lifthere.com/portfolio/cache/logos_cazuelas_logo_web.jpg_550.jpg

That file is in the server. But it seems that browser cannot open it with all those weird suffixes...

What can i do to fix this...

please help.




HELP! Working but images are being saved incorrectly - trisweb - 18-05-2006

It's not the suffixes that are the problem, those are normal and "how it all works"

The problem is that it thinks you're on an http[b]s[/b] server, as you can see in the URL.

In i.php, change the line (near the end of the file, line 97):
$protocol = $_SERVER['HTTPS'] ? 'https' : 'http';
to:
$protocol = 'http';




HELP! Working but images are being saved incorrectly - lifthere - 19-05-2006

Wow... worked...!!!! Thanks!!!!