Answer the question
In order to leave comments, you need to log in
How to properly generate thumbnails when added to Modx Gallery?
judging by the logs, there is a problem in how the paths are assigned .. But I already double-checked everything 156 times / everything seems to be so ... the system settings are written like this:
gallery.files_path = gallery/
gallery.files_url = gallery/
gallery.default_batch_upload_path = gallery/
Also in the source of the files is basePath = gallery/
Obviously somewhere I messed up when creating thumbnails, but I don’t understand where .. : ) I'm attaching the logs ... tell me what I'm doing wrong?
(
[0] => phpThumb() v1.7.16-202012161640 in file "phpthumb.class.php" on line 234
[1] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root () to $filename (/assets/ gallery/1/67.jpg) resulting in ($AbsoluteFilename = "/assets/gallery/1/67.jpg") in file "phpthumb.class.php" on line 1349
[2] => resolvePath: /assets/gallery /1/67.jpg (allowed_dirs: Array
(
)
) in file "phpthumb.class.php" on line 1183
[3] => resolvePath: iteration, path=/assets/gallery/1/67.jpg, base path = /home/s/shevam00/prodlenka-club.ru/public_html/assets/components/gallery in file "phpthumb.class.php" on line 1202
[4] => open_basedir: "" in file "phpthumb.class.php" on line 1169
[5] => resolvePath: stop at component 5 in file "phpthumb.class.php" on line 1218
[6] => resolvePath: stop at path=/assets/gallery/1/67.jpg in file "phpthumb.class .php" on line 1221
[7] => resolvePath: no match, returning null in file "phpthumb.class.php" on line 1223
[8] => !$this->config_allow_src_above_docroot therefore setting "/assets/gallery/1 /67.jpg" (outside "/home/s/shevam00/prodlenka-club.ru/public_html/assets/components/gallery") to null in file "phpthumb.class.php" on line 1394
[9] => setSourceFilename () set $this->sourceFilename to "" in file "phpthumb.class.php" on line 299
[10] => setSourceFilename(/home/s/shevam00/prodlenka-club.ru/public_html/assets/gallery/1/67.jpg) set $this->sourceFilename to "/home/s/shevam00/prodlenka-club .ru/public_html/assets/gallery/1/67.jpg" in file "phpthumb.class.php" on line 299
[11] => CleanUpCacheDirectory() set to purge (NULL days; NULL MB; NULL files) in file "phpthumb.class.php" on line 751
[12] => CleanUpCacheDirectory() skipped because "/home/s/shevam00/prodlenka-club.ru/public_html/assets/components/gallery/cache//phpThumbCacheStats.txt" is recently modified in file "phpthumb.class.php" on line 761
[13] => Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;webp;png;jpeg) in file "phpthumb.class.php "line 1006
[14] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;webp;png;jpeg) in file "phpthumb.class.php" on line 1012
[15] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 1023
[16] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 1030
[17] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 1040
[18] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root (/home/s/shevam00/prodlenka-club.ru/public_html/) to $filename (/home/s/shevam00/prodlenka-club.ru/public_html /assets/gallery/1/67.jpg) resulting in ($AbsoluteFilename = "/home/s/shevam00/prodlenka-club.ru/public_html/assets/gallery/1/67.jpg") in file "phpthumb.class .php" on line 1349
[19] => resolvePath: /home/s/shevam00/prodlenka-club.ru/public_html/assets/gallery/1/67.jpg (allowed_dirs: Array
(
)
) in file "phpthumb.class .php" on line 1183
[20] => resolvePath: iteration, path=/home/s/shevam00/prodlenka-club.ru/public_html/assets/gallery/1/67.jpg, base path = /home/s/ shevam00/prodlenka-club.ru/public_html in file "phpthumb.class.php"online 1202
[21] => resolvePath: stop at component 10 in file "phpthumb.class.php" on line 1218
[22] => resolvePath: stop at path=/home/s/shevam00/prodlenka-club.ru/public_html/assets /gallery/1/67.jpg in file "phpthumb.class.php" on line 1221
[23] => resolvePath: path parsed, over in file "phpthumb.class.php" on line 1227
[24] => $this ->sourceFilename set to "/home/s/shevam00/prodlenka-club.ru/public_html/assets/gallery/1/67.jpg" in file "phpthumb.class.php" on line 933
[25] => phpThumb( ) v1.7.16-202012161640
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 4269
[26] => SetCacheFilename() _src set from md5($this->sourceFilename) "/home/s/shevam00/prodlenka-club. en/public_html/assets/gallery/1/67.jpg" = "f444a6766ff29ad004818d84091651ea" in file "phpthumb.class.php" on line 3616
[27] => SetCacheFilename() _par set from md5(_farC_zc1_h80_w100_dpi150_q75) in file "phpthumb. class.php" on line 3655
[28] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3409
[29] => getimagesize(/home/s/shevam00/prodlenka-club.ru/public_html/ assets/gallery/1/67.jpg) failed in file "phpthumb.class.php" on line 3421
[30] => getimagesize("/home/s/shevam00/prodlenka-club.ru/public_html/assets/gallery/1/67.jpg") failed in file "phpthumb.class.php" on line 3451
[31] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1655
[32] => phpThumb_tempnam() returning "/tmp/pThumbuh14QN" in file "phpthumb.class.php" on line 4498
[33] => ImageMagickSwitchAvailable(thumbnail) = 1 in file "phpthumb.class.php" on line 1581
[34] => getimagesize(/home/s/shevam00/prodlenka-club.ru/public_html/assets/gallery /1/67.jpg) FAILED with error "" in file "phpthumb.class.php" on line 1752
[35] => ImageMagickSwitchAvailable(density) = 1 in file "phpthumb.class.php" on line 1581
[36] => getimagesize(/home/s/shevam00/prodlenka-club.ru/public_html/assets/gallery/1/67.jpg) failed in file "phpthumb.class.php" on line 1932
[37] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 2316
[38] => ImageMagickSwitchAvailable(quality;interlace) = 1 in file "phpthumb.class.php " on line 1578
[39] => ImageMagick called as (convert '/home/s/shevam00/prodlenka-club.ru/public_html/assets/gallery/1/67.jpg[0]' -flatten -density '150' -thumbnail '100x80' -quality '75' -interlace line jpeg:'/tmp/pThumbuh14QN' 2>&1) in file "phpthumb.class.php" on line 2334
[40] => ImageMagick failed with message (convert: unable to open image `/home/s/shevam00/prodlenka-club.ru/public_html/assets/gallery/1/67.jpg': No such file or directory @ error /blob.c/OpenBlob/2701.convert
: no images defined `jpeg:/tmp/pThumbuh14QN' @ error/convert.c/ConvertImageCommand/3258.) in file "phpthumb.class.php" on line 2339
[41] = > deleting "/tmp/pThumbuh14QN" in file "phpthumb.class.php" on line 2371
[42] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3458
[43] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3388
[44] => SetOrientationDependantWidthHeight() setting w="100",h="80" in file "phpthumb.class.php" on line 3404
[45] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3517
[46] => starting SourceImageToGD() in file "phpthumb.class.php " on line 3781
[47] => starting ImageCreateFromFilename(/home/s/shevam00/prodlenka-club.ru/public_html/assets/gallery/1/67.jpg) in file "phpthumb.class.php" on line 3696
[ 48] => empty $filename or getimagesize(/home/s/shevam00/prodlenka-club.ru/public_html/assets/gallery/1/67.jpg) failed in file "phpthumb.class.php" on line 3745
[49 ] => Populating $rawimagedata in file "phpthumb.class.php" on line 3753
[50] => cannot fopen(/home/s/shevam00/prodlenka-club.ru/public_html/assets/gallery/1/67.jpg ) in file "phpthumb.class.php" on line 3764
[51] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3853
[52] => $this->gdimg_source is still empty in file "phpthumb.class. php" on line 3905
[53] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3907
[54] => phpThumb() v1.7.16-202012161640
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 4269
[55] => SourceImageToGD() failed in file "phpthumb.class.php" on line 379
)
Answer the question
In order to leave comments, you need to log in
[18] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root (/home/s/shevam00/prodlenka-club.ru/public_html/) to $filename (/home/s/shevam00/prodlenka-club.ru/public_html /assets/gallery/1/67.jpg) resulting in ($AbsoluteFilename = "/home/s/shevam00/prodlenka-club.ru/public_html/assets/gallery/1/67.jpg") in file "phpthumb.class .php" on line 1349
unable to open image `/home/s/shevam00/prodlenka-club.ru/public_html/assets/gallery/1/67.jpg':
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question