We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40249
    • 31 Posts
    I've got a site that uses the Gallery to display Keyvisuals on the page, everything worked fine until i updated modx and the gallery module. I've only installed the Gallery and not the phpthumbof Module. Is it correct that the Gallery brings his own phpthumbof ?

    now i get the following error and dunno how i should solve it.

    [2012-06-25 10:18:55] (ERROR @ /assets/components/gallery/connector.php) [phpThumbOf] Could not generate thumbnail: /var/www/k10003/docroot/abites-hr.com/assets/components/gallery/files/2/2.jpg - Debug: Array
    (
        [0] => phpThumb() v1.7.9-200712090829 in file "phpthumb.class.php" on line 216
        [1] => setCacheDirectory() starting with config_cache_directory = "/var/www/k10003/docroot/abites-hr.com/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
        [2] => setting config_cache_directory to realpath(/var/www/k10003/docroot/abites-hr.com/core/cache/phpthumb) = "/var/www/k10003/docroot/abites-hr.com/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
        [3] => ResolveFilenameToAbsolute() prepending $this->config_document_root (/var/www/k10003/docroot/abites-hr.com) to $filename (/assets/components/gallery/files/2/2.jpg) resulting in ($AbsoluteFilename = "/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/files/2/2.jpg") in file "phpthumb.class.php" on line 1025
        [4] => setSourceFilename(/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/files/2/2.jpg) set $this->sourceFilename to "/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/files/2/2.jpg" in file "phpthumb.class.php" on line 243
        [5] => setCacheDirectory() starting with config_cache_directory = "/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/cache/" in file "phpthumb.class.php" on line 919
        [6] => setting config_cache_directory to realpath(/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/cache) = "/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/cache" in file "phpthumb.class.php" on line 947
        [7] => setSourceFilename(/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/files/2/2.jpg) set $this->sourceFilename to "/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/files/2/2.jpg" in file "phpthumb.class.php" on line 243
        [8] => skipping CleanUpCacheDirectory() set to purge (30.0 days; 100.00MB; 10,000 files) in file "phpthumb.class.php" on line 652
        [9] =>   file_exists() = 0 in file "phpthumb.class.php" on line 1101
        [10] => is_executable() = 0 in file "phpthumb.class.php" on line 1102
        [11] => 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 1131
        [12] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 884
        [13] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 895
        [14] => $this->thumbnailFormat set to $this->f "png" in file "phpthumb.class.php" on line 902
        [15] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 912
        [16] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root (/var/www/k10003/docroot/abites-hr.com/) to $filename (/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/files/2/2.jpg) resulting in ($AbsoluteFilename = "/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/files/2/2.jpg") in file "phpthumb.class.php" on line 1022
        [17] => $this->sourceFilename set to "/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/files/2/2.jpg" in file "phpthumb.class.php" on line 813
        [18] => phpThumb() v1.7.9-200712090829
    
    "/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/files/2/2.jpg" does not exist in file "phpthumb.class.php" on line 3647
        [19] => setCacheDirectory() starting with config_cache_directory = "/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/cache" in file "phpthumb.class.php" on line 919
        [20] => setting config_cache_directory to realpath(/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/cache) = "/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/cache" in file "phpthumb.class.php" on line 947
        [21] => SetCacheFilename() _src set from md5($this->sourceFilename) "/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/files/2/2.jpg" = "3f3960be726cf77a0799e864a6c8a9cb" in file "phpthumb.class.php" on line 3077
        [22] => SetCacheFilename() _par set from md5(_farC_h67_w190_dpi150) in file "phpthumb.class.php" on line 3110
        [23] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2897
        [24] => GetImageSize("/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/files/2/2.jpg") failed in file "phpthumb.class.php" on line 2920
        [25] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
        [26] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 1865
        [27] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2927
        [28] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2876
        [29] => SetOrientationDependantWidthHeight() setting w="190", h="67" in file "phpthumb.class.php" on line 2892
        [30] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 2979
        [31] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3229
        [32] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
        [33] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 1865
        [34] => starting ImageCreateFromFilename(/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/files/2/2.jpg) in file "phpthumb.class.php" on line 3152
        [35] => empty $filename or GetImageSize(/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/files/2/2.jpg) failed in file "phpthumb.class.php" on line 3201
        [36] => Populating $rawimagedata in file "phpthumb.class.php" on line 3209
        [37] => cannot fopen(/var/www/k10003/docroot/abites-hr.com/assets/components/gallery/files/2/2.jpg) in file "phpthumb.class.php" on line 3212
        [38] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3278
        [39] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3330
        [40] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3332
        [41] => phpThumb() v1.7.9-200712090829
    
    Unknown image type identified by "" () in SourceImageToGD()[3444] in file "phpthumb.class.php" on line 3647
        [42] => SourceImageToGD() failed in file "phpthumb.class.php" on line 323
    )
    
    
      • 5340
      • 1,624 Posts
      I get the same error, did you fix it?
      Thx
        • 37242 ☆ A M B ☆
        • 339 Posts
        No, Gallery does not bring PhpThumbOf with it. As far as I know, it uses PhpThumb.
        Looks like [11] is the first failing line.
          • 9207 ☆ A M B ☆
          • 2,475 Posts
          For what it's worth, I've witnessed phpthumbof generate a firehose of errors on many different servers. It's probably worth filing some bug reports or feature requests to help narrow down the causes.