Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Fatal error
- This topic has 4 replies, 2 voices, and was last updated 7 years, 5 months ago by andrius.
- AuthorPosts
- April 4, 2019 at 7:38 am #5039andriusParticipant
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)April 4, 2019 at 9:01 am #5040Soft79KeymasterHi 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.
April 4, 2019 at 12:43 pm #5041andriusParticipantThis product has deleted.
April 4, 2019 at 4:01 pm #5043Soft79KeymasterOk, 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.
April 5, 2019 at 6:07 am #5059andriusParticipantThank you!
- AuthorPosts
- You must be logged in to reply to this topic.