• Resolved skuenzl

    (@skuenzl)


    Hi, there is a bug, if i delete some Products, and change the order Status, there will be an Error.

    Fehlermeldung: Uncaught Error: Call to a member function get_id() on bool in /wp-content/plugins/woo-min-max-quantity-step-control-single/includes/set_max_min_quantity.php:501

    Can u check it please ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hannan

    (@phpcoderhannan)

    Hello,

    We have checked it but we could not find this error. so please tell us actually which situation you got this error in. Also provide some screenshots.

    After that, we will check it and let you know.

    Thread Starter skuenzl

    (@skuenzl)

    Hello you can see the problem here: https://ibb.co/b3prqqq

    The second product with the error message is no longer available in the shop (was deleted) but of course it is still available in the old order. In the PHP script I saw that an attempt was made to read the ID of the object, which is no longer there. This is where the error message comes from.

    The error is here:
    501:”$product_step = get_post_meta( $product->get_id(), WC_MMQ_PREFIX . ‘product_step’, true);”

    “$product->get_id()” is no longer possible because $product is empty because the product itself is no longer available, so there is no longer an ID.

    Hello,
    I have exactly the same problem on my site.

    Plugin Author Saiful Islam

    (@codersaiful)

    Thanks for your comment. I will fix it asap and will let u know.

    Plugin Author Saiful Islam

    (@codersaiful)

    Hello Everyone. I have fixed that issue and uploaded.
    Please check and let me know please.

    Thanks
    Saiful

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error if change Order with deleted Products’ is closed to new replies.