• Resolved gwcphotography

    (@gwcphotography)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I tried this, but my thumbnails still aren’t displaying and I get an error message if I try to edit or re-generate them. All sorts of errors:
    Warning: Division by zero in /home/lacrosse/public_html/wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.php on line 293

    Warning: Division by zero in /home/lacrosse/public_html/wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.php on line 306

    Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/lacrosse/public_html/wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.php on line 436

    Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/lacrosse/public_html/wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.php on line 940

    Warning: Division by zero in /home/lacrosse/public_html/wp-content/plugins/nextgen-gallery/admin/edit-thumbnail.php on line 42

    Thread Starter gwcphotography

    (@gwcphotography)

    Sounds like either you’re having another problem all-together… ??

    My thumbnails always showed up.. What didn’t work was the left image showing up so that I could drag the box around to create a (new) thumbnail.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: NextGEN Gallery] Not displaying photo when 'Edit Thumb' is selected. Solved.’ is closed to new replies.