ZenphotoCMS Forum
Album Thumbnails not being produced if album has not been looked at previously - 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: Album Thumbnails not being produced if album has not been looked at previously (/thread-5800.html)



Album Thumbnails not being produced if album has not been looked at previously - danielsbrewer - 04-09-2009

Hello,

I have just moved my gallery to a new server and I am trying to run zenphoto 1.2.6 with lighttpd. What I have found is that if I upload a new album by ftp and go to the front page, then this new album does not get a thumbnail produced for it. After I look inside the album the frontpage and thumbnails work fine.

Is anyone else having this problem?
Does anyone know how to fix it?




Album Thumbnails not being produced if album has not been looked at previously - acrylian - 04-09-2009

Any errors in the server log? What dimensions have the images? Also please see the troubleshooting article on our site for the topic.




Album Thumbnails not being produced if album has not been looked at previously - danielsbrewer - 04-09-2009

No errors in the server log

Images are 2480 × 1622 pixels

I have over 1GB of memory free normally so I hope it is not a memory issue. Anyway the thumbnails get created if I go to the album page, just the album thumbnail (random image thumbnail) doesn't get produced.

I had a read through the troubshooting article.

To debug further I tried to put some echo/print_r statements in getAlbumThumbImage(), but they don't appear on the webpage. What's the best way to debug?




Album Thumbnails not being produced if album has not been looked at previously - acrylian - 04-09-2009

The 1GB are attached to PHP as memory? Anyway, those images seem not to be that big.

Actually the thumb should be generated for hte album from the images within if not already done. Should work the same as with the image thumbs itself.

We have some functions for debugging.
http://www.zenphoto.org/documentation/functions/_functions-basic.php.html#functiondebugLog
http://www.zenphoto.org/documentation/functions/_functions-basic.php.html#functiondebugLogArray
http://www.zenphoto.org/documentation/functions/_functions-basic.php.html#functiondebugLogBacktrace
http://www.zenphoto.org/documentation/functions/_functions-basic.php.html#functiondebugLogVar




Album Thumbnails not being produced if album has not been looked at previously - danielsbrewer - 06-09-2009

"Actually the thumb should be generated for hte album from the images within if not already done. Should work the same as with the image thumbs itself."

That's what I thought and why I think its strange - I was wondering whether it could be a time out issue. Something along the lines that it tries to cache all the thumbnails in the album and so runs out of time. The gallery is running on a atom-based "nettop" so it certainly isn't the most powerful of machines.

I will try and do some debugging in the next few days - thanks for telling me the functions.

May also try and experiment with tweaking php.ini any suggestions on what would help there?

Many thanks




Album Thumbnails not being produced if album has not been looked at previously - acrylian - 07-09-2009

I don't know anything about the type of machine you are running. But you also could try to check if this is with specific images /albums only as corrup EXIF data is known to cause time outs as well.