Fatal error when changing order statuses
-
Hi!
I get a fatal error when changing order statuses to “completed” or “processing” when product in order has been deleted (returns
false
when called).Error I get:
CRITICAL Uncaught Error: Call to a member function is_type() on bool in .../wp-content/plugins/woo-gift-cards-lite/public/class-woocommerce-gift-cards-lite-public.php:858
I have made a temporary fix:
Instead of using isset( $product ) on line 858, it should also check for false values, so that the following check for type
$product->is_type( 'wgm_gift_card' )
would not fail.I changed
isset( $product )
to! empty( $product )
Can you please fix this issue in the next version release?
- The topic ‘Fatal error when changing order statuses’ is closed to new replies.