JamesHeinrich / phpThumb

phpThumb() - The PHP thumbnail generator
Other
315 stars 97 forks source link

How the thumbnail path is returned #153

Closed samuelhgf closed 4 years ago

samuelhgf commented 4 years ago

I have installed phpThumb and using it correctly as doc. But here is the output of accessing the src generate by phpRhumbUrl in browser

phpThumb() v1.7.15-202004301145
http://phpthumb.sourceforge.net

phpThumb() version          = 1.7.15-202004301145
phpversion()                = 7.4.5
PHP_OS                      = Darwin
$_SERVER[SERVER_SOFTWARE]   = nginx/1.17.10
__FILE__                    = <redacted_public_path>/phpThumb/phpthumb.class.php
realpath(.)                 = <redacted_public_path>
$_SERVER[PHP_SELF]          = <redacted_php_self>
$_SERVER[HOST_NAME]         = 
$_SERVER[HTTP_REFERER]      = 
$_SERVER[QUERY_STRING]      = src=<redacted_dropbox_url>
$_SERVER[PATH_INFO]         = 
$_SERVER[DOCUMENT_ROOT]     = 
getenv(DOCUMENT_ROOT)       = 

get_magic_quotes_gpc()         = FALSE
get_magic_quotes_runtime()     = FALSE
error_reporting()              = integer     32767
ini_get(error_reporting)       = string(5)   "32767"
ini_get(display_errors)        = string(1)   "1"
ini_get(allow_url_fopen)       = string(1)   "1"
ini_get(disable_functions)     = string(0)   ""
get_cfg_var(disable_functions) = string(0)   ""
ini_get(safe_mode)             = FALSE
ini_get(open_basedir)          = string(0)   ""
ini_get(max_execution_time)    = string(2)   "60"
ini_get(memory_limit)          = string(4)   "128M"
get_cfg_var(memory_limit)      = string(4)   "128M"
memory_get_usage()             = integer     4781248

$this->config_prefer_imagemagick            = TRUE
$this->config_imagemagick_path              = NULL
$this->ImageMagickWhichConvert()            = 
[actual ImageMagick path used]              = string(0)   ""
file_exists([actual ImageMagick path used]) = FALSE
ImageMagickVersion(false)                   = 
ImageMagickVersion(true)                    = 

$this->config_cache_directory               = string(73)  "<redacted_public_path>/phpThumb/cache/"
$this->config_cache_directory_depth         = integer     2
$this->config_cache_disable_warning         = FALSE
$this->config_cache_maxage                  = integer     2592000
$this->config_cache_maxsize                 = integer     10485760
$this->config_cache_maxfiles                = integer     200
$this->config_cache_force_passthru          = TRUE
$this->cache_filename                       = string(5)   "teste"
is_readable($this->config_cache_directory)  = TRUE
is_writable($this->config_cache_directory)  = TRUE
is_readable($this->cache_filename)          = FALSE
is_writable($this->cache_filename)          = n/a

