Some images do not display

Hello,

After upgrading from 1.1.6 to 1.1.7, some images do not display: half of the album covers do not display, and then random images inside the albums do not display.

Any idea how to fix this?

Many thanks.

Comments

  • Have you reviewed the troubleshooting guide? http://www.zenphoto.org/2007/12/troubleshooting-zenphoto/
  • hp Member
    Honestly I didn't, but I did already check everything. For example, I already recursively set permissions to 777. Even though I shouldn't really have to because it's running phpsuexec.

    The problem still persists. Any idea why upgrading caused this problem?

    Thank you!
  • Common problems with images not displaying:

    1. Image too big to be processed with the server memory availabl.
    2. Mod_rewrite problems

    You should check your error logs. Since some images are working #1 is the most likely problem.
  • hp Member
    Thanks.

    But the images were originally displayed before the upgrade. And now they won't display? It's the same server and same server settings. Does that make sense?
  • hp Member
    Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in /home/percep/public_html/gallery/zp-core/functions-image.php on line 61

    Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/percep/public_html/gallery/albums/still-life/IMG_1790.JPG' is not a valid JPEG file in /home/percep/public_html/gallery/zp-core/functions-image.php on line 61

    Warning: Cannot modify header information - headers already sent by (output started at /home/percep/public_html/gallery/zp-core/functions-image.php:61) in /home/percep/public_html/gallery/zp-core/i.php on line 134
  • hp Member
    Any idea what those errors are related to?
  • What is your PHP memory limit set to? Try increasing it and see if it makes a difference.
  • hp Member
    I just set it to: memory_limit = 64M;
  • Make sure you restart apache (are you using apache?) after modifying your php.ini file. Are you still getting the same errors?
  • hp Member
    it's on a shared hosting server so I can't restart apache
  • The first error is the only one of consequence. The second is a direct result of the error message display from the first error.

    The error says that the GD handling routines did not like the the JPEG image that was passed to the function. In this case, the image is the one that is being processed for caching after resizing.

    As to what the routines did not like, there is no information. But this might indicate a corrupted image.
  • hp Member
    I just reuploaded the image files but they are still not displaying. Do you have any other ideas? This problem started after I updated from 1.1.6 to 1.1.7.

    Help is appreciated.
  • acrylian Administrator, Developer
    Did you check if they are published/visible?
  • hp Member
    They are.

    What happens is that the alt text (which appears to be the file name) is displayed instead of the thumbnail.
  • hp Member
    I SOLVED IT. (After hours of testing)

    I shrunk all my images to 80% and now they work. Anyone care to explain why?
  • I shrunk my images as well and it works perfectly and very quick. Thanks acrylian for the support.
Sign In or Register to comment.