Fatal error: Uncaught exception ‘Exception’ with message ‘Invalid product.’

enter image description here

When trying to edit a Page in one of our WordPress sites, some pages load normally and are editable however some pages are showing an error in one of the theme modules. This is what we see:

Fatal error: Uncaught exception 'Exception' with message 'Invalid product.' in /home/prikkabelled/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:133 Stack trace: #0 /home/prikkabelled/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(143): WC_Product_Data_Store_CPT->read(Object(WC_Product_Bundle)) #1 /home/prikkabelled/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(126): WC_Data_Store->read(Object(WC_Product_Bundle)) #2 /home/prikkabelled/public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-product-bundle.php(117): WC_Product->__construct('7854') #3 /home/prikkabelled/public_html/wp-content/plugins/woocommerce-product-bundles/includes/admin/meta-boxes/class-wc-pb-meta-box-product-data.php(136): WC_Product_Bundle->__construct('7854') #4 [internal function]: WC_PB_Meta_Box_Product_Data::product_data_tabs(Array) #5 /home/prikkabelled/public_html/wp-includes/class-wp-hook.php(298): call in /home/prikkabelled/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php on line 133

We’ve updated the theme to the latest version (Electro). We have also updated Visual Composer plugin, WordPress and WooCommerce to latest version.

Strange thing is that just some pages are showing this error in page edit mode while on the frontend, the pages look normal. This error is preventing us from editing the page in any way.

Any idea what could be the cause?

Read more here: Fatal error: Uncaught exception ‘Exception’ with message ‘Invalid product.’

Leave a Reply

Your email address will not be published. Required fields are marked *