-
Notifications
You must be signed in to change notification settings - Fork 29
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
php 8 - not saving to cache #72
Comments
I'm currently facing the same problem. Did you find a solution for this? |
PHP 8 was also causing me problems with the Collections extra so I'm afraid I went back to PHP 7.4 for the moment. Although I manage pretty well with simple PHP snippets, my knowledge is not good enough to find the problems in other code so I expect I'll try again in a few months hoping someone cleverer than me has solved the problem meanwhile. |
I just noticed this problem too. Thumbnails are not being generated and cached after switching to PHP 8.0. Is the issue mainly from Resizer and PHP 8.0? |
This is Resizer issue on PHP 8! On Modx 3.0.3, PHP 8.1 and resizer-2.0.1-dev (Laragon windows) no errors in console. But ALL output paths are directly to originals, not cached images. On PHP 7.4 paths are correct. |
Hello, Host: IONOS Germany
Host: All-Inkl
On IONOS is Imagick not avaible, so it use GD. If i changed to GD on the working Host it also failed. Maybe it is a problem width GD? |
After looking deeper into that i found a solution for IONOS and GD Lib.
Now it seems to work with pThumb, Resizer and GD ✅ The pThumb Extra uses Reductionist and Imagine under the hood. Reductionist should be work fine on PHP8, because there is only a "problem" for the memory_limit calculation when set on -1. For Imagine is a newer Version with PHP8 support ready and should be updated? I will have a deeper look into it later ⌛ |
This issue has been mentioned on MODX Community. There might be relevant details there: https://community.modx.com/t/pthumb-resizer-and-modx-3/6366/7 |
After upgrading to php 8 (modx 2.84 or 3.0 or 3.01), I'm getting the following error - the images are all showing up on the page, but the cache is empty. All was working fine on php7.4. Any ideas?
[2022-06-04 16:33:17] (ERROR @ /homepages/[account-num]/htdocs/core/components/phpthumbof/model/phpthumbof.class.php : 156) [pThumb] Resource: 1 || Image: assets/images/header-new-17.jpg
Could not cache thumbnail to file at: /homepages/[account-num]/htdocs/assets/image-cache/header-new-17.c86d3627.jpg
Resizer debug output:
[0] => Resizer v1.0.1
[1] => Using GD
[2] => Input file: assets/images/header-new-17.jpg
[3] => Input options:
'f' => 'jpeg'
[4] => *** Error *** Unable to open image assets/images/header-new-17.jpg
The text was updated successfully, but these errors were encountered: