Галерея MODx не отображает изображения правильно. Modx gallery не отображаются картинки


Gallery. Проблемы о отображением фото / modx.pro

Столкнулся проблемой после переноса сайта на продакшен-хостинг. При этом проблему обнаружил не сразу, поэтому не могу сказать, то ли проблема возникла сразу после переноса, то ли возникла в процессе эксплуатации сайта.

Проблема заключается в том, что при выводе фотографий в чанке (через [[[+image]] ) с помощью компонента Gallery? фотографии не отображаются. Браузер выдает битую картинку. Если зайти в компонент, то фотография там тоже как бы есть, но не отображается. (фото 1)

При чем такая проблема не со всеми фотографиями, а лишь с некоторыми.

При этом в файловом менеджере фотография отображается нормально, по прямой ссылке — тоже. Все фотографии имеют числовое название, без кириллических символов, в формате .jpg (именно так).

Версия cms — MODX Revolution 2.3.1-pl

Хостинг _Ник Грешил, на отсутствие какого-либо расширения php. Но вроде все на месте (скрин 2). Версия php, кстати 5.3. это опять же видно на скрине. До этого много раз размещал сайты на modx на нике и проблем не было.

Консоль выдает вот такую тема:

[2015-02-03 17:04:54] (ERROR @ /assets/components/gallery/connector.php) [phpThumbOf] Could not generate thumbnail: /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/28.jpg — Debug: Array ( [0] => phpThumb() v1.7.13-201406261000 in file «phpthumb.class.php» on line 220 [1] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root () to $filename (/assets/gallery/7/28.jpg) resulting in ($AbsoluteFilename = "/assets/gallery/7/28.jpg") in file «phpthumb.class.php» on line 1216 [2] => resolvePath: /assets/gallery/7/28.jpg (allowed_dirs: Array ( ) ) in file «phpthumb.class.php» on line 1096 [3] => resolvePath: iteration, path=/assets/gallery/7/28.jpg, base path = /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery in file «phpthumb.class.php» on line 1115 [4] => open_basedir: "" in file «phpthumb.class.php» on line 1082 [5] => resolvePath: stop at component 5 in file «phpthumb.class.php» on line 1131 [6] => resolvePath: stop at path=/assets/gallery/7/28.jpg in file «phpthumb.class.php» on line 1134 [7] => resolvePath: no match, returning null in file «phpthumb.class.php» on line 1136 [8] => !$this->config_allow_src_above_docroot therefore setting "" (outside "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery") to null in file «phpthumb.class.php» on line 1261 [9] => setSourceFilename() set $this->sourceFilename to "" in file «phpthumb.class.php» on line 271 [10] => setSourceFilename(/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/28.jpg) set $this->sourceFilename to "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/28.jpg" in file «phpthumb.class.php» on line 271 [11] => CleanUpCacheDirectory() set to purge (NULL days; NULL MB; NULL files) in file «phpthumb.class.php» on line 667 [12] => skipping CleanUpCacheDirectory() because config set to not use it in file «phpthumb.class.php» on line 787 [13] => CleanUpCacheDirectory() purged 0 files (from 0) based on config settings in file «phpthumb.class.php» on line 793 [14] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file «phpthumb.class.php» on line 925 [15] => $this->thumbnailFormat set to $this->config_output_format «jpeg» in file «phpthumb.class.php» on line 936 [16] => $this->thumbnailFormat set to $this->f «jpeg» in file «phpthumb.class.php» on line 943 [17] => $this->thumbnailQuality set to «90» in file «phpthumb.class.php» on line 953 [18] => resolvePath: /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/28.jpg (allowed_dirs: Array ( ) ) in file «phpthumb.class.php» on line 1096 [19] => resolvePath: iteration, path=/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/28.jpg, base path = /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs in file «phpthumb.class.php» on line 1115 [20] => resolvePath: stop at component 9 in file «phpthumb.class.php» on line 1131 [21] => resolvePath: stop at path=/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/28.jpg in file «phpthumb.class.php» on line 1134 [22] => resolvePath: path parsed, over in file «phpthumb.class.php» on line 1140 [23] => $this->sourceFilename set to "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/28.jpg" in file «phpthumb.class.php» on line 849 [24] => SetCacheFilename() _src set from md5($this->sourceFilename) "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/28.jpg" = «56c00a02d303d0c5423326a0528b46c1» in file «phpthumb.class.php» on line 3443 [25] => SetCacheFilename() _par set from md5(_farC_zc1_h200_w100_dpi150_q90) in file «phpthumb.class.php» on line 3476 [26] => starting ExtractEXIFgetImageSize() in file «phpthumb.class.php» on line 3236 [27] => GetImageSize(/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/28.jpg) says image is 4020x2376 in file «phpthumb.class.php» on line 3246 [28] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file «phpthumb.class.php» on line 1508 [29] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file «phpthumb.class.php» on line 2203 [30] => ImageMagickThumbnailToGD() failed in file «phpthumb.class.php» on line 3286 [31] => SetOrientationDependantWidthHeight() starting with «4020»x«2376» in file «phpthumb.class.php» on line 3215 [32] => SetOrientationDependantWidthHeight() setting w=«100», h=«100» in file «phpthumb.class.php» on line 3231 [33] => exif_thumbnail() does not exist, cannot extract EXIF thumbnail in file «phpthumb.class.php» on line 3339 [34] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file «phpthumb.class.php» on line 3343 [35] => image is 4020x2376 and therefore contains more pixels (9551520) than $this->config_max_source_pixels setting (6710886) in file «phpthumb.class.php» on line 3385 [36] => starting SourceImageToGD() in file «phpthumb.class.php» on line 3603 [37] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file «phpthumb.class.php» on line 3674 [38] => $this->gdimg_source is still empty in file «phpthumb.class.php» on line 3726 [39] => ImageMagickThumbnailToGD() failed in file «phpthumb.class.php» on line 3728 [40] => phpThumb() v1.7.13-201406261000phpthumb.sourceforge.net

Error messages disabled.

edit phpThumb.config.php and (temporarily) set $PHPTHUMB_CONFIG['disable_debug'] = false; to view the details of this error in file «phpthumb.class.php» on line 4050 [41] => phpThumb() v1.7.13-201406261000phpthumb.sourceforge.net

Error messages disabled.

edit phpThumb.config.php and (temporarily) set $PHPTHUMB_CONFIG['disable_debug'] = false; to view the details of this error in file «phpthumb.class.php» on line 4050 [42] => SourceImageToGD() failed in file «phpthumb.class.php» on line 351 )

[2015-02-03 17:04:54] (ERROR @ /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/core/components/gallery/processors/web/phpthumb.php: 169) PHP warning: filemtime() [function.filemtime]: stat failed for /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery/cache/_home_resp_xn----8sbacsa9amqojhgrv.xn--p1ai_docs_assets_gallery_7_28.jpg.3fe21dee1d588c57365884727a9fb850.jpg [2015-02-03 17:04:54] (ERROR @ /assets/components/gallery/connector.php) [phpThumbOf] Could not generate thumbnail: /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/29.jpg — Debug: Array ( [0] => phpThumb() v1.7.13-201406261000 in file «phpthumb.class.php» on line 220 [1] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root () to $filename (/assets/gallery/7/29.jpg) resulting in ($AbsoluteFilename = "/assets/gallery/7/29.jpg") in file «phpthumb.class.php» on line 1216 [2] => resolvePath: /assets/gallery/7/29.jpg (allowed_dirs: Array ( ) ) in file «phpthumb.class.php» on line 1096 [3] => resolvePath: iteration, path=/assets/gallery/7/29.jpg, base path = /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery in file «phpthumb.class.php» on line 1115 [4] => open_basedir: "" in file «phpthumb.class.php» on line 1082 [5] => resolvePath: stop at component 5 in file «phpthumb.class.php» on line 1131 [6] => resolvePath: stop at path=/assets/gallery/7/29.jpg in file «phpthumb.class.php» on line 1134 [7] => resolvePath: no match, returning null in file «phpthumb.class.php» on line 1136 [8] => !$this->config_allow_src_above_docroot therefore setting "" (outside "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery") to null in file «phpthumb.class.php» on line 1261 [9] => setSourceFilename() set $this->sourceFilename to "" in file «phpthumb.class.php» on line 271 [10] => setSourceFilename(/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/29.jpg) set $this->sourceFilename to "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/29.jpg" in file «phpthumb.class.php» on line 271 [11] => CleanUpCacheDirectory() set to purge (NULL days; NULL MB; NULL files) in file «phpthumb.class.php» on line 667 [12] => CleanUpCacheDirectory() skipped because "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery/cache//phpThumbCacheStats.txt" is recently modified in file «phpthumb.class.php» on line 677 [13] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file «phpthumb.class.php» on line 925 [14] => $this->thumbnailFormat set to $this->config_output_format «jpeg» in file «phpthumb.class.php» on line 936 [15] => $this->thumbnailFormat set to $this->f «jpeg» in file «phpthumb.class.php» on line 943 [16] => $this->thumbnailQuality set to «90» in file «phpthumb.class.php» on line 953 [17] => resolvePath: /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/29.jpg (allowed_dirs: Array ( ) ) in file «phpthumb.class.php» on line 1096 [18] => resolvePath: iteration, path=/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/29.jpg, base path = /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs in file «phpthumb.class.php» on line 1115 [19] => resolvePath: stop at component 9 in file «phpthumb.class.php» on line 1131 [20] => resolvePath: stop at path=/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/29.jpg in file «phpthumb.class.php» on line 1134 [21] => resolvePath: path parsed, over in file «phpthumb.class.php» on line 1140 [22] => $this->sourceFilename set to "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/29.jpg" in file «phpthumb.class.php» on line 849 [23] => SetCacheFilename() _src set from md5($this->sourceFilename) "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/29.jpg" = «d172de5ade0dd00e86264d1d317c253e» in file «phpthumb.class.php» on line 3443 [24] => SetCacheFilename() _par set from md5(_farC_zc1_h200_w100_dpi150_q90) in file «phpthumb.class.php» on line 3476 [25] => starting ExtractEXIFgetImageSize() in file «phpthumb.class.php» on line 3236 [26] => GetImageSize(/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/29.jpg) says image is 3808x1940 in file «phpthumb.class.php» on line 3246 [27] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file «phpthumb.class.php» on line 1508 [28] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file «phpthumb.class.php» on line 2203 [29] => ImageMagickThumbnailToGD() failed in file «phpthumb.class.php» on line 3286 [30] => SetOrientationDependantWidthHeight() starting with «3808»x«1940» in file «phpthumb.class.php» on line 3215 [31] => SetOrientationDependantWidthHeight() setting w=«100», h=«100» in file «phpthumb.class.php» on line 3231 [32] => exif_thumbnail() does not exist, cannot extract EXIF thumbnail in file «phpthumb.class.php» on line 3339 [33] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file «phpthumb.class.php» on line 3343 [34] => image is 3808x1940 and therefore contains more pixels (7387520) than $this->config_max_source_pixels setting (6710886) in file «phpthumb.class.php» on line 3385 [35] => starting SourceImageToGD() in file «phpthumb.class.php» on line 3603 [36] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file «phpthumb.class.php» on line 3674 [37] => $this->gdimg_source is still empty in file «phpthumb.class.php» on line 3726 [38] => ImageMagickThumbnailToGD() failed in file «phpthumb.class.php» on line 3728 [39] => phpThumb() v1.7.13-201406261000phpthumb.sourceforge.net

Error messages disabled.

edit phpThumb.config.php and (temporarily) set $PHPTHUMB_CONFIG['disable_debug'] = false; to view the details of this error in file «phpthumb.class.php» on line 4050 [40] => phpThumb() v1.7.13-201406261000phpthumb.sourceforge.net

Error messages disabled.

edit phpThumb.config.php and (temporarily) set $PHPTHUMB_CONFIG['disable_debug'] = false; to view the details of this error in file «phpthumb.class.php» on line 4050 [41] => SourceImageToGD() failed in file «phpthumb.class.php» on line 351 )

[2015-02-03 17:04:54] (ERROR @ /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/core/components/gallery/processors/web/phpthumb.php: 169) PHP warning: filemtime() [function.filemtime]: stat failed for /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery/cache/_home_resp_xn----8sbacsa9amqojhgrv.xn--p1ai_docs_assets_gallery_7_29.jpg.0e0852f3e44524497ee0bf1464c629d8.jpg [2015-02-03 17:04:54] (ERROR @ /assets/components/gallery/connector.php) [phpThumbOf] Could not generate thumbnail: /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/30.jpg — Debug: Array ( [0] => phpThumb() v1.7.13-201406261000 in file «phpthumb.class.php» on line 220 [1] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root () to $filename (/assets/gallery/7/30.jpg) resulting in ($AbsoluteFilename = "/assets/gallery/7/30.jpg") in file «phpthumb.class.php» on line 1216 [2] => resolvePath: /assets/gallery/7/30.jpg (allowed_dirs: Array ( ) ) in file «phpthumb.class.php» on line 1096 [3] => resolvePath: iteration, path=/assets/gallery/7/30.jpg, base path = /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery in file «phpthumb.class.php» on line 1115 [4] => open_basedir: "" in file «phpthumb.class.php» on line 1082 [5] => resolvePath: stop at component 5 in file «phpthumb.class.php» on line 1131 [6] => resolvePath: stop at path=/assets/gallery/7/30.jpg in file «phpthumb.class.php» on line 1134 [7] => resolvePath: no match, returning null in file «phpthumb.class.php» on line 1136 [8] => !$this->config_allow_src_above_docroot therefore setting "" (outside "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery") to null in file «phpthumb.class.php» on line 1261 [9] => setSourceFilename() set $this->sourceFilename to "" in file «phpthumb.class.php» on line 271 [10] => setSourceFilename(/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/30.jpg) set $this->sourceFilename to "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/30.jpg" in file «phpthumb.class.php» on line 271 [11] => CleanUpCacheDirectory() set to purge (NULL days; NULL MB; NULL files) in file «phpthumb.class.php» on line 667 [12] => CleanUpCacheDirectory() skipped because "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery/cache//phpThumbCacheStats.txt" is recently modified in file «phpthumb.class.php» on line 677 [13] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file «phpthumb.class.php» on line 925 [14] => $this->thumbnailFormat set to $this->config_output_format «jpeg» in file «phpthumb.class.php» on line 936 [15] => $this->thumbnailFormat set to $this->f «jpeg» in file «phpthumb.class.php» on line 943 [16] => $this->thumbnailQuality set to «90» in file «phpthumb.class.php» on line 953 [17] => resolvePath: /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/30.jpg (allowed_dirs: Array ( ) ) in file «phpthumb.class.php» on line 1096 [18] => resolvePath: iteration, path=/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/30.jpg, base path = /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs in file «phpthumb.class.php» on line 1115 [19] => resolvePath: stop at component 9 in file «phpthumb.class.php» on line 1131 [20] => resolvePath: stop at path=/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/30.jpg in file «phpthumb.class.php» on line 1134 [21] => resolvePath: path parsed, over in file «phpthumb.class.php» on line 1140 [22] => $this->sourceFilename set to "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/30.jpg" in file «phpthumb.class.php» on line 849 [23] => SetCacheFilename() _src set from md5($this->sourceFilename) "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/30.jpg" = «19f392ef7db866d82bb61387d90d5897» in file «phpthumb.class.php» on line 3443 [24] => SetCacheFilename() _par set from md5(_farC_zc1_h200_w100_dpi150_q90) in file «phpthumb.class.php» on line 3476 [25] => starting ExtractEXIFgetImageSize() in file «phpthumb.class.php» on line 3236 [26] => GetImageSize(/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/30.jpg) says image is 4468x2136 in file «phpthumb.class.php» on line 3246 [27] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file «phpthumb.class.php» on line 1508 [28] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file «phpthumb.class.php» on line 2203 [29] => ImageMagickThumbnailToGD() failed in file «phpthumb.class.php» on line 3286 [30] => SetOrientationDependantWidthHeight() starting with «4468»x«2136» in file «phpthumb.class.php» on line 3215 [31] => SetOrientationDependantWidthHeight() setting w=«100», h=«100» in file «phpthumb.class.php» on line 3231 [32] => exif_thumbnail() does not exist, cannot extract EXIF thumbnail in file «phpthumb.class.php» on line 3339 [33] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file «phpthumb.class.php» on line 3343 [34] => image is 4468x2136 and therefore contains more pixels (9543648) than $this->config_max_source_pixels setting (6710886) in file «phpthumb.class.php» on line 3385 [35] => starting SourceImageToGD() in file «phpthumb.class.php» on line 3603 [36] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file «phpthumb.class.php» on line 3674 [37] => $this->gdimg_source is still empty in file «phpthumb.class.php» on line 3726 [38] => ImageMagickThumbnailToGD() failed in file «phpthumb.class.php» on line 3728 [39] => phpThumb() v1.7.13-201406261000phpthumb.sourceforge.net

Error messages disabled.

edit phpThumb.config.php and (temporarily) set $PHPTHUMB_CONFIG['disable_debug'] = false; to view the details of this error in file «phpthumb.class.php» on line 4050 [40] => phpThumb() v1.7.13-201406261000phpthumb.sourceforge.net

Error messages disabled.

edit phpThumb.config.php and (temporarily) set $PHPTHUMB_CONFIG['disable_debug'] = false; to view the details of this error in file «phpthumb.class.php» on line 4050 [41] => SourceImageToGD() failed in file «phpthumb.class.php» on line 351 )

[2015-02-03 17:04:54] (ERROR @ /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/core/components/gallery/processors/web/phpthumb.php: 169) PHP warning: filemtime() [function.filemtime]: stat failed for /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery/cache/_home_resp_xn----8sbacsa9amqojhgrv.xn--p1ai_docs_assets_gallery_7_30.jpg.6de2e8d1b2f63de668282321a90791b7.jpg [2015-02-03 17:04:54] (ERROR @ /assets/components/gallery/connector.php) [phpThumbOf] Could not generate thumbnail: /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/31.jpg — Debug: Array ( [0] => phpThumb() v1.7.13-201406261000 in file «phpthumb.class.php» on line 220 [1] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root () to $filename (/assets/gallery/7/31.jpg) resulting in ($AbsoluteFilename = "/assets/gallery/7/31.jpg") in file «phpthumb.class.php» on line 1216 [2] => resolvePath: /assets/gallery/7/31.jpg (allowed_dirs: Array ( ) ) in file «phpthumb.class.php» on line 1096 [3] => resolvePath: iteration, path=/assets/gallery/7/31.jpg, base path = /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery in file «phpthumb.class.php» on line 1115 [4] => open_basedir: "" in file «phpthumb.class.php» on line 1082 [5] => resolvePath: stop at component 5 in file «phpthumb.class.php» on line 1131 [6] => resolvePath: stop at path=/assets/gallery/7/31.jpg in file «phpthumb.class.php» on line 1134 [7] => resolvePath: no match, returning null in file «phpthumb.class.php» on line 1136 [8] => !$this->config_allow_src_above_docroot therefore setting "" (outside "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery") to null in file «phpthumb.class.php» on line 1261 [9] => setSourceFilename() set $this->sourceFilename to "" in file «phpthumb.class.php» on line 271 [10] => setSourceFilename(/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/31.jpg) set $this->sourceFilename to "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/31.jpg" in file «phpthumb.class.php» on line 271 [11] => CleanUpCacheDirectory() set to purge (NULL days; NULL MB; NULL files) in file «phpthumb.class.php» on line 667 [12] => CleanUpCacheDirectory() skipped because "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery/cache//phpThumbCacheStats.txt" is recently modified in file «phpthumb.class.php» on line 677 [13] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file «phpthumb.class.php» on line 925 [14] => $this->thumbnailFormat set to $this->config_output_format «jpeg» in file «phpthumb.class.php» on line 936 [15] => $this->thumbnailFormat set to $this->f «jpeg» in file «phpthumb.class.php» on line 943 [16] => $this->thumbnailQuality set to «90» in file «phpthumb.class.php» on line 953 [17] => resolvePath: /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/31.jpg (allowed_dirs: Array ( ) ) in file «phpthumb.class.php» on line 1096 [18] => resolvePath: iteration, path=/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/31.jpg, base path = /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs in file «phpthumb.class.php» on line 1115 [19] => resolvePath: stop at component 9 in file «phpthumb.class.php» on line 1131 [20] => resolvePath: stop at path=/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/31.jpg in file «phpthumb.class.php» on line 1134 [21] => resolvePath: path parsed, over in file «phpthumb.class.php» on line 1140 [22] => $this->sourceFilename set to "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/31.jpg" in file «phpthumb.class.php» on line 849 [23] => SetCacheFilename() _src set from md5($this->sourceFilename) "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/31.jpg" = «e01d30b6dc1ae7a2b27fd5d0089a79cf» in file «phpthumb.class.php» on line 3443 [24] => SetCacheFilename() _par set from md5(_farC_zc1_h200_w100_dpi150_q90) in file «phpthumb.class.php» on line 3476 [25] => starting ExtractEXIFgetImageSize() in file «phpthumb.class.php» on line 3236 [26] => GetImageSize(/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/31.jpg) says image is 4220x2756 in file «phpthumb.class.php» on line 3246 [27] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file «phpthumb.class.php» on line 1508 [28] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file «phpthumb.class.php» on line 2203 [29] => ImageMagickThumbnailToGD() failed in file «phpthumb.class.php» on line 3286 [30] => SetOrientationDependantWidthHeight() starting with «4220»x«2756» in file «phpthumb.class.php» on line 3215 [31] => SetOrientationDependantWidthHeight() setting w=«100», h=«100» in file «phpthumb.class.php» on line 3231 [32] => exif_thumbnail() does not exist, cannot extract EXIF thumbnail in file «phpthumb.class.php» on line 3339 [33] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file «phpthumb.class.php» on line 3343 [34] => image is 4220x2756 and therefore contains more pixels (11630320) than $this->config_max_source_pixels setting (6710886) in file «phpthumb.class.php» on line 3385 [35] => starting SourceImageToGD() in file «phpthumb.class.php» on line 3603 [36] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file «phpthumb.class.php» on line 3674 [37] => $this->gdimg_source is still empty in file «phpthumb.class.php» on line 3726 [38] => ImageMagickThumbnailToGD() failed in file «phpthumb.class.php» on line 3728 [39] => phpThumb() v1.7.13-201406261000phpthumb.sourceforge.net

Error messages disabled.

edit phpThumb.config.php and (temporarily) set $PHPTHUMB_CONFIG['disable_debug'] = false; to view the details of this error in file «phpthumb.class.php» on line 4050 [40] => phpThumb() v1.7.13-201406261000phpthumb.sourceforge.net

Error messages disabled.

edit phpThumb.config.php and (temporarily) set $PHPTHUMB_CONFIG['disable_debug'] = false; to view the details of this error in file «phpthumb.class.php» on line 4050 [41] => SourceImageToGD() failed in file «phpthumb.class.php» on line 351 )

[2015-02-03 17:04:54] (ERROR @ /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/core/components/gallery/processors/web/phpthumb.php: 169) PHP warning: filemtime() [function.filemtime]: stat failed for /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery/cache/_home_resp_xn----8sbacsa9amqojhgrv.xn--p1ai_docs_assets_gallery_7_31.jpg.21bc5b820825bf448c633512b2401368.jpg [2015-02-03 17:04:54] (ERROR @ /assets/components/gallery/connector.php) [phpThumbOf] Could not generate thumbnail: /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/32.jpg — Debug: Array ( [0] => phpThumb() v1.7.13-201406261000 in file «phpthumb.class.php» on line 220 [1] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root () to $filename (/assets/gallery/7/32.jpg) resulting in ($AbsoluteFilename = "/assets/gallery/7/32.jpg") in file «phpthumb.class.php» on line 1216 [2] => resolvePath: /assets/gallery/7/32.jpg (allowed_dirs: Array ( ) ) in file «phpthumb.class.php» on line 1096 [3] => resolvePath: iteration, path=/assets/gallery/7/32.jpg, base path = /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery in file «phpthumb.class.php» on line 1115 [4] => open_basedir: "" in file «phpthumb.class.php» on line 1082 [5] => resolvePath: stop at component 5 in file «phpthumb.class.php» on line 1131 [6] => resolvePath: stop at path=/assets/gallery/7/32.jpg in file «phpthumb.class.php» on line 1134 [7] => resolvePath: no match, returning null in file «phpthumb.class.php» on line 1136 [8] => !$this->config_allow_src_above_docroot therefore setting "" (outside "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery") to null in file «phpthumb.class.php» on line 1261 [9] => setSourceFilename() set $this->sourceFilename to "" in file «phpthumb.class.php» on line 271 [10] => setSourceFilename(/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/32.jpg) set $this->sourceFilename to "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/32.jpg" in file «phpthumb.class.php» on line 271 [11] => CleanUpCacheDirectory() set to purge (NULL days; NULL MB; NULL files) in file «phpthumb.class.php» on line 667 [12] => CleanUpCacheDirectory() skipped because "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery/cache//phpThumbCacheStats.txt" is recently modified in file «phpthumb.class.php» on line 677 [13] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file «phpthumb.class.php» on line 925 [14] => $this->thumbnailFormat set to $this->config_output_format «jpeg» in file «phpthumb.class.php» on line 936 [15] => $this->thumbnailFormat set to $this->f «jpeg» in file «phpthumb.class.php» on line 943 [16] => $this->thumbnailQuality set to «90» in file «phpthumb.class.php» on line 953 [17] => resolvePath: /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/32.jpg (allowed_dirs: Array ( ) ) in file «phpthumb.class.php» on line 1096 [18] => resolvePath: iteration, path=/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/32.jpg, base path = /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs in file «phpthumb.class.php» on line 1115 [19] => resolvePath: stop at component 9 in file «phpthumb.class.php» on line 1131 [20] => resolvePath: stop at path=/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/32.jpg in file «phpthumb.class.php» on line 1134 [21] => resolvePath: path parsed, over in file «phpthumb.class.php» on line 1140 [22] => $this->sourceFilename set to "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/32.jpg" in file «phpthumb.class.php» on line 849 [23] => SetCacheFilename() _src set from md5($this->sourceFilename) "/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/32.jpg" = «a1bbcc514fd77513fc2d24077f09b748» in file «phpthumb.class.php» on line 3443 [24] => SetCacheFilename() _par set from md5(_farC_zc1_h200_w100_dpi150_q90) in file «phpthumb.class.php» on line 3476 [25] => starting ExtractEXIFgetImageSize() in file «phpthumb.class.php» on line 3236 [26] => GetImageSize(/home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/gallery/7/32.jpg) says image is 2972x2424 in file «phpthumb.class.php» on line 3246 [27] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file «phpthumb.class.php» on line 1508 [28] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file «phpthumb.class.php» on line 2203 [29] => ImageMagickThumbnailToGD() failed in file «phpthumb.class.php» on line 3286 [30] => SetOrientationDependantWidthHeight() starting with «2972»x«2424» in file «phpthumb.class.php» on line 3215 [31] => SetOrientationDependantWidthHeight() setting w=«100», h=«100» in file «phpthumb.class.php» on line 3231 [32] => exif_thumbnail() does not exist, cannot extract EXIF thumbnail in file «phpthumb.class.php» on line 3339 [33] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file «phpthumb.class.php» on line 3343 [34] => image is 2972x2424 and therefore contains more pixels (7204128) than $this->config_max_source_pixels setting (6710886) in file «phpthumb.class.php» on line 3385 [35] => starting SourceImageToGD() in file «phpthumb.class.php» on line 3603 [36] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file «phpthumb.class.php» on line 3674 [37] => $this->gdimg_source is still empty in file «phpthumb.class.php» on line 3726 [38] => ImageMagickThumbnailToGD() failed in file «phpthumb.class.php» on line 3728 [39] => phpThumb() v1.7.13-201406261000phpthumb.sourceforge.net

Error messages disabled.

edit phpThumb.config.php and (temporarily) set $PHPTHUMB_CONFIG['disable_debug'] = false; to view the details of this error in file «phpthumb.class.php» on line 4050 [40] => phpThumb() v1.7.13-201406261000phpthumb.sourceforge.net

Error messages disabled.

edit phpThumb.config.php and (temporarily) set $PHPTHUMB_CONFIG['disable_debug'] = false; to view the details of this error in file «phpthumb.class.php» on line 4050 [41] => SourceImageToGD() failed in file «phpthumb.class.php» on line 351 )

[2015-02-03 17:04:54] (ERROR @ /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/core/components/gallery/processors/web/phpthumb.php: 169) PHP warning: filemtime() [function.filemtime]: stat failed for /home/resp/xn----8sbacsa9amqojhgrv.xn--p1ai/docs/assets/components/gallery/cache/_home_resp_xn----8sbacsa9amqojhgrv.xn--p1ai_docs_assets_gallery_7_32.jpg.3588f02298b1a6a7edf0ab49407dc554.jpg [2015-02-03 17:09:56] (ERROR @ /assets/components/gallery/connector.php) [Gallery] Album Type: 1 [2015-02-03 17:09:56] (ERROR @ /assets/components/gallery/connector.php) [Gallery] Could not create directory (possibly already exists?): assets/gallery/1/

Простите за такой большой кусок логов.

Пробовал переустановить компонент Gallery, сбрасывать кеш, перезагружать сервер.

Help me! =)

