No thumbnails in admin or gallery

I'm sure you guys are sick of this topic, but I've searched the Forum and can't find a relevant answer to my problem....

Have been running Zenphoto for a while on http://stpetersdrogheda.ie/gallery/zenphoto/ Up to now it has performed exceptionally well.

But I have just updated to 1.4.0.2 [6662] (Official Build) and now I can't see any thumbnails in either the Album section of the Admin pages or the Gallery itself.

In Admin all I see is a filename. In the Gallery I have a box with the title (e.g. http://stpetersdrogheda.ie/gallery/zenphoto/summer-fair-2009/) Clicking the links eventually takes me to the image.

Following various threads in the Forum and FAQs I have confirmed that I have mod-rewrite enabled and the correct permissions set for folders (755) and images (644).

Phpinfo() (http://stpetersdrogheda.ie/phpinfo.php) shows GD support enabled.

Using ?debug on an image URL gives the following:

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in /home/stpeter1/public_html/gallery/zenphoto/zp-core/lib-GD.php on line 70

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/stpeter1/public_html/gallery/zenphoto/albums/autumn-fair-2007/autumn-fair0002.jpg' is not a valid JPEG file in /home/stpeter1/public_html/gallery/zenphoto/zp-core/lib-GD.php on line 70

Warning: filemtime() [function.filemtime]: stat failed for /home/stpeter1/public_html/gallery/zenphoto/cache/autumn-fair-2007/autumn-fair0002_100_cw85_ch85_thumb.jpg in /home/stpeter1/public_html/gallery/zenphoto/zp-core/i.php on line 204

I have used Zenphoto and FTP to upload albums but still the problems persists. The Debug log contains multiple entries saying:

{Thu, 17 Feb 2011 20:37:42 GMT}
Backtrace: Bad gallery in instantiation of album summer-fair-2009.
Album->Album called
from uploader.php [39]

Installation information:

# Zenphoto version 1.4.0.2 [6662] (Official Build)
# Current locale setting: en_US.UTF8
# Current gallery theme: Default
# PHP version: 5.2.14
# Graphics support: PHP GD library bundled (2.0.34 compatible)
# PHP memory limit: 32M (Note: Your server might allocate less!)
# MySQL version: 5.0.91

Images are small - circa 50KB, all at 72 dpi

Any assistance gratefully received!

Mike

Comments

  • Seems there is some kind of error occurring in the GD library `imagecreatefromjpeg()` function. According to the message, the images are not valid JPEG files.

    Perhaps FTP is failing?

    The bad gallery in instantiation... would appear to be a bug in the upload when creating new albums. That will get fixed in tonights nightly build.
  • Thank you for your quick response.

    I've tried uploading using FTP (WS-FTP) in binary (image can be displayed by following links) and ASCII (no image displayed).

    I've also uploaded using Zenphoto's single and multi file upload.

    I have another installation of Zenphoto on a different site (and hosting server) which is working fine. I've tried uploading some of those images to this site and they too don't display thumbnails. So it doesn't seem to be a corruption of the images.

    This latter point makes me suspect a server/program setting has changed somewhere but I can't see where it might be.

    The problem site has had a completely new upload of Zenphoto and the album images - all old files were deleted.

    One interesting symptom I've just noticed is that when I go into an album and click on the image order tab, only the description text is displayed - no thumbnail and no link.

    Mike
  • For whatever reason, Zenphoto is unable to render your images on that site. I have no clue (other than the error messages above) why that would be. The images do not seem large.

    The album issue I mention would not be relevant if you have uploaded the images via FTP. I can speculate only that perhaps the PHP or GD libraries have got corrupted. The images certainly are not corrupted. I can click on your image and see the "full" version just fine.

    Do you have Imagick on the server? Maybe you can switch to Imagick then.
  • Unfortunately no imagick on the server.

    I'll get on to the hosting company (Asmallorange) and see what I can do.

    Thanks for your help.

    Mike
  • It would appear to be a failure in the imagecreatefromjpeg() function on my server. I created a small test file at http://stpetersdrogheda.ie/testimagecreate.php and that fails. Changing to imagecreatefromgif() and modifying the image file works.

    I've submitted a support ticket to Asmallorange, and also asked them to check on the installation of Imagick, which should be on all their servers according to the knowledgebase.

    I'll report back if I get a solution.

    Thanks again.

    Mike
  • aris Member
    @mowgli597

    Did you get any reply from ASmallOrange which solved your problem?

    I am having the same issue with their GD library and it looks like their support suggestion is "don't use JPEGs" which is not good.

    Cheers.
  • You could make a suggestion to your ISP. "Fix my problem or I will not use YOU".
  • I am having the same problem.

    URL: http://www.lurepartsgallery.com/zenphoto/
    Problem: all images have disappeared - worked until a couple of weeks ago

    Directory permissions for /images and file permissions for individual images are correct.

    phpinfo.php shows that GD is installed - GoDaddy swears that GD Libraries are fine, not corrupted.

    phpinfo.php does not show the presence of imagick or imagemajick - GoDaddy says that the application needs to be told the path to the imagemajick directory - but not sure where I would set that.

    Pretty much at wit's end - basically have to purchase a new hosting account somewhere else, etc.. if I can't get this working. Biggest nightmare I've ever had in years of working on this kind of thing.

    Anything I might have overlooked?

    Thanks !
  • If PHP is not showing imagick then the PHP support for it is not configured and you will not be able to use it. If your problems are because there is not enough memory for GD to render the images, then maybe GoDaddy can provide you with more memory. The other approach is to upload smaller images.
  • acrylian Administrator, Developer
    Also, just to note a detail: It is not either "imagick or imagemajick", Zenphoto ONLY supports imagick currently next to GD.
  • Thanks sbillard and acrylian. There seems to be no solution in this case. I am moving to a new server and hoping that this cures the issue.
Sign In or Register to comment.