We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9550
    • 123 Posts
    When I load a page that has a call to the phpthumbof filter only a link to the original image is output and I get the following error logged to my MODx logs:

     [2011-04-01 18:41:06] (ERROR @ /rawc2/index.php) [phpThumbOf] Could not generate thumbnail: assets/images/exhibitions/nicholas frenette/01NFEntryToPurgatory.jpg - Debug: Array
    (
        [0] => phpThumb() v1.7.9-200712090829 in file "phpthumb.class.php" on line 216
        [1] => setCacheDirectory() starting with config_cache_directory = "/Users/ojs/Sites/rawc2/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
        [2] => setting config_cache_directory to realpath(/Users/ojs/Sites/rawc2/core/cache/phpthumb) = "/Users/ojs/Sites/rawc2/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
        [3] => setCacheDirectory() starting with config_cache_directory = "/Users/ojs/Sites/rawc2/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 919
        [4] => setting config_cache_directory to realpath(/Users/ojs/Sites/rawc2/assets/components/phpthumbof/cache) = "/Users/ojs/Sites/rawc2/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
        [5] => setSourceFilename(assets/images/exhibitions/nicholas frenette/01NFEntryToPurgatory.jpg) set $this->sourceFilename to "assets/images/exhibitions/nicholas frenette/01NFEntryToPurgatory.jpg" 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] => ImageMagickThumbnailToGD() aborting because cannot find convert in $this->config_imagemagick_path (), and `which convert` returned () 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 "png" 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 "/Users/ojs/Sites/rawc2//rawc2/assets/images/exhibitions/nicholas frenette/01NFEntryToPurgatory.jpg" in file "phpthumb.class.php" on line 813
        [15] => phpThumb() v1.7.9-200712090829
    
    "/Users/ojs/Sites/rawc2//rawc2/assets/images/exhibitions/nicholas frenette/01NFEntryToPurgatory.jpg" does not exist in file "phpthumb.class.php" on line 3652
        [16] => setCacheDirectory() starting with config_cache_directory = "/Users/ojs/Sites/rawc2/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 919
        [17] => setting config_cache_directory to realpath(/Users/ojs/Sites/rawc2/assets/components/phpthumbof/cache) = "/Users/ojs/Sites/rawc2/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
        [18] => SetCacheFilename() _src set from md5($this->sourceFilename) "/Users/ojs/Sites/rawc2//rawc2/assets/images/exhibitions/nicholas frenette/01NFEntryToPurgatory.jpg" = "3674c7ec53f6e2bdf4106461b531a9c6" in file "phpthumb.class.php" on line 3074
        [19] => SetCacheFilename() _par set from md5(_farC_h900_w250_dpi150) in file "phpthumb.class.php" on line 3107
        [20] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2894
        [21] => GetImageSize("/Users/ojs/Sites/rawc2//rawc2/assets/images/exhibitions/nicholas frenette/01NFEntryToPurgatory.jpg") failed in file "phpthumb.class.php" on line 2917
        [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 2924
        [25] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2873
        [26] => SetOrientationDependantWidthHeight() setting w="250", h="900" in file "phpthumb.class.php" on line 2889
        [27] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 2976
        [28] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3234
        [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(/Users/ojs/Sites/rawc2//rawc2/assets/images/exhibitions/nicholas frenette/01NFEntryToPurgatory.jpg) in file "phpthumb.class.php" on line 3149
        [32] => empty $filename or GetImageSize(/Users/ojs/Sites/rawc2//rawc2/assets/images/exhibitions/nicholas frenette/01NFEntryToPurgatory.jpg) failed in file "phpthumb.class.php" on line 3198
        [33] => Populating $rawimagedata in file "phpthumb.class.php" on line 3206
        [34] => cannot fopen(/Users/ojs/Sites/rawc2//rawc2/assets/images/exhibitions/nicholas frenette/01NFEntryToPurgatory.jpg) in file "phpthumb.class.php" on line 3217
        [35] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3283
        [36] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3335
        [37] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3337
        [38] => phpThumb() v1.7.9-200712090829
    
    Unknown image type identified by "" () in SourceImageToGD()[3449] in file "phpthumb.class.php" on line 3652
        [39] => SourceImageToGD() failed in file "phpthumb.class.php" on line 323
    )
    


    Having trouble making sense whether this means I don’t have ImageMagick install or it’s a configuration error. MODx has no problem generating image thumbnails in the manager. It the manager also using ImageMagick or GD? Also does phpthumbof piggy back on the existing thumbnail generation system?

    Any help diagnosing would be greatly appreciated.

    Be well,
      • 9550
      • 123 Posts
      Oh yeah, I’m using MAMP Pro 1.9.4, w/ PHP 5.2.13

      PHP gives me the following info regarding GD support:

      GD Support enabled
      GD Version bundled (2.0.34 compatible)
      FreeType Support enabled
      FreeType Linkage with freetype
      FreeType Version 2.3.9
      T1Lib Support enabled
      GIF Read Support enabled
      GIF Create Support enabled
      JPG Support enabled
      PNG Support enabled
      WBMP Support enabled
      XBM Support enabled

      and I haven’t touched any "site settings" for phpthumbof.

      just installed, tested it and it failed.
        • 9550
        • 123 Posts
        bueller?
          • 22019
          • 390 Posts
          When I had issues with phpthumbof ’outputting’ the original image it’s because it didn’t have permission to write to /assets/components/phpthumbof/cache so it wasn’t creating new images, and falling back to originals.
            Writer > E-consultant > MODx developer || Salesforce || modx 2.x || PHP 5.2.13 || MySQL client 5.0.86
            • 9550
            • 123 Posts
            odeclas: just got your post on the official thread. will continue discussion there. thanks man.