• Resolved olwpguy

    (@olwpguy)


    Hi,

    We’re getting the following errors:

    [19-Aug-2022 12:23:57 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /home/giostock/public_html/wp-content/plugins/woo-stripe-payment/includes/abstract/abstract-wc-payment-gateway-stripe.php:1690
    Stack trace:
    #0 /home/giostock/public_html/wp-content/plugins/woo-stripe-payment/includes/abstract/abstract-wc-payment-gateway-stripe.php(1476): WC_Payment_Gateway_Stripe->get_formatted_shipping_methods()
    #1 /home/giostock/public_html/wp-content/plugins/woo-stripe-payment/includes/abstract/abstract-wc-payment-gateway-stripe.php(249): WC_Payment_Gateway_Stripe->output_display_items('product')
    #2 /home/giostock/public_html/wp-content/plugins/woo-stripe-payment/templates/product/payment-methods.php(12): WC_Payment_Gateway_Stripe->product_fields()
    #3 /home/giostock/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/giostock/...')
    #4 /home/giostock/public_html/wp-content/plugins/woo-stripe-payment/includes/wc-stripe-functions.php(15): wc_get_template('product/payment...', Array, 'woo-stri in /home/giostock/public_html/wp-content/plugins/woo-stripe-payment/includes/abstract/abstract-wc-payment-gateway-stripe.php on line 1690

    Woo version: Version 6.8.1 |
    Plugin Version: Version 3.3.25
    WP Version: Current version: 6.0.1

    Can you let me know what we can do to solve this?

    • This topic was modified 3 years, 10 months ago by olwpguy.
Viewing 1 replies (of 1 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @olwpguy

    That error is being triggered because your WooCommerce Session object is null which should never be the case for a frontend request.

    Do you have any custom code on your site?

    Have you attempted to find a plugin conflict?

    The WooCommerce session is always initialized for frontend requests by WooCommerce unless some other code is preventing that from happening.

    Kind Regards,

Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal error: Uncaught Error: Call to a member function get()’ is closed to new replies.