• Resolved Pexle Chris

    (@pexlechris)


    [02-Dec-2021 20:00:06 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_id() on bool in /mysite/wp-content/plugins/yith-woocommerce-subscription/includes/class.yith-wc-subscription.php:158
    Stack trace:
    #0 /mysite/wp-content/plugins/yith-woocommerce-subscription/includes/class.yith-wc-subscription.php(245): YITH_WC_Subscription->is_subscription(false)
    #1 /mysite/wp-includes/class-wp-hook.php(287): YITH_WC_Subscription->order_formatted_line_subtotal(‘<span class=”wo…’, Object(WC_Order_Item_Product), Object(Automattic\WooCommerce\Admin\Overrides\Order))
    #2 /mysite/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘<span class=”wo…’, Array)
    #3 /mysite/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(1900): apply_filters(‘woocommerce_ord…’ in /mysite/wp-content/plugins/yith-woocommerce-subscription/includes/class.yith-wc-subscription.php on line 158

    I get this error. In which cases this error can be happened?

    • This topic was modified 3 years, 3 months ago by Pexle Chris.
    • This topic was modified 3 years, 3 months ago by Pexle Chris.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Carlos M

    (@cjmora)

    Hi @pexlechris,

    This error arises because the product from some order has been deleted.
    However, you have a very old version of the plugin, you should keep it updated.

    Regarding the error, I have reported the developers to add a check to the next release that will prevent this error when a product is deleted. Thank you.

    Thread Starter Pexle Chris

    (@pexlechris)

    ok thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error’ is closed to new replies.