-
Notifications
You must be signed in to change notification settings - Fork 5
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
500 err , when enabled "Convert to Webp or Avif" #164
Comments
As suggested by the error message, the problem comes from the provided image. |
i think this happen when generate webp for GIF images. |
mr Thierry , also when enabled CSS proccess get this error: |
can you provide more details in a separate issue (File name and line number at least please. |
|
maybe, let's say tomorrow |
so about problem CSS ? |
I need you to provide more details like you did with this issue. I need the file name and line unmber at least |
check the error log file |
about Convert webp log: ` Warning: imagesx() expects parameter 1 to be resource, null given in /var/www/vhosts/site.eu/test.site.eu/plugins/system/gzip/lib/Potracio/Potracio.php on line 180 Warning: imagesy() expects parameter 1 to be resource, null given in /var/www/vhosts/site.eu/test.site.eu/plugins/system/gzip/lib/Potracio/Potracio.php on line 181 Notice: Uninitialized string offset: 4 in /var/www/vhosts/site.eu/test.site.eu/plugins/system/gzip/helpers/Images.php on line 495 Warning: Division by zero in /var/www/vhosts/site.eu/test.site.eu/plugins/system/gzip/lib/Image/Image.php on line 334 Warning: imagesx() expects parameter 1 to be resource, null given in /var/www/vhosts/site.eu/test.site.eu/plugins/system/gzip/lib/Image/Image.php on line 312 Warning: imagecopyresampled() expects parameter 1 to be resource, null given in /var/www/vhosts/site.eu/test.site.eu/plugins/system/gzip/lib/Image/Image.php on line 655 Warning: imagecreatetruecolor() expects parameter 2 to be int, float given in /var/www/vhosts/site.eu/test.site.eu/plugins/system/gzip/lib/Image/Image.php on line 649 Warning: imagesy() expects parameter 1 to be resource, null given in /var/www/vhosts/site.eu/test.site.eu/plugins/system/gzip/lib/Image/Image.php on line 313 |
I guess you image is corrupted in some way. I will fix that as well |
can you try this and let me know if your problems are solved? https://github.com/tbela99/gzip/archive/refs/heads/v.next.zip |
yes, problem solved.thank you |
you can tell the plugin to ignore specific javascript and css. check the documentation here https://tbela99.github.io/gzip/#/./javascript?id=process-javascript https://tbela99.github.io/gzip/#/./css?id=parse-critical-css |
more generally, I see that you use speedcache. I think that it is redundant, as you can already manage css with this plugin. |
If your problem is fixed, can you close this issue? |
in Speedcache i used just " Group CSS " and " Group JS" . if disable it , and then enabled just " Process CSS " --> make bad score in LCP and CLS . do you have any idea? |
You already have it covered with merge Javascript and merge CSS options: |
Note: when i disabled Gzip plugin i achieved 85% in mobile and 97% in desktop on google pagespeed,(i attached screen) https://prnt.sc/9kdq1-iBZYWn Thankful |
I noticed that you use animated GIF, I am not sure whether the conversion will preserve the animation. I will probably add a feature to enable conversion for individual file types. were you expecting GIF images to be converted? |
I cannot reproduce the issue. I guess, it probably happened because many extensions were trying to do the same thing. |
thanks |
… hit when file modification time changes too often
Fix image processing and CSS parsing/rendering issues #164 fix fatal error and notices when processing invalid images 58c2562 #164 fix multiple bugs 60fafa3 #164 change version number d58b45b fix merge conflict #164 873f692 #164 incorrectly parsing @charset 82ed83a #164 compute file hash only based on its content to avoid performance… af51a11 #164 revert the change. the hash computation method is configurable t… 79e7040 #164 fix CSS bugs 6823eac load critical css generator only when required #164
fixed! Thank you for your contribution. |
hi @tbela99
when Enabled "Convert to Webp or Avif" in Image tab. website get 500 Error. in error report :
Fatal error: Paletter image not supported by webp in /var/www/vhosts/site/test.com/plugins/system/gzip/helpers/Images.php on line 367
gzip/helpers/Images.php
Line 367 in e17586a
can you help me to fix it? thanks
I used php8.1 support webp (not support Avif)
The text was updated successfully, but these errors were encountered: