PHP Error: Call to a member function get_total() on false
-
Fatal error: Uncaught Error: Call to a member function get_total() on false in /html/wp-content/plugins/woocommerce-gateway-affirm/includes/class-wc-gateway-affirm.php:1748
WordPress 6.9.4
WooCommerce 10.4.3
Plugin Version 3.0.4
PHP 8.3Im keep getting this error in my PHP log several times a day and it seems to happen when a customer cancels an Affirm inquiry process for an order (not 100% sure about this yet). The plugin is working perfectly the rest of the time with transactions going through successfully.
This is a Stack Trace example:
- WC_Gateway_Affirm->is_available()
/html/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php:371 - WC_Payment_Gateways->get_available_payment_gateways()
/html/wp-content/plugins/pymntpl-paypal-woocommerce/src/Assets/PayPalDataTransformer.php:32 - PaymentPlugins\WooCommerce\PPCP\Assets\PayPalDataTransformer->transform_cart(Object(WC_Cart))
/html/wp-content/plugins/pymntpl-paypal-woocommerce/src/Assets/AssetDataController.php:111 - PaymentPlugins\WooCommerce\PPCP\Assets\AssetDataController->add_default_data()
/html/wp-content/plugins/pymntpl-paypal-woocommerce/src/Assets/AssetDataController.php:60 - PaymentPlugins\WooCommerce\PPCP\Assets\AssetDataController->enqueue_asset_data(”)
/html/wp-includes/class-wp-hook.php:341 - WP_Hook->apply_filters(NULL, Array)
/html/wp-includes/class-wp-hook.php:365 - WP_Hook->do_action(Array)
/html/wp-includes/plugin.php:522 - do_action(‘wp_print_footer…’)
/html/wp-includes/script-loader.php:2294 - wp_print_footer_scripts(”)
/html/wp-includes/class-wp-hook.php:341 - WP_Hook->apply_filters(NULL, Array)
/html/wp-includes/class-wp-hook.php:365 - WP_Hook->do_action(Array)
/html/wp-includes/plugin.php:522 - do_action(‘wp_footer’)
/html/wp-includes/general-template.php:3213 - wp_footer()
/html/wp-content/themes/flatsome/footer.php:22 - require_once(‘/chroot/home/a0…’)
/html/wp-includes/template.php:814 - load_template(‘/chroot/home/a0…’, true, Array)
/html/wp-includes/template.php:749 - locate_template(Array, true, true, Array)
/html/wp-includes/general-template.php:92 - get_footer()
/html/wp-content/themes/flatsome/woocommerce/checkout/layouts/checkout.php:24 - require(‘/chroot/home/a0…’)
/html/wp-includes/template.php:816 - load_template(‘/chroot/home/a0…’, false)
/html/wp-content/plugins/woocommerce/includes/wc-core-functions.php:285 - wc_get_template_part(‘checkout/layout…’, false)
/html/wp-content/themes/flatsome/page-checkout.php:9 - include(‘/chroot/home/a0…’)
/html/wp-includes/template-loader.php:132 - require_once(‘/chroot/home/a0…’)
/html/wp-blog-header.php:19 - require(‘/chroot/home/a0…’)
/html/index.php:17 - {main}
thrown in /html/wp-content/plugins/woocommerce-gateway-affirm/includes/class-wc-gateway-affirm.php on line 1748
- WC_Gateway_Affirm->is_available()
You must be logged in to reply to this topic.