I still have issues with revo 2.1.1pl and gallery 1.2.1pl, posted about them here:
I think my problem is based on the gallery.files_path/url which I have set outside of assets/components/gallery/files/ (I want to have my images in another place, where the other media stuff resides...), when I get a thumb/image path in the frontend and enter it in the browser address bar I get the following:
[2011-06-23 15:56:50] (ERROR @ /assets/components/gallery/connector.php) [phpThumbOf] Could not generate thumbnail: /home/account/public_html/client/assets/site/media/media.gallery/7/96.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/account/public_html/client/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
[2] => setting config_cache_directory to realpath(/home/account/public_html/client/core/cache/phpthumb) = "/home/account/public_html/client/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
[3] => ResolveFilenameToAbsolute() prepending $this->config_document_root (/home/account/public_html/client) to $filename (/assets/site/media/media.gallery/7/96.jpg) resulting in ($AbsoluteFilename = "/home/account/public_html/client/assets/site/media/media.gallery/7/96.jpg") in file "phpthumb.class.php" on line 1025
[4] => setSourceFilename(/home/account/public_html/client/assets/site/media/media.gallery/7/96.jpg) set $this->sourceFilename to "/home/account/public_html/client/assets/site/media/media.gallery/7/96.jpg" in file "phpthumb.class.php" on line 243
[5] => setCacheDirectory() starting with config_cache_directory = "/home/account/public_html/client/assets/components/gallery/cache/" in file "phpthumb.class.php" on line 919
[6] => setting config_cache_directory to realpath(/home/account/public_html/client/assets/components/gallery/cache) = "/home/account/public_html/client/assets/components/gallery/cache" in file "phpthumb.class.php" on line 947
[7] => setSourceFilename(/home/account/public_html/client/assets/site/media/media.gallery/7/96.jpg) set $this->sourceFilename to "/home/account/public_html/client/assets/site/media/media.gallery/7/96.jpg" in file "phpthumb.class.php" on line 243
[8] => skipping CleanUpCacheDirectory() set to purge (30.0 days; 100.00MB; 10,000 files) in file "phpthumb.class.php" on line 652
[9] => file_exists() = 0 in file "phpthumb.class.php" on line 1101
[10] => is_executable() = 0 in file "phpthumb.class.php" on line 1102
[11] => using ImageMagick path from `which convert` (/usr/bin/convert) in file "phpthumb.class.php" on line 1121
[12] => ImageMagick version checked with "convert --version" in file "phpthumb.class.php" on line 1148
[13] => ImageMagick did not return recognized version string (Version: ImageMagick 6.4.8 2011-06-17 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC) in file "phpthumb.class.php" on line 1154
[14] => ImageMagick convert --version says "Unknown" in file "phpthumb.class.php" on line 1157
[15] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 884
[16] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 895
[17] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 902
[18] => $this->thumbnailQuality set to "85" in file "phpthumb.class.php" on line 912
[19] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root () to $filename (/home/account/public_html/client/assets/site/media/media.gallery/7/96.jpg) resulting in ($AbsoluteFilename = "/home/account/public_html/client/assets/site/media/media.gallery/7/96.jpg") in file "phpthumb.class.php" on line 1022
[20] => !$this->config_allow_src_above_docroot therefore setting "/home/account/public_html/client/assets/site/media/media.gallery/7/96.jpg" (outside "/home/account/public_html/client/assets/components/gallery") to null in file "phpthumb.class.php" on line 1066
[21] => $this->sourceFilename set to "" in file "phpthumb.class.php" on line 813
[22] => phpThumb() v1.7.9-200712090829
"" does not exist in file "phpthumb.class.php" on line 3647
[23] => setCacheDirectory() starting with config_cache_directory = "/home/account/public_html/client/assets/components/gallery/cache" in file "phpthumb.class.php" on line 919
[24] => setting config_cache_directory to realpath(/home/account/public_html/client/assets/components/gallery/cache) = "/home/account/public_html/client/assets/components/gallery/cache" in file "phpthumb.class.php" on line 947
[25] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root () to $filename (/home/account/public_html/client/assets/site/media/media.gallery/7/96.jpg) resulting in ($AbsoluteFilename = "/home/account/public_html/client/assets/site/media/media.gallery/7/96.jpg") in file "phpthumb.class.php" on line 1022
[26] => !$this->config_allow_src_above_docroot therefore setting "/home/account/public_html/client/assets/site/media/media.gallery/7/96.jpg" (outside "/home/account/public_html/client/assets/components/gallery") to null in file "phpthumb.class.php" on line 1066
[27] => SetCacheFilename() _src set from md5($this->sourceFilename) "" = "d41d8cd98f00b204e9800998ecf8427e" in file "phpthumb.class.php" on line 3077
[28] => SetCacheFilename() _par set from md5(_farC_zc1_h130_w130_dpi150_q85) in file "phpthumb.class.php" on line 3110
[29] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2897
[30] => GetImageSize("") failed in file "phpthumb.class.php" on line 2920
[31] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
[32] => ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1279
[33] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2927
[34] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2876
[35] => SetOrientationDependantWidthHeight() setting w="130", h="130" in file "phpthumb.class.php" on line 2892
[36] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 2979
[37] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3229
[38] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
[39] => ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1279
[40] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3278
[41] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3330
[42] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3332
[43] => phpThumb() v1.7.9-200712090829
Unknown image type identified by "" () in SourceImageToGD()[3444] in file "phpthumb.class.php" on line 3647
[44] => SourceImageToGD() failed in file "phpthumb.class.php" on line 323
)
as far as I understand this errorlog, the problem lies in step 20
[20] => !$this->config_allow_src_above_docroot therefore setting "/home/account/public_html/client/assets/site/media/media.gallery/7/96.jpg" (outside "/home/account/public_html/client/assets/components/gallery") to null in file "phpthumb.class.php" on line 1066
Because of that I have set the system setting "phpthumb_allow_src_above_docroot" under core > phpthumb to "Yes" instead of "No" but when I do that I instantly recieve a 503 error when editing a gallery in the backend or want to view it in the frontend...some thumbnails are loaded but not all and they seem to be generated very slowly (several minutes for under 10 images)
so I tried to comment out the critical section in phpthumb.class.php beginning @line 1066:
if (!$this->config_allow_src_above_docroot && !preg_match('#^'.preg_quote(str_replace(DIRECTORY_SEPARATOR, '/', realpath($this->config_document_root))).'#', $AbsoluteFilename)) {
$this->DebugMessage('!$this->config_allow_src_above_docroot therefore setting "'.$AbsoluteFilename.'" (outside "'.realpath($this->config_document_root).'") to null', __FILE__, __LINE__);
return false;
}
but when I do this, thumbnails are still loaded only partwise and painfully slow in the frontend. In the backend, I don’t see any galleries anymore when clicking on the components > gallery menuitem...so I can’t do this...
I really don’t know from which direction I have to address this problem...is it a problem of phpthumb, modx system settings, server hard-/software or the gallery snippet?
EDIT: Because of this thread:
http://modxcms.com/forums/index.php/topic,65706.0.html I also checked my Filemanager to see if the thumbs work there...they do but also are generated very slowly...this was never a problem in the versions before...what can be the reason for this?