-
☆ A M B ☆
- 2,213 Posts
The thumbnails aren’t being generated for MODx browser on a server. The error logs contain this:
[2010-12-02 00:42:30] (ERROR @ /~carlos/connectors/system/phpthumb.php) phpThumb was unable to generate a thumbnail for: /home/carlos/public_html/core/cache/phpthumb/phpThumb_cache_zeus.DOMAIN.com_srcecb746d37276a750020338f56a6405d7_par3c9237f62bc13d2d6cb6907137a1fa72_dat1291266694.jpeg
[2010-12-02 00:42:30] (ERROR @ /~carlos/connectors/system/phpthumb.php) Error outputting thumbnail:
OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 557
[2010-12-02 00:42:30] (ERROR @ /~carlos/connectors/system/phpthumb.php) phpThumb was unable to generate a thumbnail for: /home/carlos/public_html/core/cache/phpthumb/phpThumb_cache_zeus.vbtechservices.com_src7d91833760d9da27cc3de28e9ce5bc8f_par3c9237f62bc13d2d6cb6907137a1fa72_dat1291266295.jpeg
[2010-12-02 00:42:30] (ERROR @ /~carlos/connectors/system/phpthumb.php) Error outputting thumbnail:
OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 557
Yes, the site is using a temp URL with ~, but wasn’t it corrected so this would work?
Revo 2.0.4PL2 - PHP 5.2.11 - MySQL 5.0.91 - Apache - GD is installed
Is ImageMagick installed on the server?
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com
-
☆ A M B ☆
- 2,213 Posts
No, it can be installed, but I would think this should work without the need for ImageMagick. No?
Some server errors we are receiving while the thumbnails are not appearing.
[2010-12-03 02:17:43] (ERROR @ /~carlos/index.php) [phpThumbOf] Could not generate thumbnail: assets/images/body-of-work.jpg - Debug: Array
(
[0] => phpThumb() v1.7.9-200712090829 in file "phpthumb.class.php" on line 216
[1] => setCacheDirectory() starting with config_cache_directory = "/home/carlos/public_html/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
[2] => setting config_cache_directory to realpath(/home/carlos/public_html/core/cache/phpthumb) = "/home/carlos/public_html/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
[3] => setCacheDirectory() starting with config_cache_directory = "/home/carlos/public_html/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 919
[4] => setting config_cache_directory to realpath(/home/carlos/public_html/assets/components/phpthumbof/cache) = "/home/carlos/public_html/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
[5] => setSourceFilename(assets/images/body-of-work.jpg) set $this->sourceFilename to "assets/images/body-of-work.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] => using ImageMagick path from `which convert` (/usr/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 convert --version says "Version: ImageMagick 6.2.8 10/20/10 Q16 file:" in file "phpthumb.class.php" on line 1157
[12] => Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 878
[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 "png" in file "phpthumb.class.php" on line 902
[16] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 912
[17] => phpthumb_functions::ApacheLookupURIarray() failed for "/~carlos", but the correct filename (/home/carlos/public_html/assets/images/body-of-work.jpg) seems to have been resolved with realpath(.)/$filename in file "phpthumb.class.php" on line 1044
[18] => !$this->config_allow_src_above_docroot therefore setting "/home/carlos/public_html/assets/images/body-of-work.jpg" (outside "/usr/local/apache/htdocs") to null in file "phpthumb.class.php" on line 1066
[19] => $this->sourceFilename set to "" in file "phpthumb.class.php" on line 813
[20] => phpThumb() v1.7.9-200712090829
"" does not exist in file "phpthumb.class.php" on line 3652
[21] => setCacheDirectory() starting with config_cache_directory = "/home/carlos/public_html/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 919
[22] => setting config_cache_directory to realpath(/home/carlos/public_html/assets/components/phpthumbof/cache) = "/home/carlos/public_html/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
[23] => phpthumb_functions::ApacheLookupURIarray() failed for "/~carlos", but the correct filename (/home/carlos/public_html/assets/images/body-of-work.jpg) seems to have been resolved with realpath(.)/$filename in file "phpthumb.class.php" on line 1044
[24] => !$this->config_allow_src_above_docroot therefore setting "/home/carlos/public_html/assets/images/body-of-work.jpg" (outside "/usr/local/apache/htdocs") to null in file "phpthumb.class.php" on line 1066
[25] => SetCacheFilename() _src set from md5($this->sourceFilename) "" = "d41d8cd98f00b204e9800998ecf8427e" in file "phpthumb.class.php" on line 3074
[26] => SetCacheFilename() _par set from md5(_farC_w260_dpi150) in file "phpthumb.class.php" on line 3107
[27] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2894
[28] => GetImageSize("") failed in file "phpthumb.class.php" on line 2917
[29] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
[30] => ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1279
[31] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2924
[32] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2873
[33] => SetOrientationDependantWidthHeight() setting w="260", h="0" in file "phpthumb.class.php" on line 2889
[34] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 2976
[35] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3234
[36] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
[37] => ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1279
[38] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3283
[39] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3335
[40] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3337
[41] => phpThumb() v1.7.9-200712090829
Unknown image type identified by "" () in SourceImageToGD()[3449] in file "phpthumb.class.php" on line 3652
[42] => SourceImageToGD() failed in file "phpthumb.class.php" on line 323
)
[2010-12-03 02:17:45] (ERROR @ /~carlos/index.php) [phpThumbOf] Could not generate thumbnail: assets/images/body-of-work.jpg - Debug: Array
(
[0] => phpThumb() v1.7.9-200712090829 in file "phpthumb.class.php" on line 216
[1] => setCacheDirectory() starting with config_cache_directory = "/home/carlos/public_html/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
[2] => setting config_cache_directory to realpath(/home/carlos/public_html/core/cache/phpthumb) = "/home/carlos/public_html/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
[3] => setCacheDirectory() starting with config_cache_directory = "/home/carlos/public_html/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 919
[4] => setting config_cache_directory to realpath(/home/carlos/public_html/assets/components/phpthumbof/cache) = "/home/carlos/public_html/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
[5] => setSourceFilename(assets/images/body-of-work.jpg) set $this->sourceFilename to "assets/images/body-of-work.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] => using ImageMagick path from `which convert` (/usr/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 convert --version says "Version: ImageMagick 6.2.8 10/20/10 Q16 file:" in file "phpthumb.class.php" on line 1157
[12] => Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 878
[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 "png" in file "phpthumb.class.php" on line 902
[16] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 912
[17] => phpthumb_functions::ApacheLookupURIarray() failed for "/~carlos", but the correct filename (/home/carlos/public_html/assets/images/body-of-work.jpg) seems to have been resolved with realpath(.)/$filename in file "phpthumb.class.php" on line 1044
[18] => !$this->config_allow_src_above_docroot therefore setting "/home/carlos/public_html/assets/images/body-of-work.jpg" (outside "/usr/local/apache/htdocs") to null in file "phpthumb.class.php" on line 1066
[19] => $this->sourceFilename set to "" in file "phpthumb.class.php" on line 813
[20] => phpThumb() v1.7.9-200712090829
"" does not exist in file "phpthumb.class.php" on line 3652
[21] => setCacheDirectory() starting with config_cache_directory = "/home/carlos/public_html/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 919
[22] => setting config_cache_directory to realpath(/home/carlos/public_html/assets/components/phpthumbof/cache) = "/home/carlos/public_html/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
[23] => phpthumb_functions::ApacheLookupURIarray() failed for "/~carlos", but the correct filename (/home/carlos/public_html/assets/images/body-of-work.jpg) seems to have been resolved with realpath(.)/$filename in file "phpthumb.class.php" on line 1044
[24] => !$this->config_allow_src_above_docroot therefore setting "/home/carlos/public_html/assets/images/body-of-work.jpg" (outside "/usr/local/apache/htdocs") to null in file "phpthumb.class.php" on line 1066
[25] => SetCacheFilename() _src set from md5($this->sourceFilename) "" = "d41d8cd98f00b204e9800998ecf8427e" in file "phpthumb.class.php" on line 3074
[26] => SetCacheFilename() _par set from md5(_farC_w274_dpi150) in file "phpthumb.class.php" on line 3107
[27] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2894
[28] => GetImageSize("") failed in file "phpthumb.class.php" on line 2917
[29] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
[30] => ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1279
[31] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2924
[32] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2873
[33] => SetOrientationDependantWidthHeight() setting w="274", h="0" in file "phpthumb.class.php" on line 2889
[34] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 2976
[35] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3234
[36] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
[37] => ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1279
[38] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3283
[39] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3335
[40] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3337
[41] => phpThumb() v1.7.9-200712090829
Unknown image type identified by "" () in SourceImageToGD()[3449] in file "phpthumb.class.php" on line 3652
[42] => SourceImageToGD() failed in file "phpthumb.class.php" on line 323
)
-
☆ A M B ☆
- 2,213 Posts
Just to expand on things, ImageMagick is installed and a more detailed error message is above.
Any ideas?
AMDbuilder
Same problem here. Server is running ImageMagick and GD, but no thumbnails. Development server URL contains "~". Really hope somebody smarter than me can find a solution to this.
Go to System Settings, and make sure that the phpthumb_allow_src_above_docroot setting is set to Yes.
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com
You’re my banjo-playin hero. Totally missed that little detail and it makes perfect sense. One more probably obvious question, what’s the trick to prevent distorted thumbnails, do I need to change phpThumb_far or phpthumb_zoomcrop?
Many thanks for the quick fix, you guys are simply the best.
Probably a combo of both; take zoomcrop off, and set far to "C".
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com