Closed bertoost closed 13 years ago
Sorry, the errors where shown in the error log.. here a copy for a single image
(ERROR @ /~bert/_/index.php) [phpThumbOf] Could not generate thumbnail: uploads/images/products/image-name.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/bert/_/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
[2] => setting config_cachedirectory to realpath(/home/bert/**/core/cache/phpthumb) = "/home/bert/_/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
[3] => setCacheDirectory() starting with config_cache_directory = "/home/bert/_/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 919
[4] => setting config_cachedirectory to realpath(/home/bert/**/assets/components/phpthumbof/cache) = "/home/bert/_/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
[5] => setSourceFilename(uploads/images/products/image-name.png) set $this->sourceFilename to "uploads/images/products/image-name.png" in file "phpthumb.class.php" on line 243
[6] => skipping CleanUpCacheDirectory() set to purge (30.0 days; 104,857,600.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 (which: no convert in (/sbin:/usr/sbin:/bin:/usr/bin)) 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] => phpthumb_functions::ApacheLookupURIarray() failed for "/~bert/modx-cms/Atkins.com/src", but the correct filename (/home/bert/_/uploads/images/products/image-name.png) seems to have been resolved with realpath(.)/$filename in file "phpthumb.class.php" on line 1044
[15] => !$this->config_allow_src_above_docroot therefore setting "/home/bert/***/uploads/images/products/image-name.png" (outside "/var/www/html") to null in file "phpthumb.class.php" on line 1066
[16] => $this->sourceFilename set to "" in file "phpthumb.class.php" on line 813
[17] => phpThumb() v1.7.9-200712090829
"" does not exist in file "phpthumb.class.php" on line 3652 [18] => setCacheDirectory() starting with config_cachedirectory = "/home/bert/**/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 919 [19] => setting config_cachedirectory to realpath(/home/bert/**/assets/components/phpthumbof/cache) = "/home/bert/_/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947 [20] => phpthumb_functions::ApacheLookupURIarray() failed for "/~bert/modx-cms/Atkins.com/src", but the correct filename (/home/bert/_/uploads/images/products/image-name.png) seems to have been resolved with realpath(.)/$filename in file "phpthumb.class.php" on line 1044 [21] => !$this->config_allow_src_above_docroot therefore setting "/home/bert/***/uploads/images/products/image-name.png" (outside "/var/www/html") to null in file "phpthumb.class.php" on line 1066 [22] => SetCacheFilename() _src set from md5($this->sourceFilename) "" = "d41d8cd98f00b204e9800998ecf8427e" in file "phpthumb.class.php" on line 3074 [23] => SetCacheFilename() _par set from md5(_farC_zc1_h134_w128_dpi150) in file "phpthumb.class.php" on line 3107 [24] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2894 [25] => GetImageSize("") failed in file "phpthumb.class.php" on line 2917 [26] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232 [27] => ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1279 [28] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2924 [29] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2873 [30] => SetOrientationDependantWidthHeight() setting w="128", h="134" in file "phpthumb.class.php" on line 2889 [31] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 2976 [32] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3234 [33] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232 [34] => ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1279 [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 )
I had a TV created named "productImage". In the getResources call chunk, I did
[[+tv.productImage:phpthumbof=
w=100&h=80&zc=1
]]This returns the URL like 'uploads/images/product-x-image.jpg'. The thumb is not shown and there is not created at all. With the 'old' phpthumboutputfilter, locally the thumb trows an error, but when uploaded to the live-server (without apache-userdir) this is working!
With phpthumbof even no errors are shown...