title: Fatal error: Uncaught exception 'Exception' with message 'Invalid product.'
body: <p>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:</p>
  
  <p><a href="https://i.stack.imgur.com/hUZHF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hUZHF.png" alt="enter image description here"></a></p>
  
  <pre><code>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-&gt;read(Object(WC_Product_Bundle)) #1 /home/prikkabelled/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(126): WC_Data_Store-&gt;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-&gt;__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-&gt;__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
  </code></pre>
  
  <p>We've updated the theme to the latest version (<a href="https://themeforest.net/item/electro-electronics-store-woocommerce-theme/15720624" rel="nofollow noreferrer">Electro</a>). We have also updated <a href="https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431" rel="nofollow noreferrer">Visual Composer plugin</a>, WordPress and WooCommerce to latest version.</p>
  
  <p>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.</p>
  
  <p>Any idea what could be the cause?</p>