• Resolved Oliver

    (@kr2k)


    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?

Viewing 1 replies (of 1 total)
  • Plugin Author WP Swings

    (@wpswings)

    Hello,

    Thanks for pointing out the issue,

    Our team will fix this in our next coming update.

    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error when changing order statuses’ is closed to new replies.