НА сайте фото выводятся, в мобильной версии нет.
В логе сыпятся ошибки. При отключении вывода галереи ошибок нет и все нормально. Кто-то сталкивался? Проблемная страница тут: Портфолио (внизу, где фото грозы)
А лог ошибок выводит вот это:
[2016-10-19 05:57:53] (ERROR @ /home/xxx/public_html/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php : 379) [phpThumbOf] Could not generate thumbnail: <li class="ix-sort-item col-md-3 col-sm-4 "><span class="imghover_gallery"></span>
<a class="thumbnail fancybox" rel="external" href="/assets/components/gallery/connector.php - Debug: Array
(
[0] => phpThumb() v1.7.14-201604151303 in file "phpthumb.class.php" on line 227
[1] => setCacheDirectory() starting with config_cache_directory = "/home/xxx/public_html/core/cache/phpthumb/" in file "phpthumb.class.php" on line 1006
[2] => setting config_cache_directory to $this->realPathSafe(/home/xxx/public_html/core/cache/phpthumb) = "/home/xxx/public_html/core/cache/phpthumb" in file "phpthumb.class.php" on line 1034
[3] => setCacheDirectory() starting with config_cache_directory = "/home/xxx/public_html/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 1006
[4] => setting config_cache_directory to $this->realPathSafe(/home/xxx/public_html/assets/components/phpthumbof/cache) = "/home/xxx/public_html/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 1034
[5] => setSourceFilename(<li class="ix-sort-item col-md-3 col-sm-4 "><span class="imghover_gallery"></span>
<a class="thumbnail fancybox" rel="external" href="/assets/components/gallery/connector.php) set $this->sourceFilename to "<li class="ix-sort-item col-md-3 col-sm-4 "><span class="imghover_gallery"></span>
<a class="thumbnail fancybox" rel="external" href="/assets/components/gallery/connector.php" in file "phpthumb.class.php" on line 292
[6] => CleanUpCacheDirectory() set to purge (30.0 days; 100.00 MB; 10,000 files) in file "phpthumb.class.php" on line 712
[7] => CleanUpCacheDirectory() skipped because "/home/xxx/public_html/assets/components/phpthumbof/cache/phpThumbCacheStats.txt" is recently modified in file "phpthumb.class.php" on line 722
[8] => Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 964
[9] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 970
[10] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 981
[11] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 988
[12] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 998
[13] => $this->sourceFilename set to "/home/xxx/public_html/<li class="ix-sort-item col-md-3 col-sm-4 "><span class="imghover_gallery"></span>
<a class="thumbnail fancybox" rel="external" href="/assets/components/gallery/connector.php" in file "phpthumb.class.php" on line 894
[14] => phpThumb() v1.7.14-201604151303
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 4133
[15] => SetCacheFilename() _src set from md5($this->sourceFilename) "/home/xxx/public_html/<li class="ix-sort-item col-md-3 col-sm-4 "><span class="imghover_gallery"></span>
<a class="thumbnail fancybox" rel="external" href="/assets/components/gallery/connector.php" = "15886e8a4fb57205abbf00b2a225f142" in file "phpthumb.class.php" on line 3527
[16] => SetCacheFilename() _par set from md5(_farC_zc1_h150_w236_dpi150_q75) in file "phpthumb.class.php" on line 3560
[17] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3320
[18] => GetImageSize(/home/xxx/public_html/<li class="ix-sort-item col-md-3 col-sm-4 "><span class="imghover_gallery"></span>
<a class="thumbnail fancybox" rel="external" href="/assets/components/gallery/connector.php) says image is x in file "phpthumb.class.php" on line 3330
[19] => GetImageSize("/home/xxx/public_html/<li class="ix-sort-item col-md-3 col-sm-4 "><span class="imghover_gallery"></span>
<a class="thumbnail fancybox" rel="external" href="/assets/components/gallery/connector.php") failed in file "phpthumb.class.php" on line 3363
[20] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1592
[21] => phpThumb_tempnam() returning "/tmp/pThumb8ZqmZD" in file "phpthumb.class.php" on line 4362
[22] => ImageMagickSwitchAvailable(thumbnail) = 1 in file "phpthumb.class.php" on line 1529
[23] => ImageMagickSwitchAvailable(density) = 1 in file "phpthumb.class.php" on line 1529
[24] => GetImageSize(/home/xxx/public_html/<li class="ix-sort-item col-md-3 col-sm-4 "><span class="imghover_gallery"></span>
<a class="thumbnail fancybox" rel="external" href="/assets/components/gallery/connector.php) FAILED with error "" in file "phpthumb.class.php" on line 1686
[25] => GetImageSize(/home/xxx/public_html/<li class="ix-sort-item col-md-3 col-sm-4 "><span class="imghover_gallery"></span>
<a class="thumbnail fancybox" rel="external" href="/assets/components/gallery/connector.php) failed in file "phpthumb.class.php" on line 1833
[26] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 2216
[27] => ImageMagickSwitchAvailable(quality;interlace) = 1 in file "phpthumb.class.php" on line 1526
[28] => ImageMagick called as (convert -flatten -density '150' -thumbnail '236x150' -quality '75' -interlace line '/home/xxx/public_html/<li class="ix-sort-item col-md-3 col-sm-4 "><span class="imghover_gallery"></span>
<a class="thumbnail fancybox" rel="external" href="/assets/components/gallery/connector.php[0]' jpeg:'/tmp/pThumb8ZqmZD' 2>&1) in file "phpthumb.class.php" on line 2235
[29] => ImageMagick failed with message (convert: unable to open image `/home/xxx/public_html/<li class="ix-sort-item col-md-3 col-sm-4 "><span class="imghover_gallery"></span>
<a class="thumbnail fancybox" rel="external" href="/assets/components/gallery/connector.php': No such file or directory @ error/blob.c/OpenBlob/2702.
convert: no decode delegate for this image format `PHP' @ error/constitute.c/ReadImage/501.
convert: no images defined `jpeg:/tmp/pThumb8ZqmZD' @ error/convert.c/ConvertImageCommand/3252.) in file "phpthumb.class.php" on line 2240
[30] => deleting "/tmp/pThumb8ZqmZD" in file "phpthumb.class.php" on line 2272
[31] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3370
[32] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3299
[33] => SetOrientationDependantWidthHeight() setting w="236", h="150" in file "phpthumb.class.php" on line 3315
[34] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3427
[35] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3686
[36] => starting ImageCreateFromFilename(/home/xxx/public_html/<li class="ix-sort-item col-md-3 col-sm-4 "><span class="imghover_gallery"></span>
<a class="thumbnail fancybox" rel="external" href="/assets/components/gallery/connector.php) in file "phpthumb.class.php" on line 3601
[37] => empty $filename or GetImageSize(/home/xxx/public_html/<li class="ix-sort-item col-md-3 col-sm-4 "><span class="imghover_gallery"></span>
<a class="thumbnail fancybox" rel="external" href="/assets/components/gallery/connector.php) failed in file "phpthumb.class.php" on line 3650
[38] => Populating $rawimagedata in file "phpthumb.class.php" on line 3658
[39] => cannot fopen(/home/xxx/public_html/<li class="ix-sort-item col-md-3 col-sm-4 "><span class="imghover_gallery"></span>
<a class="thumbnail fancybox" rel="external" href="/assets/components/gallery/connector.php) in file "phpthumb.class.php" on line 3669
[40] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3757
[41] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3809
[42] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3811
[43] => phpThumb() v1.7.14-201604151303
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 4133
[44] => SourceImageToGD() failed in file "phpthumb.class.php" on line 372
)
Олег 19.10.2016 08:32 #
Заблокировал загрузку этого скрипта — страница открылась нормально, ничего не поломалось.
Дима 19.10.2016 14:29 #
Дима 19.10.2016 15:09 #
Олег 19.10.2016 15:20 #
Дима 19.10.2016 15:24 #
Дима 19.10.2016 17:35 #
galItemThumb
galAlbumRowTpl
Если их отредактировать в соответствии с шаблоном вроде начинаем работать без ошибок. А если указать другие чанки с нужными плейсхолдерами Gallery и попытаться вывести из в вызове сниппета типа такого:
[[!Gallery?
&album=`2`
&containerTpl=`NewGalleryAlbumTpl`
&thumbTpl=`NewGalItemThumb`
]]
То начинаются проблемы с генерацией phpThumbOf картинок, соответственно офигенно большой лог ошибок копится. Понаблюдаю за работой Gallery в дальнейшем.