$this->config_document_root                  = string(66)  "<redacted_public_path>/phpThumb"
$this->config_temp_directory                 = string(73)  "<redacted_public_path>/phpThumb/cache/"
$this->config_output_format                  = string(4)   "jpeg"
$this->config_output_maxwidth                = integer     0
$this->config_output_maxheight               = integer     0
$this->config_error_message_image_default    = string(0)   ""
$this->config_error_bgcolor                  = string(6)   "CCCCFF"
$this->config_error_textcolor                = string(6)   "FF0000"
$this->config_error_fontsize                 = integer     1
$this->config_error_die_on_error             = TRUE
$this->config_error_silent_die_on_error      = FALSE
$this->config_error_die_on_source_failure    = TRUE
$this->config_nohotlink_enabled              = TRUE
$this->config_nohotlink_valid_domains        = array(1) {   [0]=>   string(16) "categoria2.local" } 
$this->config_nohotlink_erase_image          = TRUE
$this->config_nohotlink_text_message         = string(38)  "Off-server thumbnailing is not allowed"
$this->config_nooffsitelink_enabled          = TRUE
$this->config_nooffsitelink_valid_domains    = array(1) {   [0]=>   string(16) "categoria2.local" } 
$this->config_nooffsitelink_require_refer    = FALSE
$this->config_nooffsitelink_erase_image      = FALSE
$this->config_nooffsitelink_text_message     = string(33)  "Image taken from categoria2.local"
$this->config_high_security_enabled          = TRUE
$this->config_allow_src_above_docroot        = FALSE
$this->config_allow_src_above_phpthumb       = TRUE
$this->config_max_source_pixels              = float       22369621
$this->config_use_exif_thumbnail_for_speed   = FALSE
$this->config_border_hexcolor                = string(6)   "000000"
$this->config_background_hexcolor            = string(6)   "FFFFFF"
$this->config_ttf_directory                  = string(72)  "<redacted_public_path>/phpThumb/fonts"
$this->config_disable_pathinfo_parsing       = TRUE
$this->config_disable_imagecopyresampled     = FALSE

$this->phpThumbDebug               = integer     9
$this->thumbnailQuality            = integer     75
$this->thumbnailFormat             = string(4)   "jpeg"
$this->gdimg_output                = resource
$this->gdimg_source                = resource (closed)
$this->sourceFilename              = string(85)  "<redacted_public_path>/phpThumb/cache/pThumbtsPYMZ"
$this->source_width                = integer     1408
$this->source_height               = integer     602
$this->thumbnailCropX              = float       403
$this->thumbnailCropY              = integer     0
$this->thumbnailCropW              = float       602
$this->thumbnailCropH              = integer     602
$this->exif_thumbnail_width        = integer     159
$this->exif_thumbnail_height       = integer     68
$this->exif_thumbnail_type         = integer     2
$this->thumbnail_width             = float       200
$this->thumbnail_height            = float       200
$this->thumbnail_image_width       = string(3)   "200"
$this->thumbnail_image_height      = string(3)   "200"
strlen($this->rawImageData)        = 75270
strlen($this->exif_thumbnail_data) = 4042

$this->src  = string(514) "<redacted_dropbox_url>"
$this->new  = NULL
$this->w    = string(3)   "200"
$this->h    = string(3)   "200"
$this->f    = string(0)   ""
$this->q    = integer     75
$this->sx   = NULL
$this->sy   = NULL
$this->sw   = NULL
$this->sh   = NULL
$this->far  = NULL
$this->bg   = NULL
$this->bc   = NULL
$this->file = NULL
$this->goto = NULL
$this->err  = NULL
$this->xto  = NULL
$this->ra   = NULL
$this->ar   = NULL
$this->aoe  = NULL
$this->iar  = NULL
$this->maxb = NULL

builtin_function_exists(exif_thumbnail)          = TRUE
builtin_function_exists(gd_info)                 = TRUE
builtin_function_exists(image_type_to_mime_type) = TRUE
builtin_function_exists(getimagesize)            = TRUE
builtin_function_exists(imagecopyresampled)      = TRUE
builtin_function_exists(imagecopyresized)        = TRUE
builtin_function_exists(imagecreate)             = TRUE
builtin_function_exists(imagecreatefromstring)   = TRUE
builtin_function_exists(imagecreatetruecolor)    = TRUE
builtin_function_exists(imageistruecolor)        = TRUE
builtin_function_exists(imagerotate)             = TRUE
builtin_function_exists(imagetypes)              = TRUE
builtin_function_exists(version_compare)         = TRUE
builtin_function_exists(imagecreatefromgif)      = TRUE
builtin_function_exists(imagecreatefromjpeg)     = TRUE
builtin_function_exists(imagecreatefrompng)      = TRUE
builtin_function_exists(imagecreatefromwbmp)     = TRUE
builtin_function_exists(imagecreatefromxbm)      = TRUE
builtin_function_exists(imagecreatefromxpm)      = FALSE
builtin_function_exists(imagecreatefromstring)   = TRUE
builtin_function_exists(imagecreatefromgd)       = TRUE
builtin_function_exists(imagecreatefromgd2)      = TRUE
builtin_function_exists(imagecreatefromgd2part)  = TRUE
builtin_function_exists(imagejpeg)               = TRUE
builtin_function_exists(imagegif)                = TRUE
builtin_function_exists(imagepng)                = TRUE
builtin_function_exists(imagewbmp)               = TRUE

