splittingred/phpThumbOf — Issue #31: Amazon S3 settings: broken setSourceFilename
Author: oksushi
Created: 2012-01-30 03:16:28+00:00
State: open

Here is an excerpt from the Error Log in my MODX installation. You can see that at [5] the setSourceFilename is being set incorrectly, which means that the thumbnail generation fails.

Am wanting to use AmazonS3 to store thumbnails:

[2012-01-30 14:09:10] (ERROR @ /home/themusic/public_html/new/core/model/phpthumb/phpthumb.class.php : 3212) PHP warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Name or service not known
[2012-01-30 14:09:10] (ERROR @ /home/themusic/public_html/new/core/model/phpthumb/phpthumb.class.php : 3212) PHP warning: file_get_contents(http://new.themusic.com.auhttp://d3mfoxizwrqdu.cloudfront.net/news-kid-cudi.png) [function.file-get-contents]: failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
[2012-01-30 14:09:10] (ERROR @ /index.php) [phpThumbOf] Could not generate thumbnail: http://new.themusic.com.auhttp://d3mfoxizwrqdu.cloudfront.net/news-kid-cudi.png - Debug: Array
(
[0] => phpThumb() v1.7.9-200712090829 in file "phpthumb.class.php" on line 216
[1] => setCacheDirectory() starting with config_cache_directory = "/home/themusic/public_html/new/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
[2] => setting config_cache_directory to realpath(/home/themusic/public_html/new/core/cache/phpthumb) = "/home/themusic/public_html/new/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
[3] => setCacheDirectory() starting with config_cache_directory = "/home/themusic/public_html/new/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 919
[4] => setting config_cache_directory to realpath(/home/themusic/public_html/new/assets/components/phpthumbof/cache) = "/home/themusic/public_html/new/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
[5] => setSourceFilename(http://new.themusic.com.auhttp://d3mfoxizwrqdu.cloudfront.net/news-kid-cudi.png) set $this->sourceFilename to "http://new.themusic.com.auhttp://d3mfoxizwrqdu.cloudfront.net/news-kid-cudi.png" 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 "png" 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 "http://new.themusic.com.auhttp://d3mfoxizwrqdu.cloudfront.net/news-kid-cudi.png" in file "phpthumb.class.php" on line 813
[12] => setCacheDirectory() starting with config_cache_directory = "/home/themusic/public_html/new/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 919
[13] => setting config_cache_directory to realpath(/home/themusic/public_html/new/assets/components/phpthumbof/cache) = "/home/themusic/public_html/new/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
[14] => SetCacheFilename() _src set from md5($this->sourceFilename) "http://new.themusic.com.auhttp://d3mfoxizwrqdu.cloudfront.net/news-kid-cudi.png" = "870f45da90a60d1e05d8b6532ce7e5c7" in file "phpthumb.class.php" on line 3079
[15] => SetCacheFilename() _par set from md5(_farC_zc1_h70_w70_dpi150) in file "phpthumb.class.php" on line 3112
[16] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2899
[17] => GetImageSize("http://new.themusic.com.auhttp://d3mfoxizwrqdu.cloudfront.net/news-kid-cudi.png") failed in file "phpthumb.class.php" on line 2922
[18] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1234
[19] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 1867
[20] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2929
[21] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2878
[22] => SetOrientationDependantWidthHeight() setting w="70", h="70" in file "phpthumb.class.php" on line 2894
[23] => exif_thumbnail() does not exist, cannot extract EXIF thumbnail in file "phpthumb.class.php" on line 2976
[24] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3231
[25] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1234
[26] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 1867
[27] => starting ImageCreateFromFilename(http://new.themusic.com.auhttp://d3mfoxizwrqdu.cloudfront.net/news-kid-cudi.png) in file "phpthumb.class.php" on line 3154
[28] => empty $filename or GetImageSize(http://new.themusic.com.auhttp://d3mfoxizwrqdu.cloudfront.net/news-kid-cudi.png) failed in file "phpthumb.class.php" on line 3203
[29] => Populating $rawimagedata in file "phpthumb.class.php" on line 3211
[30] => cannot fopen(http://new.themusic.com.auhttp://d3mfoxizwrqdu.cloudfront.net/news-kid-cudi.png) in file "phpthumb.class.php" on line 3214
[31] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3280
[32] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3332
[33] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3334
[34] => phpThumb() v1.7.9-200712090829

Unknown image type identified by "" () in SourceImageToGD()[3446] in file "phpthumb.class.php" on line 3649
[35] => SourceImageToGD() failed in file "phpthumb.class.php" on line 323
)