Sorry no solution. We spent time again today trying to reproduce the behavior using the latest versions of WordPress, WooCommerce, Elementor and Product Add-ons.
As you can see from this video:
https://www.loom.com/share/c7cda78701b74850a0bcfdb226d79330
The behavior is working with no errors. Unfortunately, we are unable to reproduce the behavior and without reproducing we don’t have a fix to provide.
The log you shared indicates an issue with product_id. We suspect something related to product_ids on your site is causing the conflict, which would be difficult for us to reproduce. Have you tried to delete and recreate the product? or does it occur for all products?
Instead of using the Product Add-on tab under the Product Details page, if you use the settings under WooCommerce > Add-on Groups, can you modify and edit those settings and options without the error?
Thread Starter
ozil23
(@ozil23)
even with that plugin disable Im getting error only when elementor is disable I dont see any error
the error that is showing
Fatal error: Uncaught Exception: Invalid product. in /home/amareliving/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:165 Stack trace: #0 /home/amareliving/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Product_Data_Store_CPT->read(Object(WC_Product)) #1 /home/amareliving/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(135): WC_Data_Store->read(Object(WC_Product)) #2 /home/amareliving/public_html/wp-content/plugins/product-add-ons-woocommerce/includes/Frontend/Product.php(366): WC_Product->__construct(Object(WP_Post)) #3 /home/amareliving/public_html/wp-content/plugins/product-add-ons-woocommerce/includes/Frontend/Product.php(340): ZAddons\Frontend\Product->wc_tab_addons(Object(WP_Post)) #4 /home/amareliving/public_html/wp-includes/class-wp-hook.php(287): ZAddons\Frontend\Product->ZAddons\Frontend\{closure}(”) #5 /home/amareliving/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_f in /home/amareliving/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php on line 165