gd_info.GD Version                         = string(26)  "bundled (2.1.0 compatible)"
gd_info.FreeType Support                   = TRUE
gd_info.FreeType Linkage                   = string(13)  "with freetype"
gd_info.GIF Read Support                   = TRUE
gd_info.GIF Create Support                 = TRUE
gd_info.JPEG Support                       = TRUE
gd_info.PNG Support                        = TRUE
gd_info.WBMP Support                       = TRUE
gd_info.XPM Support                        = FALSE
gd_info.XBM Support                        = TRUE
gd_info.WebP Support                       = TRUE
gd_info.BMP Support                        = TRUE
gd_info.TGA Read Support                   = TRUE
gd_info.JIS-mapped Japanese Font Support   = FALSE

exif_info.EXIF Support               = string(7)   "enabled"
exif_info.EXIF Version               = string(0)   ""
exif_info.Supported EXIF Version     = string(4)   "0220"
exif_info.Supported filetypes        = string(10)  "JPEG, TIFF"

ApacheLookupURIarray() -- FAILED

$_GET[src]                           = string(514) "<redacted_dropbox_url>"
$_GET[w]                             = string(3)   "200"
$_GET[h]                             = string(3)   "200"
$_GET[zc]                            = string(1)   "1"
$_GET[hash]                          = string(32)  "a4bfbddf608ada442eed388e0fc89ea5"
$_GET[phpThumbDebug]                 = integer     9

