We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41121
    • 27 Posts
    Hi there,

    i upgraded one of my test systems from 2.2.14 to the new 2.3.1 to have look around. Nice UI by the way smiley

    In the media browser i can not see any thumbnails. Thumb images are displayed as broken. (see screen shot)

    error log says:
     [2014-10-21 16:54:07] (ERROR @ /connectors/system/phpthumb.php) phpThumb was unable to generate a thumbnail for: D:\workspace\websites\modx\modx-2.3.1-pl\core\cache\phpthumb\example_domain.com__src4a7615afe660c54065d44fb566b27408_par02a1b054e8467fb1e234c8a8fd8d10d2_dat1388774724.png
    [2014-10-21 16:54:07] (ERROR @ /connectors/system/phpthumb.php) Error outputting thumbnail:
    OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 572


    phpThumb config:
    see 2. screen shot

    So what is going wrong here? Did i miss something?
    Hope you can shed some light on this matter

    Greets
      • 40045
      • 534 Posts
      can you check with what image path the phpthumb connector is called, just inspect one of the broken thumbs and you should see something like this:

        • 3749
        • 24,544 Posts
        I have the same thing going on in NewsPublisher with image TVs in 2.2.13. I get the same error message in the log.

        2.2.13:

        http://localhost/addons/connectors/system/phpthumb.php?&basePath=&basePathRelative=true&baseUrl=&baseUrlRelative=true&baseUrlPrependCheckSlash=true&allowedFileTypes=&wctx=web&source=3&src=compass-vector.jpg&w=120&h=120
        

        It works in 2.3.2 (though you can no longer double-click on an image to select it):

        http://localhost/revo23/connectors/system/phpthumb.php?&wctx=web&source=1&src=manager/templates/default/images/modx-logo-color.png&w=120&h=120
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 40748
          • 55 Posts
          I have the same problem, MODX Revo 2.3.2-pl.

          But this error appears only if I create and use new media source for images.
          If I use default Filesystem option and no additional media sources - everything is ok and no errors.

          Is there any solution to use media sources for image-type TV inputs?

          Thank you!
            Cheap and ready landing pages: http://real-portal.biz
            Start selling fast, good for dropshipping
            • 12410
            • 353 Posts
            Do we know the fix guys? i get weird 1 hr long 100% CPU spikes

            [2015-12-10 10:47:40] (ERROR @ /manager/index.php) [migxResourceMediaPath]: docid could not be determined.
            [2015-12-10 10:47:41] (ERROR @ /connectors/system/phpthumb.php) phpThumb was unable to generate a thumbnail for: /home/bhrlan/public_html/core/cache/phpthumb/www.mysite.org__srcdfbda42d70aa83355744dc27e3179a31_par6455564129777d8acea3da58b84d0906_dat1448764311.jpeg
            [2015-12-10 10:47:41] (ERROR @ /connectors/system/phpthumb.php) Error outputting thumbnail:
            OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 572
            [2015-12-10 10:47:41] (ERROR @ /connectors/system/phpthumb.php) phpThumb was unable to generate a thumbnail for: /home/bhrlan/public_html/core/cache/phpthumb/www.mysite.org__srcfe2673320085cb97b5f3b6785e9315b6_par6455564129777d8acea3da58b84d0906_dat1448764114.jpeg
            [2015-12-10 10:47:41] (ERROR @ /connectors/system/phpthumb.php) Error outputting thumbnail:
            OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 572
            [2015-12-10 10:55:02] (ERROR @ /index.php) [pThumb] Resource: 69 || Image: assets/resourceimages/resource69/DSC.MINUTES.4.28.15.SP_.CHOICE.docx
            Could not generate thumbnail
            phpThumb debug output:
                [0] => phpThumb() v1.7.13-201406261000 in file "phpthumb.class.php" on line 220
                [1] => setSourceFilename(/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.4.28.15.SP_.CHOICE.docx) set $this->sourceFilename to "/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.4.28.15.SP_.CHOICE.docx" in file "phpthumb.class.php" on line 271
                [2] => Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 919
                [3] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 925
                [4] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 936
                [5] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 943
                [6] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 953
                [7] => resolvePath: /home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.4.28.15.SP_.CHOICE.docx (allowed_dirs: Array
            (
            )
            ) in file "phpthumb.class.php" on line 1096
                [8] => resolvePath: iteration, path=/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.4.28.15.SP_.CHOICE.docx, base path = /home/bhrlan/public_html in file "phpthumb.class.php" on line 1115
                [9] => open_basedir: "" in file "phpthumb.class.php" on line 1082
                [10] => resolvePath: stop at component 8 in file "phpthumb.class.php" on line 1131
                [11] => resolvePath: stop at path=/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.4.28.15.SP_.CHOICE.docx in file "phpthumb.class.php" on line 1134
                [12] => resolvePath: path parsed, over in file "phpthumb.class.php" on line 1140
                [13] => $this->sourceFilename set to "/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.4.28.15.SP_.CHOICE.docx" in file "phpthumb.class.php" on line 849
                [14] => SetCacheFilename() _src set from md5($this->sourceFilename) "/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.4.28.15.SP_.CHOICE.docx" = "fe2673320085cb97b5f3b6785e9315b6" in file "phpthumb.class.php" on line 3443
                [15] => SetCacheFilename() _par set from md5(_farC_zc1_h500_w1280_aoe1_dpi150_q75) in file "phpthumb.class.php" on line 3476
                [16] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3236
                [17] => GetImageSize(/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.4.28.15.SP_.CHOICE.docx) says image is x in file "phpthumb.class.php" on line 3246
                [18] => GetImageSize("/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.4.28.15.SP_.CHOICE.docx") failed in file "phpthumb.class.php" on line 3279
                [19] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1508
                [20] => phpThumb_tempnam() returning "/home/bhrlan/public_html/pThumbhB8edI" in file "phpthumb.class.php" on line 4275
                [21] => ImageMagickSwitchAvailable(thumbnail) = 0 in file "phpthumb.class.php" on line 1445
                [22] => IMuseExplicitImageOutputDimensions = 0 in file "phpthumb.class.php" on line 1583
                [23] => ImageMagickSwitchAvailable(density) = 0 in file "phpthumb.class.php" on line 1445
                [24] => GetImageSize(/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.4.28.15.SP_.CHOICE.docx) FAILED with error "" in file "phpthumb.class.php" on line 1602
                [25] => GetImageSize(/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.4.28.15.SP_.CHOICE.docx) failed in file "phpthumb.class.php" on line 1749
                [26] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 2132
                [27] => ImageMagickSwitchAvailable(quality;interlace) = 0 in file "phpthumb.class.php" on line 1442
                [28] => ImageMagick called as (convert -resize '1280x500' '/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.4.28.15.SP_.CHOICE.docx[0]' jpeg:'/home/bhrlan/public_html/pThumbhB8edI' 2>&1) in file "phpthumb.class.php" on line 2151
                [29] => ImageMagick failed with message (sh: convert: command not found) in file "phpthumb.class.php" on line 2156
                [30] => deleting "/home/bhrlan/public_html/pThumbhB8edI" in file "phpthumb.class.php" on line 2188
                [31] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3286
                [32] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3215
                [33] => SetOrientationDependantWidthHeight() setting w="1280", h="500" in file "phpthumb.class.php" on line 3231
                [34] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3343
                [35] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3603
                [36] => starting ImageCreateFromFilename(/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.4.28.15.SP_.CHOICE.docx) in file "phpthumb.class.php" on line 3518
                [37] => empty $filename or GetImageSize(/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.4.28.15.SP_.CHOICE.docx) failed in file "phpthumb.class.php" on line 3567
                [38] => Populating $rawimagedata in file "phpthumb.class.php" on line 3575
                [39] => attempting ImageCreateFromStringReplacement($rawimagedata (97779 bytes), true) in file "phpthumb.class.php" on line 3589
                [40] => ImageCreateFromStringReplacement() calling built-in ImageCreateFromString() in file "phpthumb.class.php" on line 4159
                [41] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3674
                [42] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3726
                [43] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3728
                [44] => phpThumb() v1.7.13-201406261000
            http://phpthumb.sourceforge.net
            
            Error messages disabled.
            
            edit phpThumb.config.php and (temporarily) set
            $PHPTHUMB_CONFIG['disable_debug'] = false;
            to view the details of this error in file "phpthumb.class.php" on line 4050
                [45] => SourceImageToGD() failed in file "phpthumb.class.php" on line 351
            ----------------------
            
            [2015-12-10 10:55:02] (ERROR @ /index.php) [pThumb] Resource: 69 || Image: assets/resourceimages/resource69/DSC.MINUTES.5.5.15.docx
            Could not generate thumbnail
            phpThumb debug output:
                [0] => phpThumb() v1.7.13-201406261000 in file "phpthumb.class.php" on line 220
                [1] => setSourceFilename(/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.5.5.15.docx) set $this->sourceFilename to "/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.5.5.15.docx" in file "phpthumb.class.php" on line 271
                [2] => Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 919
                [3] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 925
                [4] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 936
                [5] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 943
                [6] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 953
                [7] => resolvePath: /home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.5.5.15.docx (allowed_dirs: Array
            (
            )
            ) in file "phpthumb.class.php" on line 1096
                [8] => resolvePath: iteration, path=/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.5.5.15.docx, base path = /home/bhrlan/public_html in file "phpthumb.class.php" on line 1115
                [9] => resolvePath: stop at component 8 in file "phpthumb.class.php" on line 1131
                [10] => resolvePath: stop at path=/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.5.5.15.docx in file "phpthumb.class.php" on line 1134
                [11] => resolvePath: path parsed, over in file "phpthumb.class.php" on line 1140
                [12] => $this->sourceFilename set to "/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.5.5.15.docx" in file "phpthumb.class.php" on line 849
                [13] => SetCacheFilename() _src set from md5($this->sourceFilename) "/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.5.5.15.docx" = "dfbda42d70aa83355744dc27e3179a31" in file "phpthumb.class.php" on line 3443
                [14] => SetCacheFilename() _par set from md5(_farC_zc1_h500_w1280_aoe1_dpi150_q75) in file "phpthumb.class.php" on line 3476
                [15] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3236
                [16] => GetImageSize(/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.5.5.15.docx) says image is x in file "phpthumb.class.php" on line 3246
                [17] => GetImageSize("/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.5.5.15.docx") failed in file "phpthumb.class.php" on line 3279
                [18] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1508
                [19] => phpThumb_tempnam() returning "/home/bhrlan/public_html/pThumb74h5ZW" in file "phpthumb.class.php" on line 4275
                [20] => ImageMagickSwitchAvailable(thumbnail) = 0 in file "phpthumb.class.php" on line 1445
                [21] => IMuseExplicitImageOutputDimensions = 0 in file "phpthumb.class.php" on line 1583
                [22] => ImageMagickSwitchAvailable(density) = 0 in file "phpthumb.class.php" on line 1445
                [23] => GetImageSize(/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.5.5.15.docx) FAILED with error "" in file "phpthumb.class.php" on line 1602
                [24] => GetImageSize(/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.5.5.15.docx) failed in file "phpthumb.class.php" on line 1749
                [25] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 2132
                [26] => ImageMagickSwitchAvailable(quality;interlace) = 0 in file "phpthumb.class.php" on line 1442
                [27] => ImageMagick called as (convert -resize '1280x500' '/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.5.5.15.docx[0]' jpeg:'/home/bhrlan/public_html/pThumb74h5ZW' 2>&1) in file "phpthumb.class.php" on line 2151
                [28] => ImageMagick failed with message (sh: convert: command not found) in file "phpthumb.class.php" on line 2156
                [29] => deleting "/home/bhrlan/public_html/pThumb74h5ZW" in file "phpthumb.class.php" on line 2188
                [30] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3286
                [31] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3215
                [32] => SetOrientationDependantWidthHeight() setting w="1280", h="500" in file "phpthumb.class.php" on line 3231
                [33] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3343
                [34] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3603
                [35] => starting ImageCreateFromFilename(/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.5.5.15.docx) in file "phpthumb.class.php" on line 3518
                [36] => empty $filename or GetImageSize(/home/bhrlan/public_html/assets/resourceimages/resource69/DSC.MINUTES.5.5.15.docx) failed in file "phpthumb.class.php" on line 3567
                [37] => Populating $rawimagedata in file "phpthumb.class.php" on line 3575
                [38] => attempting ImageCreateFromStringReplacement($rawimagedata (95690 bytes), true) in file "phpthumb.class.php" on line 3589
                [39] => ImageCreateFromStringReplacement() calling built-in ImageCreateFromString() in file "phpthumb.class.php" on line 4159
                [40] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3674
                [41] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3726
                [42] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3728
                [43] => phpThumb() v1.7.13-201406261000
            http://phpthumb.sourceforge.net
            
            Error messages disabled.
            
            edit phpThumb.config.php and (temporarily) set
            $PHPTHUMB_CONFIG['disable_debug'] = false;
            to view the details of this error in file "phpthumb.class.php" on line 4050
                [44] => SourceImageToGD() failed in file "phpthumb.class.php" on line 351