phpThumb icon indicating copy to clipboard operation
phpThumb copied to clipboard

Images are broken on initial page load php 8.1

Open sks1024 opened this issue 2 years ago • 7 comments

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.

sks1024 avatar Jul 27 '22 18:07 sks1024

I have the same problem too.

Jfmagnet avatar Sep 13 '22 10:09 Jfmagnet

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

sks1024 avatar Sep 13 '22 11:09 sks1024

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 !

Jfmagnet avatar Sep 13 '22 18:09 Jfmagnet

Another problem i have is the cache folder does not follow the culling's functions, nothing is delete in the cache folder now…

Jfmagnet avatar Sep 14 '22 11:09 Jfmagnet

question this is a fix or just a workarround ?

micker avatar Sep 29 '22 07:09 micker

Plesase some news or just need to change params

micker avatar Nov 22 '22 12:11 micker

Related to https://github.com/JamesHeinrich/phpThumb/issues/205. Please see my comment under that issue.

deni2s avatar Jan 17 '23 21:01 deni2s