Closed samuelhgf closed 4 years ago
I suspect you have
$PHPTHUMB_CONFIG['disable_debug'] = false;
in phpThumb.config.php
@JamesHeinrich When setting as true only appears this:
When is set to false:
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.
I am receiving this now:
But I do not understand this error when I enable debug
Here is my config file... the cache is disabled <removed, not relevant>
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.
@JamesHeinrich But this error is because it is trying to get a array item in a attribute that is a string
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.
I have installed phpThumb and using it correctly as doc. But here is the output of accessing the src generate by phpRhumbUrl in browser
The thumbnail is generated but does not show anything. I would to like to know what and where is returned when accessing phpThumb.php