kuper-ura 12 сентября 2015 1 2
Всем привет!
Установлена сборка ShopModxBox-2.1.0.
При авторизации администратора (admin) перестают выводится фото товаров в каталоге и карточке товара.
Вот вывод:

<div class="col-md-4">
            
                
                <a href="/assets/images/products/mobile/sotoviy_telefon_sony_xperia_z_ultra_white.png">
                    <img src="<h5>[2015-09-12 17:05:37] (ERROR @ /index.php)</h5><pre>[phpThumbOf] Could not generate thumbnail: /assets/images/products/mobile/sotoviy_telefon_sony_xperia_z_ultra_white.png - Debug: Array
(
    [0] => phpThumb() v1.7.13-201406261000 in file " phpthumb.class.php"="" on="" line="" 220="" [1]=""> setCacheDirectory() starting with config_cache_directory = "C:/OpenServer/domains/modx.test/core/cache/phpthumb/" in file "phpthumb.class.php" on line 961
    [2] => setting config_cache_directory to realpath(C:\OpenServer\domains\modx.test\core\cache\phpthumb) = "C:\OpenServer\domains\modx.test\core\cache\phpthumb" in file "phpthumb.class.php" on line 989
    [3] => setCacheDirectory() starting with config_cache_directory = "C:/OpenServer/domains/modx.test/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 961
    [4] => setting config_cache_directory to realpath(C:\OpenServer\domains\modx.test\assets\components\phpthumbof\cache) = "C:\OpenServer\domains\modx.test\assets\components\phpthumbof\cache" in file "phpthumb.class.php" on line 989
    [5] => setSourceFilename(/assets/images/products/mobile/sotoviy_telefon_sony_xperia_z_ultra_white.png) set $this->sourceFilename to "/assets/images/products/mobile/sotoviy_telefon_sony_xperia_z_ultra_white.png" in file "phpthumb.class.php" on line 271
    [6] => CleanUpCacheDirectory() set to purge (0.0 days; 0.00 MB; 0 files) in file "phpthumb.class.php" on line 667
    [7] => CleanUpCacheDirectory() skipped because "C:\OpenServer\domains\modx.test\assets\components\phpthumbof\cache\phpThumbCacheStats.txt" is recently modified in file "phpthumb.class.php" on line 677
    [8] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 925
    [9] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 936
    [10] => $this->thumbnailFormat set to $this->f "png" in file "phpthumb.class.php" on line 943
    [11] => $this->thumbnailQuality set to "99" in file "phpthumb.class.php" on line 953
    [12] => ResolveFilenameToAbsolute() prepending $this->config_document_root (C:/OpenServer/domains/modx.test/) to $filename (/assets/images/products/mobile/sotoviy_telefon_sony_xperia_z_ultra_white.png) resulting in ($AbsoluteFilename = "C:/OpenServer/domains/modx.test//assets/images/products/mobile/sotoviy_telefon_sony_xperia_z_ultra_white.png") in file "modphpthumb.class.php" on line 262
    [13] => $this->sourceFilename set to "C:/OpenServer/domains/modx.test/assets/images/products/mobile/sotoviy_telefon_sony_xperia_z_ultra_white.png" in file "phpthumb.class.php" on line 849
    [14] => SetCacheFilename() _src set from md5($this->sourceFilename) "C:/OpenServer/domains/modx.test/assets/images/products/mobile/sotoviy_telefon_sony_xperia_z_ultra_white.png" = "119fe276366de0bf4c17302fdf384846" in file "phpthumb.class.php" on line 3443
    [15] => SetCacheFilename() _par set from md5(_farC_w200_dpi150) in file "phpthumb.class.php" on line 3476
    [16] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3236
    [17] => GetImageSize(C:/OpenServer/domains/modx.test/assets/images/products/mobile/sotoviy_telefon_sony_xperia_z_ultra_white.png) says image is 578x540 in file "phpthumb.class.php" on line 3246
    [18] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1508
    [19] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 2203
    [20] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3286
    [21] => SetOrientationDependantWidthHeight() starting with "578"x"540" in file "phpthumb.class.php" on line 3215
    [22] => SetOrientationDependantWidthHeight() setting w="200", h="0" in file "phpthumb.class.php" on line 3231
    [23] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3343
    [24] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3603
    [25] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3674
    [26] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3726
    [27] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3728
    [28] => phpThumb() v1.7.13-201406261000
http://phpthumb.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
    [29] => phpThumb() v1.7.13-201406261000
http://phpthumb.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
    [30] => SourceImageToGD() failed in file "phpthumb.class.php" on line 351
)

" title="Sony C1605 Black Xperia E Dual Sim" align="left" class="img-responsive"/>
                </a>
                
            </div>


Подскажите в чём может быть проблем?
Сборка установлена на локальном сервере OpenServer (Apache 2.2 + PHP 5.3)
2 комментария
Fi1osof1
Fi1osof 12 сентября 2015г в 17:23 #
Ошибки свидетельствуют о том, что не получилось сгенерировать превьюшку из картинки. Скорее всего расширение GD не установлено или типа того (смотрите php-логи). Пропадают картинки при авторизации по той причине, что у админа есть права на отладку и плагин Debug включает вывод отладки во фронт. Посмотрите журнал ошибок MODX-а, и там наверняка увидите кучу тех же самых ошибок, которые записывались при отсутствии прав на отладку. А без авторизации вы видите картинки, потому что phpThumb если не может сгенерить превьюшку, возвращает путь на оригинальную картинку. А при выводе отладки атрибут src тега img засоряется и путь бьется.
G
Ganaman 14 сентября 2015г в 18:48 #
Это известная проблема. Могу посоветовать Вам проверить проверить параметр «memory_limit» в php.ini. Поставте 128M и счастье должно придти.
Авторизуйтесь или зарегистрируйтесь (можно через соцсети ), чтобы оставлять комментарии.