WooCommerceLogger.php causing issues | WordPress.org

[ad_1]

Hello!

I’ve got the following error message that came up out of nowhere, crippling our e-commerce site.

An error of type E_COMPILE_ERROR was caused in line 58 of the file /home1/sqwwsdmy/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/woocommerce-logging/src/Logger/WooCommerceLogger.php. Error message: 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

I saw in a different thread here that the PHP version isn’t compatible, but I’ve gone through and dropped the php version of the site to 8.1 and no change.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer