rosell-dk / webp-express

Wordpress plugin for serving autogenerated WebP images instead of jpeg/png to browsers that supports WebP
GNU General Public License v3.0
229 stars 64 forks source link

jpeg.webp.lossless.webp files not found #571

Open timocouckuyt opened 2 years ago

timocouckuyt commented 2 years ago

Hey guys,

In WP 6.0 with version 0.25.5 of the plugin, we get a lot of these errors in our PHP log files:

[Wed Jun 15 14:53:29.882150 2022] [error] [pid 4146337] mod_proxy_fcgi.c(887): [client CLIENTIP] AH01071: Got error ' PHP message: PHP Warning: filesize(): stat failed for SERVERPATH/wp-content/webp-express/webp-images/uploads/2018/09/photo.jpg.webp.lossless.webp in SERVERPATH/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/AbstractConverter.php on line 216 PHP message: PHP Warning: filesize(): stat failed for SERVERPATH/wp-content/webp-express/webp-images/uploads/2018/09/photo.jpg.webp.lossy.webp in SERVERPATH/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/ConverterTraits/EncodingAutoTrait.php on line 70

The requested extensions seem very weird, for example 'jpg.webp.lossy.webp', and these requested files are not generated on server, generating these errors.

Settings are as follows:

image image image

We got these errors after upgrading from 0.19 today.

Thanks a lot!

// T

lamngockhuong commented 2 years ago

I also got same errors :(

[29-Sep-2022 09:40:45 UTC] PHP Warning:  unlink(SERVERPATH/public_html/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2019/10/favicon-768x768.png.webp.lossy.webp): No such file or directory in SERVERPATH/public_html/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/ConverterTraits/EncodingAutoTrait.php on line 76
[29-Sep-2022 09:40:45 UTC] PHP Warning:  rename(SERVERPATH/public_html/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2019/10/favicon-768x768.png.webp.lossless.webp,SERVERPATH/public_html/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2019/10/favicon-768x768.png.webp): No such file or directory in SERVERPATH/public_html/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/ConverterTraits/EncodingAutoTrait.php on line 77
[29-Sep-2022 09:40:50 UTC] PHP Warning:  filesize(): stat failed for SERVERPATH/public_html/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2019/10/favicon-300x300.png.webp.lossy.webp in SERVERPATH/public_html/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/ConverterTraits/EncodingAutoTrait.php on line 70
[29-Sep-2022 09:40:50 UTC] PHP Warning:  rename(SERVERPATH/public_html/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2019/10/favicon-300x300.png.webp.lossy.webp,SERVERPATH/public_html/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2019/10/favicon-300x300.png.webp): No such file or directory in SERVERPATH/public_html/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/ConverterTraits/EncodingAutoTrait.php on line 73