You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If $order->get_product_from_item($values); returns false, "Place order" will fail with an error 500.
The check is done above if (is_object($product)) but not at line 195.
The produced error is: Fatal error: Uncaught Error: Call to a member function is_type() on boolean
The text was updated successfully, but these errors were encountered:
Sometimes the order doesn't contain an actual WC product (custom datastore), therefore $product is "false". Just make a check is_object($product) above and it should fix the problem.
paypal-woocommerce/classes/wc-gateway-calculations-angelleye.php
Line 195 in 9d01903
If
$order->get_product_from_item($values);
returns false, "Place order" will fail with an error 500.The check is done above
if (is_object($product))
but not at line 195.The produced error is:
Fatal error: Uncaught Error: Call to a member function is_type() on boolean
The text was updated successfully, but these errors were encountered: