# WooCommerce PayPal plugin 2.9.5: Error Declaration of WooCommerce\WooCommerce\Logging\Logger\WooCommerceLogger::log

**URL:** https://discourse.roots.io/t/woocommerce-paypal-plugin-2-9-5-error-declaration-of-woocommerce-woocommerce-logging-logger-woocommercelogger-log/28993
**Category:** sage
**Tags:** woocommerce
**Created:** 2024-12-10T13:12:54Z
**Posts:** 3

## Post 1 by @dangelion — 2024-12-10T13:12:54Z

We got this error after upgrading WooCommerce PayPal plugin to 2.9.5.  
Anyone can help?

Wordpress 6.7.1  
WooCommerce 9.4.3

[![](https://i.postimg.cc/gcNbqqPf/Screenshot-2024-12-10-alle-14-06-22.jpg) ](https://i.postimg.cc/gcNbqqPf/Screenshot-2024-12-10-alle-14-06-22.jpg)

```
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
```

---

## Post 2 by @Log1x — 2024-12-10T13:58:43Z

I believe this plugin is on our compatibility page with a workaround: [Compatibility | Acorn Docs | Roots](https://roots.io/acorn/docs/compatibility/)

---

## Post 3 by @stefanreinprecht — 2024-12-12T11:16:46Z

@dangelion I can confirm the solution/workaround @Log1x provided. downgrading `psr/log` to v2 gets things working again.