modx.pro

html - Галерея MODx не отображает изображения правильно

Недавно я создал веб-сайт с использованием MODx Revolution. Я пытаюсь сделать галерею, используя плагин с тем же именем. Я бы хотел, чтобы вы могли щелкнуть ссылку, которая отображает исходное изображение, так как оно было загружено. Вот код моей страницы галереи:

<div>[[*longtitle]]</div> <p>This page contains galleries of various images I have taken or made. Each has a description, so feel free to browse. Clicking thumbnails will reload the page, and may take some time to load a larger version of the image - but it will get there!</p> <p>[[!Gallery? &toPlaceholder=`gallery`]] [[!GalleryItem? &imageWidth=`900` &imageHeight=`900`]] [[!GalleryAlbums? &prominentOnly=`0` &limit=`0` &rowTpl=`galAlbumRowTplCustom` &toPlaceholder=`galleries`]]</p> <div align="center">| [[+galleries]]</div> <hr /> <p><a name="largeImage"></a></p> <p> </p> <p>[[!+galitem.image:notempty=`</p><div><img src="[[+galitem.image]]" alt="[[+galitem.name]]" /><br/>[[+galitem.description]]<br />Albums: [[+galitem.albums]] <br />Tags: [[+galitem.tags]]<br/><a href="[[!+galitem.image]]">View original image</a><hr /></div> <p>`]] [[!+gallery:notempty=`</p><div ><h2>[[+gallery.name]]</h2><h3>[[+gallery.description]]</h3><p> </p><h3>[[+gallery]]</h3> </div>`]] <div><!--This ensures that when a thumb is clicked, the gallery isn't pushed below the footer.--></div>

