MODX [REVO]: Не создаются привью к изображениям, в чем может быть причина?

Версия Gallery : 1.7.0-pl
Версия MODX: MODX Revolution 2.5.2-pl (traditional)
Лог ошибок из modx, при добавлении изображения в галерею:
spoiler
[2017-06-22 15:50:39] (ERROR @ /var/www/manager/data/www/exclusive.kz/core/components/gallery/model/gallery/galalbum.class.php : 206) [Gallery] Could not create directory (possibly already exists?): assets/gallery/9/
[2017-06-22 15:50:40] (ERROR @ /var/www/manager/data/www/exclusive.kz/core/model/phpthumb/phpthumb.class.php : 1214) PHP warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/manager/data:.)
[2017-06-22 15:50:40] (ERROR @ /var/www/manager/data/www/exclusive.kz/core/model/phpthumb/phpthumb.class.php : 4354) PHP warning: tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/manager/data:.)
[2017-06-22 15:50:40] (ERROR @ /var/www/manager/data/www/exclusive.kz/core/components/gallery/processors/web/phpthumb.php : 160) [phpThumbOf] Could not cache thumb "/var/www/manager/data/www/exclusive.kz/assets/gallery/9/172.JPG" to file at: /var/www/manager/data/www/exclusive.kz/assets/components/gallery/cache/_var_www_manager_data_www_exclusive.kz_assets_gallery_9_172.JPG.19acf88de1d8da9884d5a2a70e81f401.jpg - Debug: Array
(
    [0] => phpThumb() v1.7.14-201608101311 in file "phpthumb.class.php" on line 229
    [1] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root () to $filename (/assets/gallery/9/172.JPG) resulting in ($AbsoluteFilename = "/assets/gallery/9/172.JPG") in file "phpthumb.class.php" on line 1299
    [2] => resolvePath: /assets/gallery/9/172.JPG (allowed_dirs: Array
(
)
) in file "phpthumb.class.php" on line 1140
    [3] => resolvePath: checks disabled, returning  in file "phpthumb.class.php" on line 1150
    [4] => setSourceFilename() set $this->sourceFilename to "" in file "phpthumb.class.php" on line 294
    [5] => setSourceFilename(/var/www/manager/data/www/exclusive.kz/assets/gallery/9/172.JPG) set $this->sourceFilename to "/var/www/manager/data/www/exclusive.kz/assets/gallery/9/172.JPG" in file "phpthumb.class.php" on line 294
    [6] => CleanUpCacheDirectory() set to purge (NULL days; NULL MB; NULL files) in file "phpthumb.class.php" on line 712
    [7] => CleanUpCacheDirectory() skipped because "/var/www/manager/data/www/exclusive.kz/assets/components/gallery/cache//phpThumbCacheStats.txt" is recently modified in file "phpthumb.class.php" on line 722
    [8] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 969
    [9] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 980
    [10] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 987
    [11] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 997
    [12] => resolvePath: /var/www/manager/data/www/exclusive.kz/assets/gallery/9/172.JPG (allowed_dirs: Array
(
)
) in file "phpthumb.class.php" on line 1140
    [13] => resolvePath: checks disabled, returning /var/www/manager/data/www/exclusive.kz/assets/gallery/9/172.JPG in file "phpthumb.class.php" on line 1150
    [14] => $this->sourceFilename set to "/var/www/manager/data/www/exclusive.kz/assets/gallery/9/172.JPG" in file "phpthumb.class.php" on line 894
    [15] => SetCacheFilename() _src set from md5($this->sourceFilename) "/var/www/manager/data/www/exclusive.kz/assets/gallery/9/172.JPG" = "b94df6b9bfff073cc4221f1d65c86a60" in file "phpthumb.class.php" on line 3520
    [16] => SetCacheFilename() _par set from md5(_farC_zc1_h80_w100_dpi150_q75) in file "phpthumb.class.php" on line 3553
    [17] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3314
    [18] => getimagesize(/var/www/manager/data/www/exclusive.kz/assets/gallery/9/172.JPG) says image is 600x900 in file "phpthumb.class.php" on line 3324
    [19] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1595
    [20] => phpThumb_tempnam() returning "/var/www/manager/data/www/exclusive.kz/assets/components/gallery" in file "phpthumb.class.php" on line 4356
    [21] => ImageMagickSwitchAvailable(thumbnail) = 0 in file "phpthumb.class.php" on line 1531
    [22] => IMuseExplicitImageOutputDimensions = 0 in file "phpthumb.class.php" on line 1671
    [23] => ImageMagickSwitchAvailable(density) = 0 in file "phpthumb.class.php" on line 1531
    [24] => getimagesize(/var/www/manager/data/www/exclusive.kz/assets/gallery/9/172.JPG) SUCCEEDED: Array
(
    [0] => 600
    [1] => 900
    [2] => 2
    [3] => width="600" height="900"
    [bits] => 8
    [channels] => 3
    [mime] => image/jpeg
)
 in file "phpthumb.class.php" on line 1690
    [25] => getimagesize(/var/www/manager/data/www/exclusive.kz/assets/gallery/9/172.JPG) returned [w=600;h=900;f=2] in file "phpthumb.class.php" on line 1695
    [26] => source dimensions set to 600x900 in file "phpthumb.class.php" on line 1698
    [27] => SetOrientationDependantWidthHeight() starting with "600"x"900" in file "phpthumb.class.php" on line 3293
    [28] => SetOrientationDependantWidthHeight() setting w="100", h="80" in file "phpthumb.class.php" on line 3309
    [29] => ImageMagickSwitchAvailable(repage) = 0 in file "phpthumb.class.php" on line 1531
    [30] => Skipping "+repage" because ImageMagick (v) does not support it in file "phpthumb.class.php" on line 1774
    [31] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 2222
    [32] => ImageMagickSwitchAvailable(quality;interlace) = 0 in file "phpthumb.class.php" on line 1528
    [33] => ImageMagick called as ('' -background '#FFFFFF' -resize 'x150' -gravity center -crop '100x80+0+0' '/var/www/manager/data/www/exclusive.kz/assets/gallery/9/172.JPG[0]' jpeg:'/var/www/manager/data/www/exclusive.kz/assets/components/gallery' 2>&1) in file "phpthumb.class.php" on line 2241
    [34] => getimagesize(/var/www/manager/data/www/exclusive.kz/assets/components/gallery) returned [w=;h=;f=] in file "phpthumb.class.php" on line 2258
    [35] => $this->useRawIMoutput set to TRUE because imagecreatefromjpeg(/var/www/manager/data/www/exclusive.kz/assets/components/gallery) failed in file "phpthumb.class.php" on line 2268
    [36] => deleting "/var/www/manager/data/www/exclusive.kz/assets/components/gallery" in file "phpthumb.class.php" on line 2271
    [37] => Skipping rest of GenerateThumbnail() because ($this->useRawIMoutput == true) in file "phpthumb.class.php" on line 369
    [38] => RenderOutput copying $this->IMresizedData (0 bytes) to $this->outputImage in file "phpthumb.class.php" on line 456
)
  • Вопрос задан
  • 1387 просмотров
Пригласить эксперта
Ответы на вопрос 1
zooks
@zooks
Frontend
Очистить assets/components/gallery/cache

https://modx.pro/help/9512/#comment-65546
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы