Home Forums Plugins CURCY – WooCommerce Multi Currency Fatal error in checkout.php line 296 – get_shipping_country() on null

Fatal error in checkout.php line 296 – get_shipping_country() on null

  • Author
    Posts
  • #260583

    We are encountering a fatal error with WooCommerce Multi Currency:

    Call to a member function get_shipping_country() on null

    File: /wp-content/plugins/woocommerce-multi-currency/frontend/checkout.php:296

    The stack trace shows save_shipping_country() is triggered during WC_Checkout->get_checkout_fields() via the PaymentPlugins PayPal for WooCommerce plugin, and it can occur even on non-checkout pages (404 template).

    It appears WC()->customer is null when the method runs. A null check around the customer object resolves the fatal error temporarily.

    Please advise on the compatibility fix for the current WooCommerce versions.

You must be logged in to see replies to this topic. Click here to login or register