Код, вызывающий проблемы:

<a href="[[!+galitem.image]]">View original image</a>

который генерирует следующий (пример) url:

http://www.reflectric.com/assets/components/gallery/connector.php?action=web/phpthumb&w=900&h=900&zc=0&far=&q=90&src=http%3A%2F%2Fwww.reflectric.com%2Fassets%2Fcomponents%2Fgallery%2Ffiles%2F3%2F28.bmp

Если вы последуете за ним (попробуйте!) в Internet Explorer (протестировано на 6 и 9), он показывает изображение просто отлично. Однако в каждом другом браузере, который я тестировал, он дает то же самое, что вы могли бы получить от загрузки изображения в notepad++ или в другом текстовом редакторе.

Выполнение "Right- нажмите" Сохранить как "на изображении приводит к сохранению перенаправления php, а не к изображению, а" Right- click view image "дает то же самое, что и ссылка выше.

Поэтому я прошу либо а) есть ли способ исправить это, или b) есть ли способ напрямую ссылаться на изображение, а не на страницу php?

Спасибо за любую помощь, которую вы можете дать,

Саймон

qaru.site

Не создаются привью к изображениям, в чем может быть причина? — Toster.ru

Версия 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] => [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 )

toster.ru

MS2Gallery не отображается превью / modx.pro

Здравствуйте! Знаю, что было много вопросов на эту тему, я постарался посмотреть все и попробовать то, что там описано, но я не понимаю что происходит и почему. При добавлении картинки для товара у меня не отображается превью. Источник файлов для товара MS2 Images. В настройках minishop2 стоит источник файлов MS2 Images. В настройках Источника файлов MS2 Images:thumbnails: {"w":570,"h":400,"q":90,"zc":"0","bg":"ffffff"}Пробовал и так писать:thumbnails: {"small":{"w":570,"h":400,"q":90,"zc":"0","bg":"ffffff"}}, но тоже ничего (а на другом сайте такая запись работает и все нормально работает и выводится)

В админке не отображается превьюшка, на сайте выводится следующее:Array ( [files] => Array ( [0] => Array ( [id] => 38 [product_id] => 7012 [source] => 3 [parent] => 0 [name] => 1 [description] => [path] => 7012/ [file] => 1.jpg [type] => image [createdon] => 2018-02-02 15:23:04 [createdby] => 1 [rank] => 0 [url] => /assets/images/products/7012/1.jpg [properties] => Array ( [size] => 435511 [width] => 1440 [height] => 1080 [bits] => 8 [mime] => image/jpeg ) [hash] => aafe75d56bb22940d141447ff177f877b84118a6 [active] => 1 [x] => /assets/images/products/7012/x/1. [zxz] => /assets/images/products/7012/zxz/1.z [bxb] => /assets/images/products/7012/bxb/1.b ) ) )Откуда это взялось я вообще не понимаю, и создались такие файлы и папки. Кроме этого создалась папка 120х90, она вообще по умолчанию чтоли всегда создается.[x] => /assets/images/products/7012/x/1. [zxz] => /assets/images/products/7012/zxz/1.z [bxb] => /assets/images/products/7012/bxb/1.bВ общем я очень запутался и не понимаю совсем что я не так делаю. Очень прошу помощи. Спасибо!

