We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • I applied the other fix to my install of 2.2.3, but now the logs are fire-hosing error messages about thumbnails:

    [2012-06-14 02:54:02] (ERROR @ /index.php) [phpThumbOf] Could not generate thumbnail: home_rotation/X GAMES DECK SHOT 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 = "/home/xxxxx/public_html/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
        [2] => setting config_cache_directory to realpath(/home/xxxxx/public_html/core/cache/phpthumb) = "/home/xxxxx/public_html/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
        [3] => setCacheDirectory() starting with config_cache_directory = "/home/xxxxx/public_html/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 919
        [4] => setting config_cache_directory to realpath(/home/xxxxx/public_html/assets/components/phpthumbof/cache) = "/home/xxxxx/public_html/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
        [5] => setSourceFilename(home_rotation/X GAMES DECK SHOT 2.jpg) set $this->sourceFilename to "home_rotation/X GAMES DECK SHOT 2.jpg" in file "phpthumb.class.php" on line 243
        [6] => skipping CleanUpCacheDirectory() set to purge (30.0 days; 300.00MB; 10,000 files) in file "phpthumb.class.php" on line 652
        [7] =>   file_exists() = 0 in file "phpthumb.class.php" on line 1101
        [8] => is_executable() = 0 in file "phpthumb.class.php" on line 1102
        [9] => ImageMagickThumbnailToGD() aborting because cannot find convert in $this->config_imagemagick_path (), and `which convert` returned (which: no convert in (/bin:/usr/bin)) in file "phpthumb.class.php" on line 1131
        [10] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 884
        [11] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 895
        [12] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 902
        [13] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 912
        [14] => $this->sourceFilename set to "/home/xxxxx/public_html/home_rotation/X GAMES DECK SHOT 2.jpg" in file "phpthumb.class.php" on line 813
        [15] => phpThumb() v1.7.9-200712090829
    
    "/home/xxxxx/public_html/home_rotation/X GAMES DECK SHOT 2.jpg" does not exist in file "phpthumb.class.php" on line 3647
        [16] => setCacheDirectory() starting with config_cache_directory = "/home/xxxxx/public_html/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 919
        [17] => setting config_cache_directory to realpath(/home/xxxxx/public_html/assets/components/phpthumbof/cache) = "/home/xxxxx/public_html/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
        [18] => SetCacheFilename() _src set from md5($this->sourceFilename) "/home/xxxxx/public_html/home_rotation/X GAMES DECK SHOT 2.jpg" = "5214b50b0d0ca66ba8fb65585a96f979" in file "phpthumb.class.php" on line 3077
        [19] => SetCacheFilename() _par set from md5(_farC_w640_dpi150_q75) in file "phpthumb.class.php" on line 3110
        [20] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2897
        [21] => GetImageSize("/home/xxxxx/public_html/home_rotation/X GAMES DECK SHOT 2.jpg") failed in file "phpthumb.class.php" on line 2920
        [22] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
        [23] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 1865
        [24] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2927
        [25] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2876
        [26] => SetOrientationDependantWidthHeight() setting w="640", h="0" in file "phpthumb.class.php" on line 2892
        [27] => exif_thumbnail() does not exist, cannot extract EXIF thumbnail in file "phpthumb.class.php" on line 2974
        [28] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3229
        [29] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
        [30] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 1865
        [31] => starting ImageCreateFromFilename(/home/xxxxx/public_html/home_rotation/X GAMES DECK SHOT 2.jpg) in file "phpthumb.class.php" on line 3152
        [32] => empty $filename or GetImageSize(/home/xxxxx/public_html/home_rotation/X GAMES DECK SHOT 2.jpg) failed in file "phpthumb.class.php" on line 3201
        [33] => Populating $rawimagedata in file "phpthumb.class.php" on line 3209
        [34] => cannot fopen(/home/xxxxx/public_html/home_rotation/X GAMES DECK SHOT 2.jpg) in file "phpthumb.class.php" on line 3212
        [35] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3278
        [36] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3330
        [37] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3332
        [38] => phpThumb() v1.7.9-200712090829
    
    Unknown image type identified by "" () in SourceImageToGD()[3444] in file "phpthumb.class.php" on line 3647
        [39] => SourceImageToGD() failed in file "phpthumb.class.php" on line 323
    )


    With errors like that, the log file gets huge in a hurry. The only thing I've seen in the forums is this:

    http://forums.modx.com/thread/49108/phpthumb-unknown-image-type

    Which is sadly, unresolved.

    Anyone have any ideas?
    • You might want to double check that the paths are still correct. I know that's been a problem for me in the past, and adjusting (ie: fixing) the paths does the trick.
        Patrick | Server Wrangler
        About Me: Website | TweetsMODX Hosting
      • Ah... here's what happened:

        The TVs were using a default path (available in previous versions of MODX). So when I upgraded from 2.1.3 to 2.2.3, that setting went bye-bye and instead they read the settings from the default Media Source, which would have been to look for assets in the root of the site.

        So in the getResources etc. calls, the image src attribute was coming out as just "products/thing.jpg" instead of the full "/assets/images/products/thing.jpg".

        Adding a new Media Source and setting the baseUrl and basePath to "assets/images/" then assigning that to the various TVs fixed this.

        Thanks!
        • Good to know, thanks for reporting back the fix!
            Patrick | Server Wrangler
            About Me: Website | TweetsMODX Hosting