Fork me on GitHub

SimpleGallery / Thumbnail - Add images fails  Bottom

  • Zikula 1.0.3
    SimpleGallery 1.2
    Thumbnail 1.1

    I had SimplaGallery running. After some time I wanted to add images and suddenly get this error message.
    I have not changed anything. The ISP says he has not changed anything. In fact he updated ImageMagick, GD and everything involved to date to help solve this problem.

    I'm not very good at analysing the error output. As I understand it, thumbnail generation fails for some reason. But I can not figure out where to fix it. Is it on my side (Zikula) or on the ISP side?

    Can anyone help me to interpret the code below?



    Quote

    Thumbnail generation failed (GenerateThumbnail):

    phpThumb() v1.7.8-200709161750 in file "phpthumb.class.php" on line 216

    setSourceFilename(pnTemp/SimpleGallery/100_0097_1247657773.jpg) set $this->sourceFilename to "pnTemp/SimpleGallery/100_0097_1247657773.jpg" in file "phpthumb.class.php" on line 243

    file_exists() = 0 in file "phpthumb.class.php" on line 1099

    is_executable() = 0 in file "phpthumb.class.php" on line 1100

    ImageMagickThumbnailToGD() aborting because cannot find convert in $this->config_imagemagick_path (), and `which convert` returned (/usr/bin/convert) in file "phpthumb.class.php" on line 1129

    $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 882

    $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 893

    $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 910

    $this->sourceFilename set to "/srv/www/htdocs/pnTemp/SimpleGallery/100_0097_1247657773.jpg" in file "phpthumb.class.php" on line 811

    phpThumb() v1.7.8-200709161750

    "/srv/www/htdocs/pnTemp/SimpleGallery/100_0097_1247657773.jpg" does not exist in file "phpthumb.class.php" on line 3614

    setCacheDirectory() starting with config_cache_directory = "" in file "phpthumb.class.php" on line 917

    $this->config_cache_directory () is not a directory in file "phpthumb.class.php" on line 953

    SetCacheFilename() failed because $this->config_cache_directory is empty in file "phpthumb.class.php" on line 2999

    starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2856

    GetImageSize("/srv/www/htdocs/pnTemp/SimpleGallery/100_0097_1247657773.jpg") failed in file "phpthumb.class.php" on line 2879

    $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1223

    ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 1827

    ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2886

    SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2835

    SetOrientationDependantWidthHeight() setting w="800", h="600" in file "phpthumb.class.php" on line 2851

    EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 2938

    starting SourceImageToGD() in file "phpthumb.class.php" on line 3196

    $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1223

    ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 1827

    starting ImageCreateFromFilename(/srv/www/htdocs/pnTemp/SimpleGallery/100_0097_1247657773.jpg) in file "phpthumb.class.php" on line 3111

    empty $filename or GetImageSize(/srv/www/htdocs/pnTemp/SimpleGallery/100_0097_1247657773.jpg) failed in file "phpthumb.class.php" on line 3160

    Populating $rawimagedata in file "phpthumb.class.php" on line 3168

    cannot fopen(/srv/www/htdocs/pnTemp/SimpleGallery/100_0097_1247657773.jpg) in file "phpthumb.class.php" on line 3179

    Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3245

    $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3297

    ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3299

    phpThumb() v1.7.8-200709161750

    Unknown image type identified by "" () in SourceImageToGD()[3411] in file "phpthumb.class.php" on line 3614

    SourceImageToGD() failed in file "phpthumb.class.php" on line 323

    Resizing of the image failed

    Upload failed


    Any advice is appreciated!

    Thanks,
    ___
    nitz
  • from this line

    Quote

    /srv/www/htdocs/pnTemp/SimpleGallery/100_0097_1247657773.jpg" does not exist in file "phpthumb.class.php" on line 3614

    it looks like Thumbnail fail because it cannot find the source image. However, this is weird because if the upload fail the script should never reach that point...

    Can you please check that the temporary folder (pnTemp/SimpleGallery) is writable?

    --
    Zikula Italia
    SimpleGallery
  • Yes, it definitely is writable (chmod 777) as well as modules/SimpleGallery/data/

    Thanks :)

    ___
    nitz
  • You have a PM icon_razz

    --
    Zikula Italia
    SimpleGallery
  • I don't know why but on your server phpThumb fails to calculate the absolute path of the temporary file, I fixed the problem forcing phpThumb to use the path I give it.

    Just for information, have you moved your website to another server (or even to a subdirectory)?
    I don't understand why it used to work fine and now it fails icon_confused

    --
    Zikula Italia
    SimpleGallery
  • Yes, working! icon_lol

    And yes, I have moved the site, but on the same server. During development/customization I always work on a subfolder "dev". This folder is access restricted, only the client has access. That way he can follow the status of development.
    Once the site is done, I move it to its final destination (one folder up).

    You think this might course the problem?

    Thank you for your assistance!

    ___
    nitz
  • nitz

    You think this might course the problem?


    Well, I would say no but it didn't, so I must be wrong :P
    Your server has probably a weird configuration for the domains, this is the first time I see phpThumb failing to calculate the absolute path.

    Since the workaround seems pretty easy and priceless, I'll test it a bit more an probably include in the next version of SimpleGallery.

    nitz

    Thank you for your assistance!


    You are welcome icon_smile

    --
    Zikula Italia
    SimpleGallery
  • Well, it's not quite correct what I was saying.
    The initial installation of Zikula was done on our inhouse development server.

    There the path is /srv/www/htdocs/pnTemp/SimpleGallery

    Then I moved the site onto the ISP's server into the said "dev" folder, where the path is

    /srv/www/comdocs/-domainname-/docs/pnTemp/SimpleGallery

    I just wanted to add this.


    ___
    nitz

This list is based on users active over the last 60 minutes.