modx.pro

[ms2Gallery] Версия 1.3.2 - картинки на странице / modx.pro

Представляю вам новую версию ms2Gallery, в которой исправлены все известные ошибки и добавлены новые интересные возможности по выставлению файлов галереи на страницу её ресурса.
Отключение вкладки с галерей
Почему-то (мне непонятно почему), многие просили дать возможность отключать вкладку галереи на некоторых ресурсах.

Честно, не знаю, чем она может помешать, и почему при этом никому не мешает вкладка «Группы ресурсов» — ведь ей пользуются гораздо реже. Но, желание покупателей — закон, так что встречайте системную настройку ms2gallery_disable_for_templates. В ней можно перечислить id шаблонов через запятую, для которых вкладку с галерей выводить не стоит.

Оформление картинок на странице
Немногие знают, что ms2Gallery, в отличии от других подобных решений, умеет выводит картинки прямо при генерации страницы ресурса, безо всяких сниппетов.

Вам нужно просто активировать системную настройку ms2gallery_set_placeholders и вы можете использовать в контенте такие плейхолдеры:

Понятное дело, что выборка всех картинок генерирует дополнительные запросы в БД, поэтому по умолчанию она отключена.

В новой версии вам доступны 3 дополнительные настройки этой функции.

ms2gallery_placeholders_tpl
Имя ТВ параметра или чанка для оформления плейсхолдера [[+ms2g.0]], содержимое которого будет использовано для оформления картинки. Например:<a href="[[+url]]"> <img src="[[+120x90]]" /> </a>Логика работы такая:
  1. Если включен вывод плейсхолдеров, и настройка ms2gallery_placeholders_tpl не пуста то
  2. Проверяем, привязан ли к текущему ресурсу ТВ с указанным именем.
  3. Если нет, то ищем чанк с таким именем
  4. Если получаем непустой ТВ или чанк, то используем его содержимое для оформления плейсхолдеров на странице.
  5. В противном случае, будет как и раньше, распечатанный масив со всеми свойствами.
