• 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
    Additional context
    {
    "error": {
    "type": 64,
    "file": "/home/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/woocommerce-logging/src/Logger/WooCommerceLogger.php",
    "line": 58
    },
    "remote-logging": true,
    "backtrace": [
    {
    "file": "/home/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php",
    "line": 411,
    "function": "critical",
    "class": "WC_Logger",
    "type": "->"
    },
    {
    "function": "log_errors",
    "class": "WooCommerce",
    "type": "->"
    }
    ]
    }

    PHP version 8.2.27

    Plugin version: 2.9.6

Viewing 2 replies - 1 through 2 (of 2 total)
  • I get exactly the same here. I woke up this morning to find out website was down because of line 58 in file “woocommerce-paypal-payments/modules/woocommerce-logging/src/Logger/WooCommerceLogger.php”

    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 /web/wp-content/plugins/woocommerce-paypal-payments/modules/woocommerce-logging/src/Logger/WooCommerceLogger.php on line 58

    For now, we’ve rolled back to version 2.9.4 and that’s sidestepped the problem.

    As a note, the website runs about 50 plugins, and woocommerce-paypal-payments is the only plugin where updates crash the site at least twice a year. Can you please look into improving your pre-launch testing.

    • This reply was modified 1 month, 2 weeks ago by Paul.
    Thread Starter embercide

    (@embercide)

    @headwall thankfully I’m not the only one!

    • This reply was modified 1 month, 2 weeks ago by embercide.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Critical error which triggered recovery mode’ is closed to new replies.