Title: WooCommerceLogger.php causing issues
Last modified: May 6, 2024

---

# WooCommerceLogger.php causing issues

 *  Resolved [akadoarmory](https://wordpress.org/support/users/akadoarmory/)
 * (@akadoarmory)
 * [2 years ago](https://wordpress.org/support/topic/woocommercelogger-php-causing-issues/)
 * 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 ](https://wordpress.org/support/topic/fatal-error-loggingloggerwoocommercelogger/)
   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 2 years ago by [akadoarmory](https://wordpress.org/support/users/akadoarmory/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwoocommercelogger-php-causing-issues%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [akadoarmory](https://wordpress.org/support/users/akadoarmory/)
 * (@akadoarmory)
 * [2 years ago](https://wordpress.org/support/topic/woocommercelogger-php-causing-issues/#post-17736791)
 * Was able to identify an additional plugin that was causing the issue.
    -  This reply was modified 2 years ago by [akadoarmory](https://wordpress.org/support/users/akadoarmory/).
 *  [derthom](https://wordpress.org/support/users/derthom/)
 * (@derthom)
 * [2 years ago](https://wordpress.org/support/topic/woocommercelogger-php-causing-issues/#post-17736829)
 * Which Plugin was it that was causing the issue?
 *  [Matt Lowe](https://wordpress.org/support/users/squelch/)
 * (@squelch)
 * [2 years ago](https://wordpress.org/support/topic/woocommercelogger-php-causing-issues/#post-17738729)
 * 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.
 *  [Matt Lowe](https://wordpress.org/support/users/squelch/)
 * (@squelch)
 * [2 years ago](https://wordpress.org/support/topic/woocommercelogger-php-causing-issues/#post-17738752)
 * 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/](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 2 years ago by [Matt Lowe](https://wordpress.org/support/users/squelch/).

Viewing 4 replies - 1 through 4 (of 4 total)

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

 * ![](https://ps.w.org/woocommerce-paypal-payments/assets/icon-256x256.png?rev=
   3234615)
 * [WooCommerce PayPal Payments](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-paypal-payments/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [logger](https://wordpress.org/support/topic-tag/logger/)

 * 4 replies
 * 3 participants
 * Last reply from: [Matt Lowe](https://wordpress.org/support/users/squelch/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/woocommercelogger-php-causing-issues/#post-17738752)
 * Status: resolved