Теперь вы можете спокойно писать тексты на сайте, разбавляя их вставками тегов [[+ms2g.1]] или там [[+ms2g.25]]. Учитывая, что плейсхолдеры выставляются не по id, а по rank, вы можете легко менять порядок вывода картинок на странице простым перетаскиванием их в галерее.

Ну а внешний вид выводимых картинок можно указывать или в ТВ этого ресурса, или в настройках этого ТВ по умолчанию, или в общем для всех чанке. На мой взгляд, достаточно гибко.

Для экономии ресурсов предусмотрены оставшиеся 2 настройки:

ms2gallery_placeholders_for_templates
Список id шаблонов через запятую, для которых нужно включить функцию выставления плейсхолдеров. Настройка пуста по умолчанию, поэтому плейсхолдеры выставляются для всех.
ms2gallery_placeholders_thumbs
Список превью картинок, которые нужно выбирать для показа на странице. По умолчанию там тоже пусто, и выбираются все превьюшки подряд. Но вы можете указать что-то типа «120x90,360x270» и сэкономить на лишних запросах в БД.

Рабочий пример вывода картинок через эти настройки можно посмотреть вот здесь. Исходник страницы в админке вот такой: Теги [[+image.0]], [[+image.1]] и т.д. — это и есть наши картинки из галереи, оформленные согласно системных настроек. Префикс плейсхолдера вы можете поменять там же.

Исправление ошибок
Исправлена ошибка с неудалением картинок при удалении самого ресурса. Теперь всё удаляется четко при очистке корзины из админки. Не остаётся даже директории ресурса в источнике файлов.

Исправлена ошибка с сортировкой картинок, если их больше 255 в одной галерее. Проблема была в слишком малом размере поля rank в БД.

Удалены старые лексиконы для французского и немецкого языков, оставшиеся от miniShop2. Их просто некому поддерживать, да и не думаю, что много немцев и французов покупают галерею в нашем магазине.

Заключение

Обновление уже доступно в магазине, все покупатели могут закачать его бесплатно.

Обновляемся, тестируем, пишем отзывы.

modx.pro


Prostoy-Site | Все права защищены © 2018 | Карта сайта