Title: database error Table doesn&#8217;t exist for query
Last modified: November 29, 2021

---

# database error Table doesn’t exist for query

 *  Resolved [paulrclark](https://wordpress.org/support/users/paulrclark/)
 * (@paulrclark)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/database-error-table-doesnt-exist-for-query-2/)
 * Table missing. When opening product in Divi this page opens.
    [https://lawsuitanalysis.com/product/mediation-arbitration-agreement-form/?preview_id=9017&preview_nonce=a693a7cf0f&_thumbnail_id=9156&preview=true](https://lawsuitanalysis.com/product/mediation-arbitration-agreement-form/?preview_id=9017&preview_nonce=a693a7cf0f&_thumbnail_id=9156&preview=true)
 * I am getting a thie error in WP
    [28-Nov-2021 20:37:35 UTC] WordPress database
   error Table ‘dbp7mju5rdv2ym.cmm_wcpt_sessions’ doesn’t exist for query DELETE
   FROM cmm_wcpt_sessions WHERE session_expiry < 1638131855 made by do_action_ref_array(‘
   wcpt_cleanup_sessions’), WP_Hook->do_action, WP_Hook->apply_filters, wcpt_cleanup_session_data,
   WCPT_Session_Handler->cleanup_sessions
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatabase-error-table-doesnt-exist-for-query-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/database-error-table-doesnt-exist-for-query-2/#post-15119243)
 * Hello [@paulrclark](https://wordpress.org/support/users/paulrclark/),
 * If I understand correctly you’re getting a database error when you preview changes
   in the Edit Product page. Can you switch the theme to the default [Storefront](https://www.woocommerce.com/storefront/)
   and check again?
 * You could also try to regenerate product lookup tables heading to WooCommerce
   > Status > Tools > Product lookup tables > Regenerate and see if that helps.
 * If the issue is not resolved, in order for us to take a closer look at your setup,
   could you please share a copy of your site’s System Status?
    You can find it 
   via WooCommerce > Status. Select “Get system report” and then “Copy for support”.
   Once you’ve done that, paste it here in your response.
 * Thanks.
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/database-error-table-doesnt-exist-for-query-2/#post-15144685)
 * Hi there,
 * It’s been a while since we last heard back from you. I’m going to mark this thread
   as resolved.
 * Hopefully, you were able to find a way forward with the issue – we’ll be here
   if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘database error Table doesn’t exist for query’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [table missing](https://wordpress.org/support/topic-tag/table-missing/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/database-error-table-doesnt-exist-for-query-2/#post-15144685)
 * Status: resolved