CRITICAL Uncaught Error on get_billing_country()
-
CRITICAL Uncaught Error: Call to a member function
get_billing_country()
on nullGetting this error with the POS plugin. Reason get_icon function is being called in backend and you have a filter is hooked with get_icon filter of woocommerce and in your filter, you have used this function
WC_Checkoutcom_Utility::get_alternative_payment_methods()
in that function WC()->customer is null and get_billing_country() is being called on null so this is causing the issue.
Please add the null or empty check before calling the WC()->customer->get_billing_country() to avoid this conflict.
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘CRITICAL Uncaught Error on get_billing_country()’ is closed to new replies.