$this->debugmessages:
  * phpThumb() v1.7.15-202004301145 in file "phpthumb.class.php" on line 237
  * setParameter(config_document_root, string(66)  "<redacted_public_path>/phpThumb") in file "phpThumb.php" on line 160
  * setParameter(config_disable_debug, FALSE) in file "phpThumb.php" on line 160
  * setParameter(config_high_security_enabled, TRUE) in file "phpThumb.php" on line 160
  * setParameter(config_high_security_url_separator, string(1)   "&") in file "phpThumb.php" on line 160
  * setParameter(config_allow_src_above_docroot, FALSE) in file "phpThumb.php" on line 160
  * setParameter(config_allow_src_above_phpthumb, TRUE) in file "phpThumb.php" on line 160
  * setParameter(config_auto_allow_symlinks, TRUE) in file "phpThumb.php" on line 160
  * setParameter(config_additional_allowed_dirs, array(0) { } ) in file "phpThumb.php" on line 160
  * setParameter(config_cache_directory, string(73)  "<redacted_public_path>/phpThumb/cache/") in file "phpThumb.php" on line 160
  * setParameter(config_cache_disable_warning, FALSE) in file "phpThumb.php" on line 160
  * setParameter(config_cache_directory_depth, integer     2) in file "phpThumb.php" on line 160
  * setParameter(config_cache_maxage, integer     2592000) in file "phpThumb.php" on line 160
  * setParameter(config_cache_maxsize, integer     10485760) in file "phpThumb.php" on line 160
  * setParameter(config_cache_maxfiles, integer     200) in file "phpThumb.php" on line 160
  * setParameter(config_cache_source_enabled, FALSE) in file "phpThumb.php" on line 160
  * setParameter(config_cache_source_directory, string(80)  "<redacted_public_path>/phpThumb/cache/source/") in file "phpThumb.php" on line 160
  * setParameter(config_cache_source_filemtime_ignore_local, FALSE) in file "phpThumb.php" on line 160
  * setParameter(config_cache_source_filemtime_ignore_remote, TRUE) in file "phpThumb.php" on line 160
  * setParameter(config_cache_default_only_suffix, string(0)   "") in file "phpThumb.php" on line 160
  * setParameter(config_cache_prefix, string(32)  "phpThumb_cache_categoria2.local_") in file "phpThumb.php" on line 160
  * setParameter(config_cache_force_passthru, TRUE) in file "phpThumb.php" on line 160
  * setParameter(config_temp_directory, string(73)  "<redacted_public_path>/phpThumb/cache/") in file "phpThumb.php" on line 160
  * setParameter(config_prefer_imagemagick, TRUE) in file "phpThumb.php" on line 160
  * setParameter(config_imagemagick_use_thumbnail, TRUE) in file "phpThumb.php" on line 160
  * setParameter(config_imagemagick_path, NULL) in file "phpThumb.php" on line 160
  * setParameter(config_max_source_pixels, float       22369621) in file "phpThumb.php" on line 160
  * setParameter(config_output_format, string(4)   "jpeg") in file "phpThumb.php" on line 160
  * setParameter(config_output_maxwidth, integer     0) in file "phpThumb.php" on line 160
  * setParameter(config_output_maxheight, integer     0) in file "phpThumb.php" on line 160
  * setParameter(config_output_interlace, TRUE) in file "phpThumb.php" on line 160
  * setParameter(config_error_image_width, integer     400) in file "phpThumb.php" on line 160
  * setParameter(config_error_image_height, integer     100) in file "phpThumb.php" on line 160
  * setParameter(config_error_message_image_default, string(0)   "") in file "phpThumb.php" on line 160
  * setParameter(config_error_bgcolor, string(6)   "CCCCFF") in file "phpThumb.php" on line 160
  * setParameter(config_error_textcolor, string(6)   "FF0000") in file "phpThumb.php" on line 160
  * setParameter(config_error_fontsize, integer     1) in file "phpThumb.php" on line 160
  * setParameter(config_error_die_on_error, TRUE) in file "phpThumb.php" on line 160
  * setParameter(config_error_silent_die_on_error, FALSE) in file "phpThumb.php" on line 160
  * setParameter(config_error_die_on_source_failure, TRUE) in file "phpThumb.php" on line 160
  * setParameter(config_nohotlink_enabled, TRUE) in file "phpThumb.php" on line 160
  * setParameter(config_nohotlink_valid_domains, array(1) {   [0]=>   string(16) "categoria2.local" } ) in file "phpThumb.php" on line 160
  * setParameter(config_nohotlink_erase_image, TRUE) in file "phpThumb.php" on line 160
  * setParameter(config_nohotlink_text_message, string(38)  "Off-server thumbnailing is not allowed") in file "phpThumb.php" on line 160
  * setParameter(config_nooffsitelink_enabled, TRUE) in file "phpThumb.php" on line 160
  * setParameter(config_nooffsitelink_valid_domains, array(1) {   [0]=>   string(16) "categoria2.local" } ) in file "phpThumb.php" on line 160
  * setParameter(config_nooffsitelink_require_refer, FALSE) in file "phpThumb.php" on line 160
  * setParameter(config_nooffsitelink_erase_image, FALSE) in file "phpThumb.php" on line 160
  * setParameter(config_nooffsitelink_watermark_src, string(26)  "/demo/images/watermark.png") in file "phpThumb.php" on line 160
  * setParameter(config_nooffsitelink_text_message, string(33)  "Image taken from categoria2.local") in file "phpThumb.php" on line 160
  * setParameter(config_border_hexcolor, string(6)   "000000") in file "phpThumb.php" on line 160
  * setParameter(config_background_hexcolor, string(6)   "FFFFFF") in file "phpThumb.php" on line 160
  * setParameter(config_ttf_directory, string(72)  "<redacted_public_path>/phpThumb/fonts") in file "phpThumb.php" on line 160
  * setParameter(config_http_user_agent, string(121) "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36") in file "phpThumb.php" on line 160
  * setParameter(config_disable_pathinfo_parsing, TRUE) in file "phpThumb.php" on line 160
  * setParameter(config_disable_imagecopyresampled, FALSE) in file "phpThumb.php" on line 160
  * setParameter(config_disable_onlycreateable_passthru, TRUE) in file "phpThumb.php" on line 160
  * setParameter(config_disable_realpath, FALSE) in file "phpThumb.php" on line 160
  * setParameter(config_http_fopen_timeout, integer     10) in file "phpThumb.php" on line 160
  * setParameter(config_http_follow_redirect, TRUE) in file "phpThumb.php" on line 160
  * setParameter(config_allow_local_http_src, FALSE) in file "phpThumb.php" on line 160
  * setParameter(config_use_exif_thumbnail_for_speed, FALSE) in file "phpThumb.php" on line 160
  * phpThumb() v1.7.15-202004301145
