Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthormike
    • CommentTimeJul 19th 2007
     
    Mike,

    The underlying Thumbnail generation library is not too good with error handling...

    I usually see this error under two circumstances
    a.) The pictures are way too large and the script is running out of memory while trying to generate the thumbnail
    b.) The pictures you uploaded are corrupted. This can happen pretty easily if an image only gets half uploaded or isn't uploaded properly.

    Do you get this error when you upload a single image? While importing? Try re-uploading your pictures or do only a couple at a time... one corrupted image in your import can cause the script to explode like that ...
    •  
      CommentAuthormike
    • CommentTimeJul 19th 2007
     
    Particularly... try re-uploading DSCF0214.JPG -- or delete it and re-run the import.
  1.  
    I get a similar error when trying to upload anything but GIFS. For some reason, GIFS work perfectly...I've tried jpgs as small as 4KB and get an error:

    Failed: setSourceFilename(/home/armst8/public_html/gallery/images/test/testalbum/test.jpg) set $this->sourceFilename to "/home/armst8/public_html/gallery/images/test/testalbum/test.jpg" in file "phpthumb.class.php" on line 216 $AvailableImageOutputFormats = array(text;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 636 $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 646 $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 663 !$this->config_allow_src_above_docroot therefore setting "/home/armst8/public_html/gallery/images/test/testalbum/test.jpg" to null in file "phpthumb.class.php" on line 790 $this->sourceFilename set to "" in file "phpthumb.class.php" on line 587 phpThumb() v1.6.2-200511240855 "" does not exist $this->config_cache_directory () is not a directory in file "phpthumb.class.php" on line 704 SetCacheFilename() failed because $this->config_cache_directory is empty in file "phpthumb.class.php" on line 1986 GetImageSize("") failed in file "phpthumb.class.php" on line 1869 using ImageMagick path from `which convert` (/usr/bin/convert) in file "phpthumb.class.php" on line 825 source dimensions set to 100x100 in file "phpthumb.class.php" on line 875 ImageMagick called as (convert -coalesce -geometry 100x100 "" png:/tmp/pThumbeuWnWV 2>&1) in file "phpthumb.class.php" on line 899 ImageMagick failed with message (convert: unable to open image `': No such file or directory. convert: missing an image filename `png:/tmp/pThumbeuWnWV'. ) in file "phpthumb.class.php" on line 904 ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 923 ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 1876 EXIF thumbnail extraction: (size=0; type=; x) in file "phpthumb.class.php" on line 1925 starting SourceImageToGD() in file "phpthumb.class.php" on line 2073 Not using EXIF thumbnail data because $this->config_use_exif_thumbnail_for_speed is FALSE in file "phpthumb.class.php" on line 2076 Populating $this->rawImageData and attempting ImageCreateFromStringReplacement() in file "phpthumb.class.php" on line 2182 phpThumb() v1.6.2-200511240855 cannot fopen("") on line 2195 of /home/armst8/public_html/gallery/lib/phpthumb/phpthumb.class.php




    I just get a white page with this output. When I go to that album, the picture has been successfully uploaded...but the text above turns into the LINK instead of a thumbnail...see for yourself what I am referring to:

    http://roland.lunarservers.com/~armst8/gallery/
    • CommentAuthorportopong
    • CommentTimeAug 15th 2007
     
    this is not an answer to everyones problem - any suggestions for those who dont have the ability to reboot a server....
    •  
      CommentAuthormike
    • CommentTimeAug 15th 2007 edited
     
    Hey guys,

    Sorry everyone is having problems with phpThumb. Although I can't reproduce the error myself, by looking at the debug messages I think I have a hunch... I believe it has to do with phpThumb's built in security features.

    There is a string in that debug message that reads "!$this->config_allow_src_above_docroot therefore setting "/home/armst8/public_html/gallery/images/test/testalbum/test.jpg" to null". If you keep following the trail of debug messages, you'll notice that the rest of the failures are due to the filename being null, so I believe this is the source of the problem.

    If you look at line 136 in /lib/phpthumb/phpthumb.class.php you'll see some security related settings

    var $config_allow_src_above_docroot = false;

    What happens if you set this to true?
    • CommentAuthorportopong
    • CommentTimeAug 16th 2007
     
    YEAH - THAT WAS THE ANSWER - YEAH

    All is good now in the world - it worked perfectly.

    The thumbs work, the upload works, everyone does as it is supposed too.

    YEAH

    Thanks mike.
    • CommentAuthorbertoldic
    • CommentTimeDec 21st 2007
     
    It doesn't work!Still the same problem
    • CommentAuthormindtool
    • CommentTimeDec 22nd 2007
     
    Guys... I found out that Imagemagik is preferred by phpthumb.class.php

    For faster performance, make sure that you correct this line's path to the correct path to Imagemagik... on line 73. If you're using a webhost, check to see if they have Imagemagik and Google up a method to use PHP to locate the Imagemagik's path. Or, better yet ask the webhost to let you know the correct path and version of their imagemagik install. This solved my problem. My IIS 6 config would always crap out if multiple instances while processing thumbnails. After I corrected the path to my Imagemagik install, it's been smooth sailing...

    Thx, Ian