Uncaught critical error being triggered after last update
-
Since the last update our Woocommerce error logs are filling up with fatal errors being triggered by the Paypal payments plugin. Here is the error and stack trace with the domain information replaced by ..
Please advise on how to fix.
2022-04-20T17:17:49+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_total() on null in ../wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php:1127
Stack trace:
#0 ../wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(378): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->is_cart_price_total_zero()
#1 ../wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(195): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->render_button_wrapper_registrar()
#2 ../wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/ButtonModule.php(56): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->render_wrapper()
#3 ../wp-includes/class-wp-hook.php(307): WooCommerce\PayPalCommerce\Button\ButtonModule::WooCommerce\PayPalC in ../wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php on line 1127
- The topic ‘Uncaught critical error being triggered after last update’ is closed to new replies.