[Plugin: NextGEN Gallery] Not displaying photo when 'Edit Thumb' is selected. Solved.
-
Hi there. I had a problem when I upgraded to PHP 5.4 where when I would click on the ‘Edit Thumb’ link in the gallery, it wouldn’t show the image (broken link). Reverting back to PHP 5.3 solved it. Recently I looked into it thinking that there must have been an update or a temporary fix, but it was hard to find.
But, someone with this gallery on another platform figured out a fix though.
In line 603 of /lib/gd.thumbnail.inc.php you can change the following line:
ImageJpeg($this->newImage,'',$quality);
to:
ImageJpeg($this->newImage,null,$quality);
It’s working well for me. Apparently the syntax “null” is the only valid way to represent that value properly in PHP >5.4
Hopefully this will end up in the next version.
https://www.ads-software.com/extend/plugins/nextgen-gallery/
EDIT: I did do a search, and there were some other solutions out there but they may not have been the exact same problem and the solutions didn’t work for me. Hopefully this will help someone. And hopefully I didn’t miss that it was already resolved previously.
- The topic ‘[Plugin: NextGEN Gallery] Not displaying photo when 'Edit Thumb' is selected. Solved.’ is closed to new replies.