Home Forums Plugin Support Others dokan subscription.php error line 394

This topic contains 3 replies, has 2 voices, and was last updated by  Nayem 4 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #40040

    pry de
    Member
    Post count: 57

    Dokan subscription error

    This is the error showing when I'm pressing update in subscription page

    “Fatal error: Call to a member function get_checkout_url() on a non-object in C:\wamp\www\wordpress02\wp-content\plugins\wedevs-dokan-subscription\dokan-product-subscription.php on line 394”

    when I check the line here is the 394 line:
    line 394: $checkout_url = WC()->cart->get_checkout_url();

    here is the complete function code, what seems to be the problem error

    ` function shortcode_handler() {
    global $post;

    $checkout_url = WC()->cart->get_checkout_url();
    $user_id = get_current_user_id();
    $product = get_product( get_user_meta( $user_id, ‘product_package_id', true ) );
    $order_id = get_user_meta( $user_id, ‘product_order_id', true );

    $args = array(
    ‘post_type' => ‘product',
    ‘tax_query' => array(
    array(
    ‘taxonomy' => ‘product_type',
    ‘field' => ‘slug',
    ‘terms' => ‘product_pack'
    )
    )
    );

    $query = new WP_Query( $args );

    ob_start();

    ?>`

    #40070

    Nayem
    Moderator
    Post count: 6480

    Hello Pry de,

    Thank you for your information. We have released a new update of Dokan Subscription add-on. We did not get any complain from that version. So please update to the latest version of subscription.

    Thank you ๐Ÿ™‚

    #40101

    pry de
    Member
    Post count: 57

    Hi, ok thankyou.

    have you also fix the bug issue in dokan plugin regarding product edit short description?
    because sellers have to press enter before their description will go 2nd line, if the continue typing , it will be a straight line. same goes with description.

    #40116

    Nayem
    Moderator
    Post count: 6480

    Hello Pry de,

    There was a line break problem in the description field. We have already fixed that. Those fix will be available in our new update of pro version.

    Thank you ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘dokan subscription.php error line 394’ is closed to new replies.