Fatal PHP error in SubscriptionHelper
-
Hi
A client is experiencing the following fatal PHP error:
PHP Fatal error: Uncaught Error: Call to a member function get_type() on false in /web/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-subscriptions/src/Helper/SubscriptionHelper.php:183I think we need to check if
$productis really an instance ofWC_Product, otherwise the subsequent call to$product->get_type()fails hard.For reference, this client’s site isn’t even running the WooCommerce subscriptions plugin. So why is this code even being called? Can we just switch out the PayPal Subscription module when it’s not needed?
Paul
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.