I downloaded the new version of Zen Photo today, updated my gallery, and now I'm having issues with my album thumbnails.
1) I have custom thumbails and use the code below to generate them:
`printCustomAlbumThumbImage(getAlbumTitle(), null, 180, 110, null, null);`
Since the update, the images look stretched out and just not right. Can someone explain to me if something changed in the way the thumbs are generated? I tried searching the forum and the user guide, and tried a few different things, including purging the cache, but nothing made a difference.
2) I use the image_album_statistics plugin to print a short list of my latest albums along the sidebar. Since I updated, the list is generated, but the thumbnail images do not show up. The only code I have for that is:
`printLatestUpdatedAlbums(4, true);`
From the source code:
`
`
On my archive page, I use `printPopularImages();` and `printMostRatedImages();` and those are functioning as they should.
All of these worked fine before the update. Any help anyone can provide would be appreciated. My gallery can be found at
here.
Comments
I had the same problem, but with the new files you can just use the standard template function printImageThumb(getAnnotatedImageTitle()) to get what you want.
If you want uncropped thumbs with a special size of 180x110 that is not the one of the options you need to use `getCustomAlbumThumbMaxSpace()`. Note that the maxspace funcions still contain some bugs in 1.2.2 that have been (hopefully finally) corrected in the nightly/svn.
2. With adding the maxspace functions we changed some things in the image generating for album thumbs. Probably a side effect on the statistics did escape us. I guess we need to take a look there, too.
As for the image thumbs not showing up with image statistics, when will that be worked out? I downloaded the most recent SVN, but nothing's changed.
FYI, though, with the tag suggest plugin turned on, I was getting the errors below:
Notice: Undefined index: ' in /home/xxxx/public_html/gallery/zp-core/functions-basic.php on line 103
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/gallery/zp-core/functions-basic.php:103) in /home/xxxx/public_html/gallery/index.php on line 100
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/gallery/zp-core/functions-basic.php:103) in /home/xxxx/public_html/gallery/index.php on line 101
I turned off the plugin as having the images working is more important to me than the tag suggest, but just thought I'd pass on word about the error.
Anyway, I believe a fix for this would be to change the code in functions-basic.php circa line 103 from:
`
if($translation_table["'"] != ''') {
$translation_table["'"] = ''';
}
`
to:
`$translation_table["'"] = ''';`
Let me know if this resolves the problem. (I am not seeing the error on my installation.)