• We are getting this fatal error when trying to save the gift card product in the wordoress dashboard:

    “Fatal error: Uncaught Exception: Invalid product. in /home/wildandwood/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:167 Stack trace: #0 /home/wildandwood/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Product_Data_Store_CPT->read(Object(WC_Product_Gift_Card)) #1 /home/wildandwood/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(137): WC_Data_Store->read(Object(WC_Product_Gift_Card)) #2 /home/wildandwood/public_html/wp-content/plugins/yith-woocommerce-gift-cards/lib/class-yith-wc-product-gift-card.php(40): WC_Product->__construct(38960) #3 /home/wildandwood/public_html/wp-content/plugins/yith-woocommerce-gift-cards/lib/class-yith-ywgc-backend.php(380): WC_Product_Gift_Card->__construct(38960) #4 /home/wildandwood/public_html/wp-content/plugins/yith-woocommerce-gift-cards/lib/class-yith-ywgc-backend.php(441): YITH_YWGC_Backend->save_gift_card_data(38960) #5 /home/wildandwood/public_html/wp-includ in /home/wildandwood/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php on line 167”

    Can you identify why?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello there,

    I have tried in my local installation and I could save the Gift Card product correctly.

    I suggest you install WooCommerce and Gift Cards right from the start since it’s a basic option and should not fail.

    Have a nice day!

    Actually, it seems I get exactly the same error.
    Has the issue been resolved? Did a reinstall help?

    Same ERROR
    We are getting this fatal error when trying to save the gift card product in our store.
    This plugins is not work properly, pls check.

    Error Details
    =============
    An error of type E_ERROR was caused in line 167 of the file /public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php. Error message: Uncaught Exception: Invalid product. in /public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:167
    Stack trace:
    #0 /public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Product_Data_Store_CPT->read(Object(WC_Product_Gift_Card))
    #1 /public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(137): WC_Data_Store->read(Object(WC_Product_Gift_Card))
    #2 /public_html/wp-content/plugins/yith-woocommerce-gift-cards/lib/class-yith-wc-product-gift-card.php(40): WC_Product->__construct(41872)
    #3 /public_html/wp-content/plugins/yith-woocommerce-gift-cards/lib/class-yith-ywgc-backend.php(383): WC_Product_Gift_Card->__construct(41872)
    #4 /public_html/wp-co

    Can you identify why?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error when saving a gift card product’ is closed to new replies.