ZenphotoCMS Forum
"Recent Images" Error - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: "Recent Images" Error (/thread-3135.html)



"Recent Images" Error - ro4drunn3r - 21-06-2008

Hello,

i installed today zenphoto. I put some picture to test on it. Hm, works fine, but there is a little bug? problem? with "Recent Images". Please look, and you can see... http://www.ro4drunn3r.de/zenphoto/

How can i fix that?

Best regards :]

EDIT:
I found the problem! If i change the language back to default (english), everything is fine.




"Recent Images" Error - sbillard - 21-06-2008

You seem to have changed to Random Images. Do the Recent Images still have the problem when you are in German? Not sure why the language should make a difference, but if you will reset your site to show the problem maybe we can get to the bottom of it. (Can't reproduce it on my site.)




"Recent Images" Error - ro4drunn3r - 22-06-2008

I changed back to german. Now you can see, it's not only with recent images.

Reset? How? :)




"Recent Images" Error - acrylian - 22-06-2008

I took a look at the source code of the page. I found that the values of the images are not correctly:

You have this url on your site:
[img]/zenphoto/zp-core/i.php?a=windows-vista&i=Forest-Flowers.jpg&w=44,5&h=33,5&t=true[/img]

"w=44,5" and "h=33,5" likely cause the error. A comparison of the 1.1.6 theme version and the nightly/svn version shows that the 1.1.6 version has these values "44.5" and "33.5" hardcorded for the recent/random images. Somehow your server seems to turn the "." into a "," which causes the processing error. This might be the language difference you saw, since German uses an "," for numbers while english uses ".".

The svn/nightly theme version has the clean values "44" and "33" values. Please try to change that on the theme's index.php around line 80 and line 94.




"Recent Images" Error - ro4drunn3r - 22-06-2008

Hi acrylian,

hehe, you are great! Now it works in german too. Thanks! :]