Quick question: phpThumbOf is not able to generate thumbnails because the image paths are incorrect ... the fix above doesn’t seem to work for me. I am behind in a project and have more projects lining up... however, I can’t figure out how to create templates that have thumbnails... can anyone who has a working copy of phpthumbof or another snippet that does the same thing please share their code with me. I’m at a loss and loosing money... money that I had hoped to donate to modx
Error log:
[2011-03-09 19:50:36] (ERROR @ /home/user/public_html/site/core/model/phpthumb/phpthumb.class.php : 1312) PHP warning: getimagesize(/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory
[2011-03-09 19:50:36] (ERROR @ /home/user/public_html/site/core/model/phpthumb/phpthumb.class.php : 1312) PHP warning: getimagesize(/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory
[2011-03-09 19:50:36] (ERROR @ /site/index.php) [phpThumbOf] Could not generate thumbnail: assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.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/user/public_html/site/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
[2] => setting config_cache_directory to realpath(/home/user/public_html/site/core/cache/phpthumb) = "/home/user/public_html/site/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
[3] => setCacheDirectory() starting with config_cache_directory = "/home/user/public_html/site/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 919
[4] => setting config_cache_directory to realpath(/home/user/public_html/site/assets/components/phpthumbof/cache) = "/home/user/public_html/site/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
[5] => setSourceFilename(assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg) set $this->sourceFilename to "assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.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] => $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 "/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg" in file "phpthumb.class.php" on line 813
[12] => phpThumb() v1.7.9-200712090829
"/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg" does not exist in file "phpthumb.class.php" on line 3652
[13] => setCacheDirectory() starting with config_cache_directory = "/home/user/public_html/site/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 919
[14] => setting config_cache_directory to realpath(/home/user/public_html/site/assets/components/phpthumbof/cache) = "/home/user/public_html/site/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
[15] => SetCacheFilename() _src set from md5($this->sourceFilename) "/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg" = "b388a0b697ea9a89aca1bd23c01c3216" in file "phpthumb.class.php" on line 3074
[16] => SetCacheFilename() _par set from md5(_farC_zc1_h298_w436_dpi150) in file "phpthumb.class.php" on line 3107
[17] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2894
[18] => GetImageSize("/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg") failed in file "phpthumb.class.php" on line 2917
[19] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
[20] => phpThumb_tempnam() returning "/home/user/public_html/site/pThumb4cfecy" in file "phpthumb.class.php" on line 3867
[21] => ImageMagickSwitchAvailable(thumbnail) = 1 in file "phpthumb.class.php" on line 1189
[22] => ImageMagickSwitchAvailable(density) = 1 in file "phpthumb.class.php" on line 1189
[23] => GetImageSize(/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg) FAILED with error "" in file "phpthumb.class.php" on line 1318
[24] => GetImageSize(/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg) failed in file "phpthumb.class.php" on line 1460
[25] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 1807
[26] => ImageMagick called as (convert -density 150 -thumbnail 436x298 "/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg[0]" png:"/home/user/public_html/site/pThumb4cfecy" 2>&1) in file "phpthumb.class.php" on line 1826
[27] => ImageMagick failed with message (convert: unable to open image `/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg': @ error/blob.c/OpenBlob/2584.
convert: missing an image filename `png:/home/user/public_html/site/pThumb4cfecy' @ error/convert.c/ConvertImageCommand/2949.) in file "phpthumb.class.php" on line 1834
[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="436", h="298" 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] => phpThumb_tempnam() returning "/home/user/public_html/site/pThumbTS46OG" in file "phpthumb.class.php" on line 3867
[35] => ImageMagickSwitchAvailable(thumbnail) = 1 in file "phpthumb.class.php" on line 1189
[36] => ImageMagickSwitchAvailable(density) = 1 in file "phpthumb.class.php" on line 1189
[37] => GetImageSize(/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg) FAILED with error "" in file "phpthumb.class.php" on line 1318
[38] => GetImageSize(/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg) failed in file "phpthumb.class.php" on line 1460
[39] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 1807
[40] => ImageMagick called as (convert -density 150 -thumbnail 436x298 "/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg[0]" png:"/home/user/public_html/site/pThumbTS46OG" 2>&1) in file "phpthumb.class.php" on line 1826
[41] => ImageMagick failed with message (convert: unable to open image `/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg': @ error/blob.c/OpenBlob/2584.
convert: missing an image filename `png:/home/user/public_html/site/pThumbTS46OG' @ error/convert.c/ConvertImageCommand/2949.) in file "phpthumb.class.php" on line 1834
[42] => starting ImageCreateFromFilename(/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg) in file "phpthumb.class.php" on line 3149
[43] => empty $filename or GetImageSize(/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg) failed in file "phpthumb.class.php" on line 3198
[44] => Populating $rawimagedata in file "phpthumb.class.php" on line 3206
[45] => cannot fopen(/home/user/public_html/site//site/assets/images/slideshow/img-8-H-P-COMMERCIAL-RESTAURANT--BAR--INTERIOR.jpg) in file "phpthumb.class.php" on line 3217
[46] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3283
[47] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3335
[48] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3337
[49] => phpThumb() v1.7.9-200712090829
Unknown image type identified by "" () in SourceImageToGD()[3449] in file "phpthumb.class.php" on line 3652
[50] => SourceImageToGD() failed in file "phpthumb.class.php" on line 323
)
Environment:
modx: rev 2.0.8-pl
localhost: Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2, MySQL client version: 5.1.37
Hlight, make sure you are using the latest version of phpThumbOf, it was updated to 1.1.0 recently and addresses issues with the filepath. If you go to System > Package Management you will see if you are using the current version.
Hi lukemcd, thanks for help. I have 1.1.0-pl installed. Says there are no updates available. I’m testing this on my localhost and my production server with the same results. A file path that is wrong. It’s now displaying /home/user/public_html/site//site/assets/images/slideshow/imagefile.jpg
Looks like it’s so close to getting it right... I just don’t know how to tweak it to get it to work.
Environment:
modx: rev 2.0.8-pl
localhost: Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2, MySQL client version: 5.1.37
I have the same issue after upgrading to this version:
Is is looking for /home/account/public_html/URL/modx//modx/assets/images/Donovan_Hill/donovanhill_health_thumb.jpg
It should look for /home/account/public_html/URL/modx/assets/images/Donovan_Hill/donovanhill_health_thumb.jpg
--
cal wilson
oksushi.com
Having the same issue as above. Phpthumbof is looking for
/home/content/e/j/v/ejvalbue/html/catgeyer//catgeyer/jewelry/jewelry_images/text_thumb.jpg
Instead of:
/home/content/e/j/v/ejvalbue/html/catgeyer/jewelry/jewelry_images/text_thumb.jpg
It looks like the ones who are having trouble have Modx installed in a subfolder. Did you guys get it to work yet?
Just checked on another site on the same server (so same configuration) but on a subdomain, not a subfolder, and this plugin works great. So it seems the subfolder is the issue, as mentioned above.
--
cal wilson
oksushi.com
Quote from: evf at Mar 15, 2011, 07:19 PM
Having the same issue as above. Phpthumbof is looking for
/home/content/e/j/v/ejvalbue/html/catgeyer//catgeyer/jewelry/jewelry_images/text_thumb.jpg
Instead of:
/home/content/e/j/v/ejvalbue/html/catgeyer/jewelry/jewelry_images/text_thumb.jpg
It looks like the ones who are having trouble have Modx installed in a subfolder. Did you guys get it to work yet?
I have the same issue en my local server and the modx in a subfolder, any solution?
Quote from: lithiumlab at Mar 17, 2011, 03:32 PM
Maybe adjusting your .htaccess file as for friendly urls?
RewriteEngine On
RewriteBase /yousubfolder/
Just a though.
My .htaccess It’s as you say