Not signed in (Sign In)

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

    • CommentAuthorjonnyhey
    • CommentTimeMar 17th 2009
     
    Hi there, I keep getting these errors for 80% of my jpg,gif images after importing.. the images were already on my server..
    pls advise, thanks, Jon..

    Failed: setSourceFilename(/homepages/37/d231802721/htdocs/tribalfusion.tv/T008ribal/uploads/0016-1-1.JPG) set $this->sourceFilename to "/homepages/37/d231802721/htdocs/tribalfusion.tv/T008ribal/uploads/0016-1-1.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->sourceFilename set to "/homepages/37/d231802721/htdocs/tribalfusion.tv/T008ribal/uploads/0016-1-1.JPG" in file "phpthumb.class.php" on line 587 $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 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 source dimensions reset to 100x100 in file "phpthumb.class.php" on line 880 source dimensions reset by "zc" to 133x133 in file "phpthumb.class.php" on line 886 ImageMagick called as (convert -coalesce -geometry 133x133 "/homepages/37/d231802721/htdocs/tribalfusion.tv/T008ribal/uploads/0016-1-1.JPG" png:/tmp/pThumb52kGM3 2>&1) in file "phpthumb.class.php" on line 899 ImageMagick failed with message (convert: Corrupt JPEG data: 3126 extraneous bytes before marker 0xd9 `/homepages/37/d231802721/htdocs/tribalfusion.tv/T008ribal/uploads/0016-1-1.JPG'. ) in file "phpthumb.class.php" on line 904 ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 923
    •  
      CommentAuthorsidtheduck
    • CommentTimeMar 17th 2009
     
    jonnyhey,

    It looks like your server is not set up to have permissions to save Imagemagick files to a cache directory (which is required for Imagemagick AFAIK). I would do this. Open plog-functions.php and find the following code (should be around line 654-661):
    // set options (see phpThumb.config.php)
    // here you must preface each option with "config_"

    // Set error handling (optional)
    $phpThumb->config_error_die_on_error = false;
    if ($thumb_config['filename_prefix'] != '') { // add only for large thumbs
    $phpThumb->fltr = array("wmi|images/watermark.png|BL|50|5");
    }

    and after the last line add this code:
    // Disable ImageMagick?
    // ImageMagick seems to cause some issues on localhost using FF or IE
    $phpThumb->config_prefer_imagemagick = false;

    So your final code should look like this:
    // set options (see phpThumb.config.php)
    // here you must preface each option with "config_"

    // Set error handling (optional)
    $phpThumb->config_error_die_on_error = false;
    if ($thumb_config['filename_prefix'] != '') { // add only for large thumbs
    $phpThumb->fltr = array("wmi|images/watermark.png|BL|50|5");
    }

    // Disable ImageMagick?
    // ImageMagick seems to cause some issues on localhost using FF or IE
    $phpThumb->config_prefer_imagemagick = false;