Pijushgupta / avif-express

Wordpress plugin to convert jpg,png and webp to avif and render them
GNU General Public License v2.0
3 stars 2 forks source link

500 wordpress error after updating #9

Closed Joonas12334 closed 2 weeks ago

Joonas12334 commented 2 weeks ago

update 19.06.2024 breaks my site with an unrecoverable fatal server error 500.

reversed back to 28.06.2023 from snapshot which is just fine.

Pijushgupta commented 2 weeks ago

can you please share more info about the same, Like php version , wordpress version and more details about the error.

Joonas12334 commented 2 weeks ago

Site info: https://i.imgur.com/FyrVSXb.png Server info: https://i.imgur.com/O2donWF.png

This error seems to pop up after updating the plugin `

2024/06/22 13:28:57 | stdout | [Sat Jun 22 10:28:57.527104 2024] [php:error] [pid 21] [client 81.90.114.35:0] PHP Fatal error:  Declaration of WooCommerce\\WooCommerce\\Logging\\Logger\\WooCommerceLogger::log($level, $message, array $context = []) must be compatible with Psr\\Log\\LoggerTrait::log($level, Stringable\|string $message, array $context = []): void in /var/www/html/wp-content/plugins/woocommerce-paypal-payments/modules/woocommerce-logging/src/Logger/WooCommerceLogger.php on line 58, referer: https://site.eu/wp-admin/plugins.php -- | -- | --

`

Also i'm using breakdance builder with wp rocket cache

Pijushgupta commented 2 weeks ago

Awesome, please wait 1-2 hrs, pushing new update to wordpress repository with the fix.
The issue is with woocoomerce logger. This Avif express plugin also using psr/log as dependency for monolog as woocommerce logger. Removing monolog in favor of deafult php error_log function. Since monolog requires php ver >= 8.1

Please close this issue if the issue get fixed by the update

Joonas12334 commented 2 weeks ago

Perfect! It works now. Thank you so much for the awesome plugin!