so I have a site with a normal website on the root. and a directory with a modx install. /cms/
so the modx core is in /cms/core/
and the ROOT index page for that site is /cms/index.php
When I run a phpthumbof on a image, I get tons of errors and crap that shoots back.
[2014-05-05 12:07:49] (ERROR @ /home/ecocoolt/public_html/cms/core/model/phpthumb/phpthumb.class.php : 1403) PHP warning: getimagesize(/home/ecocoolt/public_html/cms/cms/assets/images/blue_background_abstract-1440x900.jpg): failed to open stream: No such file or directory
[2014-05-05 12:07:49] (ERROR @ /cms/index.php) [phpThumbOf] Could not generate thumbnail: assets/images/blue_background_abstract-1440x900.jpg - Debug: Array
(
[0] => phpThumb() v1.7.11-201108081537 in file "phpthumb.class.php" on line 216
[1] => setCacheDirectory() starting with config_cache_directory = "/home/ecocoolt/public_html/cms/core/cache/phpthumb/" in file "phpthumb.class.php" on line 958
[2] => setting config_cache_directory to realpath(/home/ecocoolt/public_html/cms/core/cache/phpthumb) = "/home/ecocoolt/public_html/cms/core/cache/phpthumb" in file "phpthumb.class.php" on line 986
[3] => setCacheDirectory() starting with config_cache_directory = "/home/ecocoolt/public_html/cms/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 958
[4] => setting config_cache_directory to realpath(/home/ecocoolt/public_html/cms/assets/components/phpthumbof/cache) = "/home/ecocoolt/public_html/cms/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 986
[5] => setSourceFilename(assets/images/blue_background_abstract-1440x900.jpg) set $this->sourceFilename to "assets/images/blue_background_abstract-1440x900.jpg" in file "phpthumb.class.php" on line 262
[6] => CleanUpCacheDirectory() set to purge (30.0 days; 100.00 MB; 10,000 files) in file "phpthumb.class.php" on line 673
[7] => file_exists() = 0 in file "phpthumb.class.php" on line 1165
[8] => file_exists_ignoreopenbasedir() = 0 in file "phpthumb.class.php" on line 1166
[9] => is_file() = 0 in file "phpthumb.class.php" on line 1167
[10] => is_executable() = 0 in file "phpthumb.class.php" on line 1168
[11] => using ImageMagick path from `which convert` (/usr/bin/convert) in file "phpthumb.class.php" on line 1188
[12] => ImageMagick version checked with "convert --version" in file "phpthumb.class.php" on line 1215
[13] => ImageMagick convert --version says "Version: ImageMagick 6.7.9-10 2013-08-29 Q16 http:" in file "phpthumb.class.php" on line 1223
[14] => Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 917
[15] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 923
[16] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 934
[17] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 941
[18] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 951
[19] => $this->sourceFilename set to "/home/ecocoolt/public_html/cms/cms/assets/images/blue_background_abstract-1440x900.jpg" in file "phpthumb.class.php" on line 852
[20] => phpThumb() v1.7.11-201108081537
http://phpthumb.sourceforge.net
Error messages disabled in file "phpthumb.class.php" on line 3845
[21] => setCacheDirectory() starting with config_cache_directory = "/home/ecocoolt/public_html/cms/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 958
[22] => setting config_cache_directory to realpath(/home/ecocoolt/public_html/cms/assets/components/phpthumbof/cache) = "/home/ecocoolt/public_html/cms/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 986
[23] => SetCacheFilename() _src set from md5($this->sourceFilename) "/home/ecocoolt/public_html/cms/cms/assets/images/blue_background_abstract-1440x900.jpg" = "e163b4b91940a535f23e2ac1b1f284bd" in file "phpthumb.class.php" on line 3238
[24] => SetCacheFilename() _par set from md5(_farC_zc1_h40_w40_dpi150_q75) in file "phpthumb.class.php" on line 3271
[25] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3033
[26] => GetImageSize(/home/ecocoolt/public_html/cms/cms/assets/images/blue_background_abstract-1440x900.jpg) says image is x in file "phpthumb.class.php" on line 3043
[27] => GetImageSize("/home/ecocoolt/public_html/cms/cms/assets/images/blue_background_abstract-1440x900.jpg") failed in file "phpthumb.class.php" on line 3076
[28] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1315
[29] => phpThumb_tempnam() returning "/home/ecocoolt/public_html/cms/pThumb8KNRSA" in file "phpthumb.class.php" on line 4070
[30] => ImageMagickSwitchAvailable(thumbnail) = 1 in file "phpthumb.class.php" on line 1255
[31] => ImageMagickSwitchAvailable(density) = 1 in file "phpthumb.class.php" on line 1255
[32] => GetImageSize(/home/ecocoolt/public_html/cms/cms/assets/images/blue_background_abstract-1440x900.jpg) FAILED with error "" in file "phpthumb.class.php" on line 1409
[33] => GetImageSize(/home/ecocoolt/public_html/cms/cms/assets/images/blue_background_abstract-1440x900.jpg) failed in file "phpthumb.class.php" on line 1556
[34] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 1939
[35] => ImageMagickSwitchAvailable(quality;interlace) = 1 in file "phpthumb.class.php" on line 1252
[36] => ImageMagick called as (convert -density '150' -thumbnail '40x40' -quality '75' -interlace line '/home/ecocoolt/public_html/cms/cms/assets/images/blue_background_abstract-1440x900.jpg[0]' jpeg:'/home/ecocoolt/public_html/cms/pThumb8KNRSA' 2>&1) in file "phpthumb.class.php" on line 1958
[37] => ImageMagick failed with message (convert: unable to open image `/home/ecocoolt/public_html/cms/cms/assets/images/blue_background_abstract-1440x900.jpg': No such file or directory @ error/blob.c/OpenBlob/2638.
convert: no images defined `jpeg:/home/ecocoolt/public_html/cms/pThumb8KNRSA' @ error/convert.c/ConvertImageCommand/3044.) in file "phpthumb.class.php" on line 1963
[38] => deleting "/home/ecocoolt/public_html/cms/pThumb8KNRSA" in file "phpthumb.class.php" on line 1991
[39] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3083
[40] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3012
[41] => SetOrientationDependantWidthHeight() setting w="40", h="40" in file "phpthumb.class.php" on line 3028
[42] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3140
[43] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3398
[44] => starting ImageCreateFromFilename(/home/ecocoolt/public_html/cms/cms/assets/images/blue_background_abstract-1440x900.jpg) in file "phpthumb.class.php" on line 3313
[45] => empty $filename or GetImageSize(/home/ecocoolt/public_html/cms/cms/assets/images/blue_background_abstract-1440x900.jpg) failed in file "phpthumb.class.php" on line 3362
[46] => Populating $rawimagedata in file "phpthumb.class.php" on line 3370
[47] => cannot fopen(/home/ecocoolt/public_html/cms/cms/assets/images/blue_background_abstract-1440x900.jpg) in file "phpthumb.class.php" on line 3381
[48] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3469
[49] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3521
[50] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3523
[51] => phpThumb() v1.7.11-201108081537
http://phpthumb.sourceforge.net
Error messages disabled in file "phpthumb.class.php" on line 3845
[52] => SourceImageToGD() failed in file "phpthumb.class.php" on line 342
)
You can see first line:
[2014-05-05 12:07:49] (ERROR @ /home/ecocoolt/public_html/cms/core/model/phpthumb/phpthumb.class.php : 1403) PHP warning: getimagesize(/home/ecocoolt/public_html/cms/cms/assets/images/blue_background_abstract-1440x900.jpg): failed to open stream: No such file or directory
its looking in /cms/cms/ for the image. ug! I feel like this stuff just works out of the box.. don't know why I am having issues.
also, I "migrated" this site from another server where it was a subdomain, like cms.mysite.com is now mysite2.com/cms/
rewrote all the differences and i thought everything was great, but now i see that there is something wrong. any thoughts?