Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images are broken on initial page load php 8.1 #189

Open
sks1024 opened this issue Jul 27, 2022 · 7 comments
Open

Images are broken on initial page load php 8.1 #189

sks1024 opened this issue Jul 27, 2022 · 7 comments

Comments

@sks1024
Copy link

sks1024 commented Jul 27, 2022

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.

@Jfmagnet
Copy link

I have the same problem too.

@sks1024
Copy link
Author

sks1024 commented Sep 13, 2022

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

@Jfmagnet
Copy link

Jfmagnet commented Sep 13, 2022

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
Copy link

Jfmagnet commented Sep 14, 2022

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

@micker
Copy link

micker commented Sep 29, 2022

question this is a fix or just a workarround ?

@micker
Copy link

micker commented Nov 22, 2022

Plesase some news or just need to change params

@deni2s
Copy link
Contributor

deni2s commented Jan 17, 2023

Related to #205. Please see my comment under that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants