Fatal Error on subscription renewal
-
We are seeing that some WooCommerce Subscription renewals are hitting a fatal error with Cartflows when using the Google Tracking data feature. Here is the error:
[23-Feb-2021 15:20:10 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_cart_contents_total() on null in /public_html/wp-content/plugins/cartflows/classes/class-cartflows-tracking.php:135
Stack trace:
#0 /public_html/wp-content/plugins/cartflows/classes/class-cartflows-tracking.php(113): Cartflows_Tracking::get_ga_purchase_transactions_data(753929, Array)
#1 /public_html/wp-content/plugins/cartflows/classes/class-cartflows-frontend.php(105): Cartflows_Tracking::send_ga_data_if_enabled(753929)
#2 /public_html/wp-includes/class-wp-hook.php(287): Cartflows_Frontend->redirect_to_thankyou_page(‘https://thebala…’, Object(Automattic\WooCommerce\Admin\Overrides\Order))
#3 /public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters(‘https://thebala…’, Array)
#4 /public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(1585): apply_filters(‘woocommerce_get…’, ‘https://thebala…’, Object(Automattic\WooCommerce\Admin\Overrides\Order in /public_html/wp-content/plugins/cartflows/classes/class-cartflows-tracking.php on line 135
- The topic ‘Fatal Error on subscription renewal’ is closed to new replies.