Cross-posting this for further review. The Inpsyde team responsible for PayPal Payments could not reproduce (though I was able to when the issue was initially reported) so I wanted to share it here to be safe:
We are able to activate the PayPal Payments plugin without issue on a single site, but when network activating the plugin as part of the upgrade flow from PayPal Checkout on a multisite, it can lead to a 500/critical error with the following PHP error in the logs:
Fatal error: Uncaught Error: Call to a member function get_active_api_credentials() on null in /srv/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-compat/src/PPEC/class-ppechelper.php:47
It seems like this only happens as part of an upgrade flow, when we follow the WooCommerce message's notice to upgrade from WooCommerce PayPal Checkout Gateway to WooCommerce PayPal Payments. The behavior was reproducible twice, but I can't reproduce it a third time using the same steps.
Describe the bug
Cross-posting this for further review. The Inpsyde team responsible for PayPal Payments could not reproduce (though I was able to when the issue was initially reported) so I wanted to share it here to be safe:
We are able to activate the PayPal Payments plugin without issue on a single site, but when network activating the plugin as part of the upgrade flow from PayPal Checkout on a multisite, it can lead to a 500/critical error with the following PHP error in the logs:
Fatal error: Uncaught Error: Call to a member function get_active_api_credentials() on null in /srv/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-compat/src/PPEC/class-ppechelper.php:47
It seems like this only happens as part of an upgrade flow, when we follow the WooCommerce message's notice to upgrade from WooCommerce PayPal Checkout Gateway to WooCommerce PayPal Payments. The behavior was reproducible twice, but I can't reproduce it a third time using the same steps.
Full/original issue can be found here:
https://github.com/woocommerce/woocommerce-paypal-payments/issues/326