• 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.3

    Im 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:

    1. WC_Gateway_Affirm->is_available()
      /html/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php:371
    2. WC_Payment_Gateways->get_available_payment_gateways()
      /html/wp-content/plugins/pymntpl-paypal-woocommerce/src/Assets/PayPalDataTransformer.php:32
    3. PaymentPlugins\WooCommerce\PPCP\Assets\PayPalDataTransformer->transform_cart(Object(WC_Cart))
      /html/wp-content/plugins/pymntpl-paypal-woocommerce/src/Assets/AssetDataController.php:111
    4. PaymentPlugins\WooCommerce\PPCP\Assets\AssetDataController->add_default_data()
      /html/wp-content/plugins/pymntpl-paypal-woocommerce/src/Assets/AssetDataController.php:60
    5. PaymentPlugins\WooCommerce\PPCP\Assets\AssetDataController->enqueue_asset_data(”)
      /html/wp-includes/class-wp-hook.php:341
    6. WP_Hook->apply_filters(NULL, Array)
      /html/wp-includes/class-wp-hook.php:365
    7. WP_Hook->do_action(Array)
      /html/wp-includes/plugin.php:522
    8. do_action(‘wp_print_footer…’)
      /html/wp-includes/script-loader.php:2294
    9. wp_print_footer_scripts(”)
      /html/wp-includes/class-wp-hook.php:341
    10. WP_Hook->apply_filters(NULL, Array)
      /html/wp-includes/class-wp-hook.php:365
    11. WP_Hook->do_action(Array)
      /html/wp-includes/plugin.php:522
    12. do_action(‘wp_footer’)
      /html/wp-includes/general-template.php:3213
    13. wp_footer()
      /html/wp-content/themes/flatsome/footer.php:22
    14. require_once(‘/chroot/home/a0…’)
      /html/wp-includes/template.php:814
    15. load_template(‘/chroot/home/a0…’, true, Array)
      /html/wp-includes/template.php:749
    16. locate_template(Array, true, true, Array)
      /html/wp-includes/general-template.php:92
    17. get_footer()
      /html/wp-content/themes/flatsome/woocommerce/checkout/layouts/checkout.php:24
    18. require(‘/chroot/home/a0…’)
      /html/wp-includes/template.php:816
    19. load_template(‘/chroot/home/a0…’, false)
      /html/wp-content/plugins/woocommerce/includes/wc-core-functions.php:285
    20. wc_get_template_part(‘checkout/layout…’, false)
      /html/wp-content/themes/flatsome/page-checkout.php:9
    21. include(‘/chroot/home/a0…’)
      /html/wp-includes/template-loader.php:132
    22. require_once(‘/chroot/home/a0…’)
      /html/wp-blog-header.php:19
    23. require(‘/chroot/home/a0…’)
      /html/index.php:17
    24. {main}
      thrown in /html/wp-content/plugins/woocommerce-gateway-affirm/includes/class-wc-gateway-affirm.php on line 1748
    • This topic was modified 1 week, 6 days ago by thecamerax.

You must be logged in to reply to this topic.