• Resolved akadoarmory

    (@akadoarmory)


    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.

    • This topic was modified 1 year, 11 months ago by akadoarmory.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter akadoarmory

    (@akadoarmory)

    Was able to identify an additional plugin that was causing the issue.

    • This reply was modified 1 year, 11 months ago by akadoarmory.

    Which Plugin was it that was causing the issue?

    Really not helpful to announce you fixed the problem yourself without saying what the root cause was!

    I’ve just tracked this down on one of the sites I manage to a conflict with the APCu Manager plugin: with it activated I cannot run WooCommerce PayPal Payments without it triggering a fatal error. With APCu Manager plugin deactivated I can enable it just fine.

    Additional to the above, the author of the APCu Manager plugin has some more details here:

    https://wordpress.org/support/topic/whats-the-hell-happening-with-the-3-8-x-update/

    I followed his instructions and fully removed the plugin then reinstalled it from the directory and, sure enough, the issue seems to be resolved.

    Edit: sorry, no. Reinstalling it resets its settings, which means it’s installed but inactive until you flip a setting. Flipping that setting causes the issue to reappear. My advice is to remove APCu Manager and seek an alternative.

    • This reply was modified 1 year, 11 months ago by Matt Lowe.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WooCommerceLogger.php causing issues’ is closed to new replies.