http://phpthumb.sourceforge.net

Off-server thumbnailing is not allowed in file "phpthumb.class.php" on line 4201
  * setParameter(src, string(514) "<redacted_dropbox_url>") in file "phpThumb.php" on line 396
  * setSourceFilename(<redacted_dropbox_url>) set $this->sourceFilename to "<redacted_dropbox_url>" in file "phpthumb.class.php" on line 302
  * setParameter(w, string(3)   "200") in file "phpThumb.php" on line 396
  * setParameter(h, string(3)   "200") in file "phpThumb.php" on line 396
  * setParameter(zc, string(1)   "1") in file "phpThumb.php" on line 396
  * setParameter(hash, string(32)  "a4bfbddf608ada442eed388e0fc89ea5") in file "phpThumb.php" on line 396
  * setParameter(phpThumbDebug, integer     9) in file "phpThumb.php" on line 396
  * $CanPassThroughDirectly=false because !@is_readable(<redacted_dropbox_url>) in file "phpThumb.php" on line 445
  * $CanPassThroughDirectly=false because $_GET[zc;hash] are set in file "phpThumb.php" on line 479
  * $CanPassThroughDirectly="0" && $phpThumb->src="<redacted_dropbox_url>" in file "phpThumb.php" on line 490
  * $this->cache_filename already set, skipping SetCacheFilename() in file "phpthumb.class.php" on line 3551
  * Cached file "teste" does not exist, processing as normal in file "phpThumb.php" on line 582
  * $phpThumb->src (<redacted_dropbox_url>) is remote image, attempting to download in file "phpThumb.php" on line 628
  * Setting "user_agent" to "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36" in file "phpThumb.php" on line 630
  * CleanUpURLencoding(<redacted_dropbox_url>) returned "<redacted_dropbox_url>" in file "phpThumb.php" on line 634
  * SafeURLread(<redacted_dropbox_url>) succeeded in file "phpThumb.php" on line 638
  * Setting source data from URL "<redacted_dropbox_url>" in file "phpThumb.php" on line 639
  * setSourceData() setting $this->rawImageData (75270 bytes; magic="????" ( 0xff 0xd8 0xff 0xe1)) in file "phpthumb.class.php" on line 311
  * $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;webp;png;jpeg) in file "phpthumb.class.php" on line 1013
  * $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 1024
  * $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 1041
  * ResolveSource() exiting because $this->rawImageData is set (75,270 bytes) in file "phpthumb.class.php" on line 929
  * $this->cache_filename already set, skipping SetCacheFilename() in file "phpthumb.class.php" on line 3551
  * starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3393
  * skipping getimagesize() because !is_null($this->getimagesizeinfo) in file "phpthumb.class.php" on line 3408
  * bypassing EXIF and getimagesize sections because $this->rawImageData is set, and $this->sourceFilename is not set, and source image is not too large for GD (x=0MB) in file "phpthumb.class.php" on line 3423
  * $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1639
  * phpThumb_tempnam() returning "<redacted_public_path>/phpThumb/cache/pThumbtsPYMZ" in file "phpthumb.class.php" on line 4430
  * ImageMagickThumbnailToGD() setting $this->sourceFilename to "<redacted_public_path>/phpThumb/cache/pThumbtsPYMZ" from $this->rawImageData (75270 bytes) in file "phpthumb.class.php" on line 1608
  * ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 2370
  * ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3439
  * SetOrientationDependantWidthHeight() starting with "200"x"200" in file "phpthumb.class.php" on line 3372
  * SetOrientationDependantWidthHeight() setting w="200", h="200" in file "phpthumb.class.php" on line 3388
  * EXIF thumbnail extraction: (size=4042; type="2"; 159x68) in file "phpthumb.class.php" on line 3496
  * starting SourceImageToGD() in file "phpthumb.class.php" on line 3754
  * ImageCreateFromStringReplacement() calling built-in imagecreatefromstring() in file "phpthumb.class.php" on line 4309
  * Not using EXIF thumbnail data because $this->gdimg_source is already set in file "phpthumb.class.php" on line 3822
  * CalculateThumbnailDimensions() starting with [W,H,sx,sy,sw,sh] initially set to [1408,602,,,,] in file "phpthumb.class.php" on line 3244
  * CalculateThumbnailDimensions() starting with [x,y,w,h] initially set to [0,0,1408,602] in file "phpthumb.class.php" on line 3259
  * CreateGDoutput() returning canvas "200x200" in file "phpthumb.class.php" on line 3367
  * ImageResizeFunction($o, $s, 0, 0, 403, 0, 200, 200, 602, 602) in file "phpthumb.class.php" on line 4405
  * memory_get_usage() after copy-resize = 9707624 in file "phpthumb.class.php" on line 434
  * memory_get_usage() after imagedestroy = 4759768 in file "phpthumb.class.php" on line 436
  * AntiOffsiteLinking() - "dl.dropboxusercontent.com" is NOT in $this->config_nohotlink_valid_domains (categoria2.local) in file "phpthumb.class.php" on line 2555
  * ResolveFilenameToAbsolute() prepending $this->config_document_root (<redacted_public_path>/phpThumb) to $filename (/demo/images/watermark.png) resulting in ($AbsoluteFilename = "<redacted_public_path>/phpThumb/demo/images/watermark.png") in file "phpthumb.class.php" on line 1346
  * resolvePath: <redacted_public_path>/phpThumb/demo/images/watermark.png (allowed_dirs: Array
(
)
) in file "phpthumb.class.php" on line 1184
  * resolvePath: iteration, path=<redacted_public_path>/phpThumb/demo/images/watermark.png, base path = <redacted_public_path>/phpThumb in file "phpthumb.class.php" on line 1203
  * open_basedir: "" in file "phpthumb.class.php" on line 1170
  * resolvePath: stop at component 11 in file "phpthumb.class.php" on line 1219
  * resolvePath: stop at path=<redacted_public_path>/phpThumb/demo/images/watermark.png in file "phpthumb.class.php" on line 1222
  * resolvePath: path parsed, over in file "phpthumb.class.php" on line 1228
  * AntiOffsiteLinking() writing 1 lines of text "Image taken from categoria2.local" (in #FF0000) on top of image in file "phpthumb.class.php" on line 2602
  * skipping AlphaChannelFlatten() because !$this->is_alpha in file "phpthumb.class.php" on line 2618
  * GenerateThumbnail() completed successfully in file "phpthumb.class.php" on line 448
  * CleanUpCacheDirectory() set to purge (30.0 days; 10.00 MB; 200 files) in file "phpthumb.class.php" on line 752
  * CleanUpCacheDirectory() skipped because "<redacted_public_path>/phpThumb/cache//phpThumbCacheStats.txt" is recently modified in file "phpthumb.class.php" on line 762
  * resolvePath: <redacted_public_path>/phpThumb/teste (allowed_dirs: Array
(
)
) in file "phpthumb.class.php" on line 1184
  * resolvePath: iteration, path=<redacted_public_path>/phpThumb/teste, base path = <redacted_public_path>/phpThumb in file "phpthumb.class.php" on line 1203
  * resolvePath: stop at component 9 in file "phpthumb.class.php" on line 1219
  * resolvePath: stop at path=<redacted_public_path>/phpThumb/teste in file "phpthumb.class.php" on line 1222
  * resolvePath: path parsed, over in file "phpthumb.class.php" on line 1228
  * imageinterlace($this->gdimg_output, 1) in file "phpthumb.class.php" on line 484
  * RenderOutput() attempting imagejpeg($this->gdimg_output) in file "phpthumb.class.php" on line 487
  * RenderOutput() completing with $this->outputImageData = 5566 bytes in file "phpthumb.class.php" on line 601
  * RenderToFile(<redacted_public_path>/phpThumb/teste) succeeded in file "phpthumb.class.php" on line 630
  * Failed: RenderToFile(teste) in file "phpThumb.php" on line 682

$this->debugtiming:
  * 1588603932.290953 : phpThumb() constructor in file "phpthumb.class.php" on line 236
  * 1588603932.290922 : phpThumb.php start in file "phpThumb.php" on line 127
  * 1588603932.291366 : phpThumbDebug[0] in file "phpThumb.php" on line 219
  * 1588603932.291381 : phpThumbDebug[1] in file "phpThumb.php" on line 279
  * 1588603932.291430 : phpThumbDebug[2] in file "phpThumb.php" on line 381
  * 1588603932.292173 : phpThumbDebug[3] in file "phpThumb.php" on line 417
  * 1588603932.292258 : phpThumbDebug[4] in file "phpThumb.php" on line 484
  * 1588603932.292283 : phpThumbDebug[5] in file "phpThumb.php" on line 571
  * 1588603932.292966 : phpThumbDebug[6] in file "phpThumb.php" on line 587
  * 1588603934.370371 : phpThumbDebug[7] in file "phpThumb.php" on line 652
  * 1588603934.406833 : phpThumbDebug[8] in file "phpThumb.php" on line 662
  * 1588603934.411745 : phpThumbDebug[9] in file "phpThumb.php" on line 695
  * Total processing time: 2.120823

The thumbnail is generated but does not show anything. I would to like to know what and where is returned when accessing phpThumb.php

JamesHeinrich commented 4 years ago

I suspect you have $PHPTHUMB_CONFIG['disable_debug'] = false; in phpThumb.config.php

samuelhgf commented 4 years ago

@JamesHeinrich When setting as true only appears this:

Captura de Tela 2020-05-04 às 12 32 12

When is set to false:

Captura de Tela 2020-05-04 às 12 32 32
JamesHeinrich commented 4 years ago

Your screenshot appears to show an HTML page trying to display an image and possibly not succeeding. Can you right-click on the small square and open the actual image URL? You will probably see some kind of PHP error that is preventing the display of the image.

samuelhgf commented 4 years ago

I am receiving this now:

Captura de Tela 2020-05-04 às 12 49 34

But I do not understand this error when I enable debug

Captura de Tela 2020-05-04 às 12 49 43

Here is my config file... the cache is disabled <removed, not relevant>

JamesHeinrich commented 4 years ago

That warning on line 1050 is caused by config_cache_directory being null. Try playing with the cache_directory config in phpThumb.config.php, the default attempts to auto-set the cache directory but you may need to set it manually to an appropriate value for your system.

samuelhgf commented 4 years ago

@JamesHeinrich But this error is because it is trying to get a array item in a attribute that is a string

JamesHeinrich commented 4 years ago

Strings are arrays of characters. $string[0] will return the first character of the string. But if your case the variable does not contain a string, it is null, and attempting to access a null variable as an array generates the warning you see.