phpThumb
phpThumb copied to clipboard
Images are broken on initial page load php 8.1
Images are broken on initial page load of new image until a page refresh is done. Only happens on php 8.1 not on 8.0 I have tried this test on different servers with php 8.1 and this is the result. Cache directory does fill up, but the image is broken in browser.
I have the same problem too.
I found a fix for now. Change this line in the config file from 'true' to 'false' and give it a try. Clear cache directory to let app make fresh cache files as well.
$PHPTHUMB_CONFIG['cache_force_passthru'] = true; //This is default. Change it to true
I found a fix for now. Change this line in the config file from 'true' to 'false' and give it a try. Clear cache directory to let app make fresh cache files as well.
$PHPTHUMB_CONFIG['cache_force_passthru'] = true; //This is default. Change it to true
Your fix works well for me thanks !
Another problem i have is the cache folder does not follow the culling's functions, nothing is delete in the cache folder now…
question this is a fix or just a workarround ?
Plesase some news or just need to change params
Related to https://github.com/JamesHeinrich/phpThumb/issues/205. Please see my comment under that issue.