We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37042
    • 384 Posts
    I'm running a site on MODX Cloud and encountered a php Thumb of error.
    Can anyone clarify what the issue is from the error log below?

    End result on the site is that images are not being resized at all using the following call
    [[+tv.Picture:phpthumbof=`w=100`]]


    START ERROR LOG

    [2013-01-05 09:19:11] (ERROR @ /index.php) Could not get table name for class: modFileMediaSource
    [2013-01-05 09:19:11] (ERROR @ /index.php) Could not get table name for class: modFileMediaSource
    [2013-01-05 09:19:11] (ERROR @ /index.php) Could not get table name for class: modFileMediaSource
    [2013-01-05 09:19:11] (ERROR @ /index.php) Could not get table name for class: modFileMediaSource
    [2013-01-05 09:19:58] (ERROR @ /index.php) [phpThumbOf] Could not generate thumbnail: <img src="assets/images/photo-mike.png" alt="" /> - Debug: Array
    (
        [0] => phpThumb() v1.7.9-200712090829 in file "phpthumb.class.php" on line 216
        [1] => setCacheDirectory() starting with config_cache_directory = "/paas/c0300/www/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
        [2] => setting config_cache_directory to realpath(/paas/c0300/www/core/cache/phpthumb) = "/paas/c0300/www/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
        [3] => setCacheDirectory() starting with config_cache_directory = "/paas/c0300/www/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 919
        [4] => setting config_cache_directory to realpath(/paas/c0300/www/assets/components/phpthumbof/cache) = "/paas/c0300/www/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
        [5] => setSourceFilename(<img src="assets/images/photo-mike.png" alt="" />) set $this->sourceFilename to "<img src="assets/images/photo-mike.png" alt="" />" in file "phpthumb.class.php" on line 243
        [6] => skipping CleanUpCacheDirectory() set to purge (30.0 days; 100.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] => using ImageMagick path from `which convert` (/usr/local/bin/convert) in file "phpthumb.class.php" on line 1121
        [10] => ImageMagick version checked with "convert --version" in file "phpthumb.class.php" on line 1148
        [11] => ImageMagick did not return recognized version string (Version: ImageMagick 6.7.9-4 2012-09-11 Q8 http://www.imagemagick.org
    Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
    Features: OpenMP) in file "phpthumb.class.php" on line 1154
        [12] => ImageMagick convert --version says "Unknown" in file "phpthumb.class.php" on line 1157
        [13] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 884
        [14] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 895
        [15] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 902
        [16] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 912
        [17] => $this->sourceFilename set to "/paas/c0300/www/<img src="assets/images/photo-mike.png" alt="" />" in file "phpthumb.class.php" on line 813
        [18] => phpThumb() v1.7.9-200712090829
    
    "/paas/c0300/www/<img src="assets/images/photo-mike.png" alt="" />" does not exist in file "phpthumb.class.php" on line 3647
        [19] => setCacheDirectory() starting with config_cache_directory = "/paas/c0300/www/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 919
        [20] => setting config_cache_directory to realpath(/paas/c0300/www/assets/components/phpthumbof/cache) = "/paas/c0300/www/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
        [21] => SetCacheFilename() _src set from md5($this->sourceFilename) "/paas/c0300/www/<img src="assets/images/photo-mike.png" alt="" />" = "e7b5494980d2196768b707c2ebf87bf2" in file "phpthumb.class.php" on line 3077
        [22] => SetCacheFilename() _par set from md5(_farC_w100_dpi150_q75) in file "phpthumb.class.php" on line 3110
        [23] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2897
        [24] => GetImageSize("/paas/c0300/www/<img src="assets/images/photo-mike.png" alt="" />") 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] => phpThumb_tempnam() returning "/paas/c0300/tmp/pThumboCof7Y" in file "phpthumb.class.php" on line 3861
        [27] => ImageMagickSwitchAvailable(thumbnail) = 1 in file "phpthumb.class.php" on line 1189
        [28] => ImageMagickSwitchAvailable(density) = 1 in file "phpthumb.class.php" on line 1189
        [29] => GetImageSize(/paas/c0300/www/<img src="assets/images/photo-mike.png" alt="" />) FAILED with error "" in file "phpthumb.class.php" on line 1318
        [30] => GetImageSize(/paas/c0300/www/<img src="assets/images/photo-mike.png" alt="" />) failed in file "phpthumb.class.php" on line 1460
        [31] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 1807
        [32] => ImageMagickSwitchAvailable(quality;interlace) = 1 in file "phpthumb.class.php" on line 1186
        [33] => ImageMagick called as (convert -density 150 -thumbnail 100x -quality 75 -interlace line  "/paas/c0300/www/<img src="assets/images/photo-mike.png" alt="" />[0]" jpeg:"/paas/c0300/tmp/pThumboCof7Y" 2>&1) in file "phpthumb.class.php" on line 1826
        [34] => ImageMagick failed with message (convert: unable to open image `/paas/c0300/www/<img src=assets/images/photo-mike.png alt= />': No such file or directory @ error/blob.c/OpenBlob/2638.
    convert: no decode delegate for this image format `/paas/c0300/www/<img src=assets/images/photo-mike.png alt= />' @ error/constitute.c/ReadImage/550.
    convert: no images defined `jpeg:/paas/c0300/tmp/pThumboCof7Y' @ error/convert.c/ConvertImageCommand/3044.) in file "phpthumb.class.php" on line 1834
        [35] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2927
        [36] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2876
        [37] => SetOrientationDependantWidthHeight() setting w="100", h="0" in file "phpthumb.class.php" on line 2892
        [38] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 2979
        [39] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3229
        [40] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
        [41] => phpThumb_tempnam() returning "/paas/c0300/tmp/pThumbD5QExp" in file "phpthumb.class.php" on line 3861
        [42] => ImageMagickSwitchAvailable(thumbnail) = 1 in file "phpthumb.class.php" on line 1189
        [43] => ImageMagickSwitchAvailable(density) = 1 in file "phpthumb.class.php" on line 1189
        [44] => GetImageSize(/paas/c0300/www/<img src="assets/images/photo-mike.png" alt="" />) FAILED with error "" in file "phpthumb.class.php" on line 1318
        [45] => GetImageSize(/paas/c0300/www/<img src="assets/images/photo-mike.png" alt="" />) failed in file "phpthumb.class.php" on line 1460
        [46] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 1807
        [47] => ImageMagickSwitchAvailable(quality;interlace) = 1 in file "phpthumb.class.php" on line 1186
        [48] => ImageMagick called as (convert -density 150 -thumbnail 100x -quality 75 -interlace line  "/paas/c0300/www/<img src="assets/images/photo-mike.png" alt="" />[0]" jpeg:"/paas/c0300/tmp/pThumbD5QExp" 2>&1) in file "phpthumb.class.php" on line 1826
        [49] => ImageMagick failed with message (convert: unable to open image `/paas/c0300/www/<img src=assets/images/photo-mike.png alt= />': No such file or directory @ error/blob.c/OpenBlob/2638.
    convert: no decode delegate for this image format `/paas/c0300/www/<img src=assets/images/photo-mike.png alt= />' @ error/constitute.c/ReadImage/550.
    convert: no images defined `jpeg:/paas/c0300/tmp/pThumbD5QExp' @ error/convert.c/ConvertImageCommand/3044.) in file "phpthumb.class.php" on line 1834
        [50] => starting ImageCreateFromFilename(/paas/c0300/www/<img src="assets/images/photo-mike.png" alt="" />) in file "phpthumb.class.php" on line 3152
        [51] => empty $filename or GetImageSize(/paas/c0300/www/<img src="assets/images/photo-mike.png" alt="" />) failed in file "phpthumb.class.php" on line 3201
        [52] => Populating $rawimagedata in file "phpthumb.class.php" on line 3209
        [53] => cannot fopen(/paas/c0300/www/<img src="assets/images/photo-mike.png" alt="" />) in file "phpthumb.class.php" on line 3212
        [54] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3278
        [55] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3330
        [56] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3332
        [57] => phpThumb() v1.7.9-200712090829
    
    Unknown image type identified by "" () in SourceImageToGD()[3444] in file "phpthumb.class.php" on line 3647
        [58] => SourceImageToGD() failed in file "phpthumb.class.php" on line 323
    )
    
    [2013-01-05 09:19:58] (ERROR @ /index.php) [phpThumbOf] Could not generate thumbnail: <img src="assets/images/photo-steve.png" alt="" /> - Debug: Array
    (
        [0] => phpThumb() v1.7.9-200712090829 in file "phpthumb.class.php" on line 216
        [1] => setCacheDirectory() starting with config_cache_directory = "/paas/c0300/www/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
        [2] => setting config_cache_directory to realpath(/paas/c0300/www/core/cache/phpthumb) = "/paas/c0300/www/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
        [3] => setCacheDirectory() starting with config_cache_directory = "/paas/c0300/www/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 919
        [4] => setting config_cache_directory to realpath(/paas/c0300/www/assets/components/phpthumbof/cache) = "/paas/c0300/www/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
        [5] => setSourceFilename(<img src="assets/images/photo-steve.png" alt="" />) set $this->sourceFilename to "<img src="assets/images/photo-steve.png" alt="" />" in file "phpthumb.class.php" on line 243
        [6] => skipping CleanUpCacheDirectory() set to purge (30.0 days; 100.00MB; 10,000 files) in file "phpthumb.class.php" on line 652
        [7] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 884
        [8] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 895
        [9] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 902
        [10] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 912
        [11] => $this->sourceFilename set to "/paas/c0300/www/<img src="assets/images/photo-steve.png" alt="" />" in file "phpthumb.class.php" on line 813
        [12] => phpThumb() v1.7.9-200712090829
    
    "/paas/c0300/www/<img src="assets/images/photo-steve.png" alt="" />" does not exist in file "phpthumb.class.php" on line 3647
        [13] => setCacheDirectory() starting with config_cache_directory = "/paas/c0300/www/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 919
        [14] => setting config_cache_directory to realpath(/paas/c0300/www/assets/components/phpthumbof/cache) = "/paas/c0300/www/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
        [15] => SetCacheFilename() _src set from md5($this->sourceFilename) "/paas/c0300/www/<img src="assets/images/photo-steve.png" alt="" />" = "4ecb643ef91e4aeb09c92babba71a64d" in file "phpthumb.class.php" on line 3077
        [16] => SetCacheFilename() _par set from md5(_farC_w100_dpi150_q75) in file "phpthumb.class.php" on line 3110
        [17] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2897
        [18] => GetImageSize("/paas/c0300/www/<img src="assets/images/photo-steve.png" alt="" />") failed in file "phpthumb.class.php" on line 2920
        [19] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
        [20] => phpThumb_tempnam() returning "/paas/c0300/tmp/pThumbY1Zf6P" in file "phpthumb.class.php" on line 3861
        [21] => ImageMagickSwitchAvailable(thumbnail) = 1 in file "phpthumb.class.php" on line 1189
        [22] => ImageMagickSwitchAvailable(density) = 1 in file "phpthumb.class.php" on line 1189
        [23] => GetImageSize(/paas/c0300/www/<img src="assets/images/photo-steve.png" alt="" />) FAILED with error "" in file "phpthumb.class.php" on line 1318
        [24] => GetImageSize(/paas/c0300/www/<img src="assets/images/photo-steve.png" alt="" />) failed in file "phpthumb.class.php" on line 1460
        [25] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 1807
        [26] => ImageMagickSwitchAvailable(quality;interlace) = 1 in file "phpthumb.class.php" on line 1186
        [27] => ImageMagick called as (convert -density 150 -thumbnail 100x -quality 75 -interlace line  "/paas/c0300/www/<img src="assets/images/photo-steve.png" alt="" />[0]" jpeg:"/paas/c0300/tmp/pThumbY1Zf6P" 2>&1) in file "phpthumb.class.php" on line 1826
        [28] => ImageMagick failed with message (convert: unable to open image `/paas/c0300/www/<img src=assets/images/photo-steve.png alt= />': No such file or directory @ error/blob.c/OpenBlob/2638.
    convert: no decode delegate for this image format `/paas/c0300/www/<img src=assets/images/photo-steve.png alt= />' @ error/constitute.c/ReadImage/550.
    convert: no images defined `jpeg:/paas/c0300/tmp/pThumbY1Zf6P' @ error/convert.c/ConvertImageCommand/3044.) in file "phpthumb.class.php" on line 1834
        [29] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2927
        [30] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2876
        [31] => SetOrientationDependantWidthHeight() setting w="100", h="0" in file "phpthumb.class.php" on line 2892
        [32] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 2979
        [33] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3229
        [34] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
        [35] => phpThumb_tempnam() returning "/paas/c0300/tmp/pThumb1igfGg" in file "phpthumb.class.php" on line 3861
        [36] => ImageMagickSwitchAvailable(thumbnail) = 1 in file "phpthumb.class.php" on line 1189
        [37] => ImageMagickSwitchAvailable(density) = 1 in file "phpthumb.class.php" on line 1189
        [38] => GetImageSize(/paas/c0300/www/<img src="assets/images/photo-steve.png" alt="" />) FAILED with error "" in file "phpthumb.class.php" on line 1318
        [39] => GetImageSize(/paas/c0300/www/<img src="assets/images/photo-steve.png" alt="" />) failed in file "phpthumb.class.php" on line 1460
        [40] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 1807
        [41] => ImageMagickSwitchAvailable(quality;interlace) = 1 in file "phpthumb.class.php" on line 1186
        [42] => ImageMagick called as (convert -density 150 -thumbnail 100x -quality 75 -interlace line  "/paas/c0300/www/<img src="assets/images/photo-steve.png" alt="" />[0]" jpeg:"/paas/c0300/tmp/pThumb1igfGg" 2>&1) in file "phpthumb.class.php" on line 1826
        [43] => ImageMagick failed with message (convert: unable to open image `/paas/c0300/www/<img src=assets/images/photo-steve.png alt= />': No such file or directory @ error/blob.c/OpenBlob/2638.
    convert: no decode delegate for this image format `/paas/c0300/www/<img src=assets/images/photo-steve.png alt= />' @ error/constitute.c/ReadImage/550.
    convert: no images defined `jpeg:/paas/c0300/tmp/pThumb1igfGg' @ error/convert.c/ConvertImageCommand/3044.) in file "phpthumb.class.php" on line 1834
        [44] => starting ImageCreateFromFilename(/paas/c0300/www/<img src="assets/images/photo-steve.png" alt="" />) in file "phpthumb.class.php" on line 3152
        [45] => empty $filename or GetImageSize(/paas/c0300/www/<img src="assets/images/photo-steve.png" alt="" />) failed in file "phpthumb.class.php" on line 3201
        [46] => Populating $rawimagedata in file "phpthumb.class.php" on line 3209
        [47] => cannot fopen(/paas/c0300/www/<img src="assets/images/photo-steve.png" alt="" />) in file "phpthumb.class.php" on line 3212
        [48] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3278
        [49] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3330
        [50] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3332
        [51] => phpThumb() v1.7.9-200712090829
    
    Unknown image type identified by "" () in SourceImageToGD()[3444] in file "phpthumb.class.php" on line 3647
        [52] => SourceImageToGD() failed in file "phpthumb.class.php" on line 323
    )
    
    [2013-01-05 09:20:02] (ERROR @ /index.php) Could not get table name for class: modFileMediaSource
    [2013-01-05 09:20:02] (ERROR @ /index.php) Could not get table name for class: modFileMediaSource
    [2013-01-05 09:20:02] (ERROR @ /index.php) Could not get table name for class: modFileMediaSource
    [2013-01-05 09:20:02] (ERROR @ /index.php) Could not get table name for class: modFileMediaSource

    This question has been answered by markh. See the first response.

      ...
    • discuss.answer
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      [2013-01-05 09:19:58] (ERROR @ /index.php) [phpThumbOf] Could not generate thumbnail: <img src="assets/images/photo-mike.png" alt="" /> - Debug: Array


      ^ that means it is trying to resize the file named "<img src="assets/images/photo-mike.png" alt="" />". You likely have the output type of the TV set to html/image, making it build the html tag instead of just returning "assets/images/photo-mike.png".
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 37042
        • 384 Posts
        Thanks Mark. Worked great using

        <img src="[[+tv.Picture:phpthumbof=`w=50`]]">
        instead of
        [[+tv.Picture:phpthumbof=`w=50`]]

        as soon as I updated the TV Output options to text instead of image.
          ...