I have, a problem with gallery extras on modx 2.6.2, when i moved from my server to another it stopped working properly.
So on server that everything works as it should when i create gallery and add images, the folder structure looks similar to this (for standard settings in
gallery.files_path and gallery.files_url - [[++assets_path]]gallery/):
/assets/gallery/13/77.JPG
but in the other server where it's not working the src file is:
/assetsgallery14/95.JPG
and there is no files in /assets/components/gallery/cache/ - the thumbnails are not generated!
so it somehow misses the "/" signs, becouse it should be /assets/gallery/14/95.jpg
i would appreciate your help in this matter
here is error.log
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 4126
[53] => SourceImageToGD() failed in file "phpthumb.class.php" on line 374
)
[2018-07-03 15:36:59] (ERROR @ /core/components/gallery/processors/web/phpthumb.php : 169) PHP warning: filemtime(): stat failed for /assets/components/gallery/cache/gallery_20_128.jpg.53353d228d8f95e7be5c53c82015b25f.jpg
[2018-07-03 15:36:59] (ERROR @ /core/components/gallery/processors/web/phpthumb.php : 181) PHP warning: file_get_contents(/assets/components/gallery/cache/gallery_20_128.jpg.53353d228d8f95e7be5c53c82015b25f.jpg): failed to open stream: No such file or directory
[2018-07-03 15:36:59] (ERROR @ /core/model/phpthumb/phpthumb.class.php : 1686) PHP warning: getimagesize(/core/model/phpthumb/gallery/20/129.jpg): failed to open stream: No such file or directory
[2018-07-03 15:36:59] (ERROR @ /core/components/gallery/processors/web/phpthumb.php : 163) [phpThumbOf] Could not generate thumbnail: gallery/20/129.jpg - Debug: Array
(
[0] => phpThumb() v1.7.14-201608101311 in file "phpthumb.class.php" on line 229
[1] => resolvePath: /core/model/phpthumb/gallery/20/129.jpg (allowed_dirs: Array
(
)
) in file "phpthumb.class.php" on line 1140
[2] => resolvePath: iteration, path=/core/model/phpthumb/gallery/20/129.jpg, base path = /assets/components/gallery in file "phpthumb.class.php" on line 1159
[3] => open_basedir: "" in file "phpthumb.class.php" on line 1126
[4] => resolvePath: stop at component 7 in file "phpthumb.class.php" on line 1175
[5] => resolvePath: stop at path=/core/model/phpthumb/gallery/20/129.jpg in file "phpthumb.class.php" on line 1178
[6] => resolvePath: no match, returning null in file "phpthumb.class.php" on line 1180
[7] => !$this->config_allow_src_above_docroot therefore setting "" (outside "/assets/components/gallery") to null in file "phpthumb.class.php" on line 1344
[8] => setSourceFilename() set $this->sourceFilename to "" in file "phpthumb.class.php" on line 294
[9] => setSourceFilename(gallery/20/129.jpg) set $this->sourceFilename to "gallery/20/129.jpg" in file "phpthumb.class.php" on line 294
[10] => CleanUpCacheDirectory() set to purge (NULL days; NULL MB; NULL files) in file "phpthumb.class.php" on line 712
[11] => CleanUpCacheDirectory() skipped because "/assets/components/gallery/cache//phpThumbCacheStats.txt" is recently modified in file "phpthumb.class.php" on line 722
[12] => Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 963
[13] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 969
[14] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 980
[15] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 987
[16] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 997
[17] => resolvePath: /core/model/phpthumb/gallery/20/129.jpg (allowed_dirs: Array
(
)
) in file "phpthumb.class.php" on line 1140
[18] => resolvePath: iteration, path=/core/model/phpthumb/gallery/20/129.jpg, base path = / in file "phpthumb.class.php" on line 1159
[19] => resolvePath: stop at component 7 in file "phpthumb.class.php" on line 1175
[20] => resolvePath: stop at path=/core/model/phpthumb/gallery/20/129.jpg in file "phpthumb.class.php" on line 1178
[21] => resolvePath: path parsed, over in file "phpthumb.class.php" on line 1184
[22] => $this->sourceFilename set to "/core/model/phpthumb/gallery/20/129.jpg" in file "phpthumb.class.php" on line 894
[23] => phpThumb() v1.7.14-201608101311
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 4126
[24] => SetCacheFilename() _src set from md5($this->sourceFilename) "/core/model/phpthumb/gallery/20/129.jpg" = "274b354c8683d6b8e90e083f2ef8fa76" in file "phpthumb.class.php" on line 3520
[25] => SetCacheFilename() _par set from md5(_farC_zc1_h80_w100_dpi150_q75) in file "phpthumb.class.php" on line 3553
[26] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3314
[27] => getimagesize(/core/model/phpthumb/gallery/20/129.jpg) says image is x in file "phpthumb.class.php" on line 3324
[28] => getimagesize("/core/model/phpthumb/gallery/20/129.jpg") failed in file "phpthumb.class.php" on line 3357
[29] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1595
[30] => phpThumb_tempnam() returning "/tmp/pThumbpknUhv" in file "phpthumb.class.php" on line 4355
[31] => ImageMagickSwitchAvailable(thumbnail) = 1 in file "phpthumb.class.php" on line 1531
[32] => ImageMagickSwitchAvailable(density) = 1 in file "phpthumb.class.php" on line 1531
[33] => getimagesize(/core/model/phpthumb/gallery/20/129.jpg) FAILED with error "" in file "phpthumb.class.php" on line 1692
[34] => getimagesize(/core/model/phpthumb/gallery/20/129.jpg) failed in file "phpthumb.class.php" on line 1839
[35] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 2222
[36] => ImageMagickSwitchAvailable(quality;interlace) = 1 in file "phpthumb.class.php" on line 1528
[37] => ImageMagick called as (convert -flatten -density '150' -thumbnail '100x80' -quality '75' -interlace line '/core/model/phpthumb/gallery/20/129.jpg[0]' jpeg:'/tmp/pThumbpknUhv' 2>&1) in file "phpthumb.class.php" on line 2241
[38] => ImageMagick failed with message (gallery: unable to open image `/core/model/phpthumb/gallery/20/129.jpg': No such file or directory @ error/blob.c/OpenBlob/2701.
gallery: no images defined `jpeg:/tmp/pThumbpknUhv' @ error/convert.c/ConvertImageCommand/3258.) in file "phpthumb.class.php" on line 2246
[39] => deleting "/tmp/pThumbpknUhv" in file "phpthumb.class.php" on line 2278
[40] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3364
[41] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3293
[42] => SetOrientationDependantWidthHeight() setting w="100", h="80" in file "phpthumb.class.php" on line 3309
[43] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3421
[44] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3679
[45] => starting ImageCreateFromFilename(/core/model/phpthumb/gallery/20/129.jpg) in file "phpthumb.class.php" on line 3594
[46] => empty $filename or getimagesize(/core/model/phpthumb/gallery/20/129.jpg) failed in file "phpthumb.class.php" on line 3643
[47] => Populating $rawimagedata in file "phpthumb.class.php" on line 3651
[48] => cannot fopen(/core/model/phpthumb/gallery/20/129.jpg) in file "phpthumb.class.php" on line 3662
[49] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3751
[50] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3803
[51] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3805
[52] => phpThumb() v1.7.14-201608101311
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 4126
[53] => SourceImageToGD() failed in file "phpthumb.class.php" on line 374
)
[2018-07-03 15:36:59] (ERROR @ /core/components/gallery/processors/web/phpthumb.php : 169) PHP warning: filemtime(): stat failed for /assets/components/gallery/cache/gallery_20_129.jpg.5cab3c7170f0d8e8968b1c86c92cb821.jpg
[2018-07-03 15:36:59] (ERROR @ /core/components/gallery/processors/web/phpthumb.php : 181) PHP warning: file_get_contents(/assets/components/gallery/cache/gallery_20_129.jpg.5cab3c7170f0d8e8968b1c86c92cb821.jpg): failed to open stream: No such file or directory
[ed. note: qnev86 last edited this post 6 years, 8 months ago.]