Ошибка при генерации превью ms2Gallery
При загрузки файла или генерации превью в ms2Gallery вылезает вот такая ошибка. С чем может быть связано? куча текста, пытался понять, но чет не дошло.
[2017-10-04 09:07:55] (ERROR @ /srv/www/smiarhiv/public_html/core/components/ms2gallery/model/ms2gallery/msresourcefile.class.php : 158) [ms2Gallery] Could not generate thumbnail for "/assets/images/resources/40/172a9346.jpg". Array
(
[0] => phpThumb() v1.7.14-201608101311 in file "phpthumb.class.php" on line 229
[1] => setCacheDirectory() starting with config_cache_directory = "/srv/www/smiarhiv/public_html/core/cache/phpthumb/" in file "phpthumb.class.php" on line 1005
[2] => setting config_cache_directory to $this->realPathSafe(/srv/www/smiarhiv/public_html/core/cache/phpthumb) = "/srv/www/smiarhiv/public_html/core/cache/phpthumb" in file "phpthumb.class.php" on line 1033
[3] => setSourceFilename(/tmp/ms2g_ezAMr5) set $this->sourceFilename to "/tmp/ms2g_ezAMr5" in file "phpthumb.class.php" on line 294
[4] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 969
[5] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 980
[6] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 987
[7] => $this->thumbnailQuality set to "90" in file "phpthumb.class.php" on line 997
[8] => !$this->config_allow_src_above_docroot therefore setting "/tmp/ms2g_ezAMr5" (outside "/srv/www/smiarhiv/public_html") to null in file "modphpthumb.class.php" on line 311
[9] => $this->sourceFilename set to "" in file "phpthumb.class.php" on line 894
[10] => phpThumb() v1.7.14-201608101311
http://phpthumb.sourceforge.net
"" does not exist in file "phpthumb.class.php" on line 4126
[11] => !$this->config_allow_src_above_docroot therefore setting "/tmp/ms2g_ezAMr5" (outside "/srv/www/smiarhiv/public_html") to null in file "modphpthumb.class.php" on line 311
[12] => SetCacheFilename() _src set from md5($this->sourceFilename) "" = "d41d8cd98f00b204e9800998ecf8427e" in file "phpthumb.class.php" on line 3520
[13] => SetCacheFilename() _par set from md5(_bg000000_farC_zc1_h90_w120_dpi150_q90) in file "phpthumb.class.php" on line 3553
[14] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3314
[15] => skipping getimagesize() because $this->sourceFilename is empty in file "phpthumb.class.php" on line 3326
[16] => getimagesize("") failed in file "phpthumb.class.php" on line 3357
[17] => $this->useRawIMoutput=false because "bg" is set in file "phpthumb.class.php" on line 1589
[18] => $this->useRawIMoutput=false after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1595
[19] => ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1640
[20] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3364
[21] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3293
[22] => SetOrientationDependantWidthHeight() setting w="120", h="90" in file "phpthumb.class.php" on line 3309
[23] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3421
[24] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3679
[25] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3751
[26] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3803
[27] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3805
[28] => phpThumb() v1.7.14-201608101311
http://phpthumb.sourceforge.net
Unable to create image, neither filename nor image data suppplied in SourceImageToGD() [3911] in file "phpthumb.class.php" on line 4126
[29] => SourceImageToGD() failed in file "phpthumb.class.php" on line 374
)
Комментарии: 3
Решено, выставил в параметрах phpthumb_allow_src_above_docroot = true
Спасибо, помогло
В моем случае помогло изменение в файле config.inc.php:
if (!defined('MODX_ASSETS_PATH')) {
$modx_assets_path= 'домашняя_директория_на_хостинге/путь_к_корневой_папке_сайта/assets/';
Вместо "/assets/" было "/assets/template/pl/css/"
Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.