Topic Resolution: Resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5039
    andrius
    Participant

    Hi,
    we have this error:

    Fatal error: Uncaught Error: Call to a member function get_id() on boolean in /home/xxxx/domains/xxxxx.xx/public_html/wp-content/plugins/woocommerce-auto-added-coupons-pro/pro/plugins/WJECF_Pro_Free_Products/WJECF_Pro_Free_Products.php:605 Stack trace: #0 /home/xxxx/domains/xxxxx.xx/public_html/wp-content/plugins/woocommerce-auto-added-coupons-pro/pro/plugins/WJECF_Pro_Free_Products/WJECF_Pro_Free_Products.php(657): WJECF_Pro_Free_Products->validate_free_product_quantity(false, 1) #1 /home/xxxx/domains/xxxxx.xx/public_html/wp-content/plugins/woocommerce-auto-added-coupons-pro/pro/plugins/WJECF_Pro_Free_Products/WJECF_Pro_Free_Products.php(593): WJECF_Pro_Free_Products->set_free_product_amount_in_cart(4269, 1) #2 /home/xxxx/domains/xxxxx.xx/public_html/wp-content/plugins/woocommerce-auto-added-coupons-pro/includes/class-wjecf-action-or-filter.php(45): WJECF_Pro_Free_Products->update_free_products_in_cart(Object(WC_Cart)) #3 /home/xxxxx/domains/xxxxxx.xx/public_html/wp-includes/cla in /home/xxxxxx/domains/xxxxxx.xx/public_html/wp-content/plugins/woocommerce-auto-added-coupons-pro/pro/plugins/WJECF_Pro_Free_Products/WJECF_Pro_Free_Products.php on line 605

    php 7.2
    wp: 5.1.1
    woo: 3.5.7
    Extended Coupon Features PRO version: (3.0.7)

    #5040
    Soft79
    Keymaster

    Hi Andrius,

    Can you check out if product 4269 exists and is a public product? The coupon tries to add 4269 to the cart but fails at retrieving it from WooCommerce.

    #5041
    andrius
    Participant

    This product has deleted.

    #5043
    Soft79
    Keymaster

    Ok, that’s the culprit. You need to remove the product from the coupon.

    I will add a check for this in the next release, but it will take a while.

    #5059
    andrius
    Participant

    Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.