We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40131
    • 40 Posts
    I have the following repeating error log data, I can't figure it out:

     [2013-02-28 15:24:24] (ERROR @ /index.php) [phpThumbOf] Could not generate thumbnail: //initrd.img - Debug: Array
    (
        [0] => phpThumb() v1.7.9-200712090829 in file "phpthumb.class.php" on line 216
        [1] => setCacheDirectory() starting with config_cache_directory = "/root/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
        [2] => setting config_cache_directory to realpath(/root/core/cache/phpthumb) = "/home/sparkyweb/www/sparkyeu/root/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
        [3] => setCacheDirectory() starting with config_cache_directory = "/root/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 919
        [4] => setting config_cache_directory to realpath(/root/assets/components/phpthumbof/cache) = "/root/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
        [5] => setSourceFilename(//initrd.img) set $this->sourceFilename to "//initrd.img" 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 "99" in file "phpthumb.class.php" on line 912
        [11] => is_link()==true, changing "//initrd.img" to "boot/initrd.img-2.6.32-5-amd64" in file "phpthumb.class.php" on line 1055
        [12] => !$this->config_allow_src_above_docroot therefore setting "boot/initrd.img-2.6.32-5-amd64" (outside "/root") to null in file "phpthumb.class.php" on line 1066
        [13] => $this->sourceFilename set to "" in file "phpthumb.class.php" on line 813
        [14] => phpThumb() v1.7.9-200712090829
    
    "" does not exist in file "phpthumb.class.php" on line 3647
        [15] => setCacheDirectory() starting with config_cache_directory = "/root/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 919
        [16] => setting config_cache_directory to realpath(/root/assets/components/phpthumbof/cache) = "/root/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
        [17] => is_link()==true, changing "//initrd.img" to "boot/initrd.img-2.6.32-5-amd64" in file "phpthumb.class.php" on line 1055
        [18] => !$this->config_allow_src_above_docroot therefore setting "boot/initrd.img-2.6.32-5-amd64" (outside "/root") to null in file "phpthumb.class.php" on line 1066
        [19] => SetCacheFilename() _src set from md5($this->sourceFilename) "" = "d41d8cd98f00b204e9800998ecf8427e" in file "phpthumb.class.php" on line 3077
        [20] => SetCacheFilename() _par set from md5(_fltrusm|80|0.5|3_zc1_h113_w150_dpi150_q99) in file "phpthumb.class.php" on line 3110
        [21] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2897
        [22] => GetImageSize("") failed in file "phpthumb.class.php" on line 2920
        [23] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
        [24] => ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1279
        [25] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2927
        [26] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2876
        [27] => SetOrientationDependantWidthHeight() setting w="150", h="113" in file "phpthumb.class.php" on line 2892
        [28] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 2979
        [29] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3229
        [30] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
        [31] => ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1279
        [32] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3278
        [33] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3330
        [34] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3332
        [35] => phpThumb() v1.7.9-200712090829
    
    Unknown image type identified by "" () in SourceImageToGD()[3444] in file "phpthumb.class.php" on line 3647
        [36] => SourceImageToGD() failed in file "phpthumb.class.php" on line 323
    )



    However there are no visual problems or anything wrong on the site frontend itself.
    Any ideas what to check?
      • 25803 ☆ A M B ☆
      • 721 Posts
      Also here: https://forums.modx.com/thread/82407/phpthumb-error-with-gallery-using-xampp-and-imagemagick#dis-post-456827

      I'm getting this on a production server. Makes for a rather large error file quickly. Would love to know how to stop it.
        • 35150 ☆ A M B ☆
        • 191 Posts
        From reading the error message, it looks like the problem is that it can't figure out what type of image '//initrd.img' is. That's an odd file to try to make a thumbnail from, since it appears to be a disc image, not a raster graphic like a jpeg or png. Is that really what you're intending?

        The other forum thread is a problem with the fellow's ImageMagick install not being detected by phpthumb. The error message says that jpg is too big to be processed with GD.
          Extras :: pThumb • Resizer • imageSlim • setPlaceholders
          • 40131
          • 40 Posts
          Phpthumbof seems to work - all images are generated properly. But the whole website is loading like a snail I suspect these constant errors are slowing down everything.
            • 33969
            • 60 Posts
            '//initrd.img' is a link to boot file - not an image file (as in picture). In line 11 of the debug array, the path is changed to the real file name "boot/initrd.img-2.6.32-5-amd64"

            I can't think of any reason phpThumbOf would be trying to make a thumbnail of this file. Check your configuration and any place where phpThumbOf is called dynamically. Make sure you don't have '/root/' where you should have '/home/sparkyweb/www/sparkyeu/root/'
              Michael Regan
              TIMR Web Services
              Phone: 250.218.5284
              Eamil: [email protected]
              Website: timr.ca