• Hi guys,

    It’s seems that the error lod is comming from yith wc subscription plugin. I don’t know exactly. I’m beginner it.

    Let me tell you a little bit about my website.

    It’s a website to classified listing and I’d like to charge a subscription monthly from my customers for them be allowed post any product thay they want to post. You got it? I’m using the Classified Listing plugin to creati it and Woocomerce plugin to link to paymeny methods.

    Is it possible do this using the free yith wc subscription plugin?

    I’ve tried it, but it bring me this log error below. What does it mean?

    2021-03-21T01:34:14+00:00 CRITICAL Uncaught Error: Call to a member function get_id() on boolean in /home1/classiro/public_html/dev2/wp-content/plugins/yith-woocommerce-subscription/includes/class.yith-wc-subscription.php:158
    Stack trace:
    #0 /home1/classiro/public_html/dev2/wp-content/plugins/yith-woocommerce-subscription/includes/class.yith-wc-subscription.php(245): YITH_WC_Subscription->is_subscription(false)
    #1 /home1/classiro/public_html/dev2/wp-includes/class-wp-hook.php(292): YITH_WC_Subscription->order_formatted_line_subtotal(‘<span class=”wo…’, Object(WC_Order_Item_Product), Object(Automattic\WooCommerce\Admin\Overrides\Order))

    In line 158 has:

    public function is_subscription( $product ) {
    if ( is_numeric( $product ) ) {
    $product = wc_get_product( $product );
    }

    $is_subscription = yit_get_prop( $product, ‘_ywsbs_subscription’ );
    $price_is_per = yit_get_prop( $product, ‘_ywsbs_price_is_per’ );

    return apply_filters( ‘ywsbs_is_subscription’, ( $is_subscription == ‘yes’ && $price_is_per != ” ) ? true : false, $product->get_id() );
    }`

    Thank you for support.

    If you guys need more information, please let me know

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘error log is comming from yith wc subscription plugin’ is closed to new replies.