Title: Database error &#8211; Table doesn&#8217;t exit -&gt; site down
Last modified: October 26, 2021

---

# Database error – Table doesn’t exit -> site down

 *  Resolved [everine](https://wordpress.org/support/users/everine/)
 * (@everine)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/error-1591/)
 * Site was down due to this error, how can we prevent this from happening again?
   
   Do I reinstall the plugin? Or will it give the error again? I have now deactivated
   it. [26-Oct-2021 XX:XX:XX UTC] WordPress database error Table ‘XXX’ doesn’t exist
   for query SELECT option_key, option_value FROM wp_gdpr_cc_options made by require(‘
   wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/
   themes/buddyboss-theme/buddypress.php’), get_header, locate_template, load_template,
   require_once(‘/themes/buddyboss-theme/header.php’), wp_head, do_action(‘wp_head’),
   WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’),
   WP_Hook->do_action, WP_Hook->apply_filters, Moove_GDPR_Actions->moove_frontend_gdpr_scripts,
   get_option, apply_filters(‘pre_option_moove_gdpr_plugin_settings’), WP_Hook->
   apply_filters, Moove_GDPR_Actions::gdpr_get_options, gdpr_get_options, Moove_GDPR_DB_Controller::
   get_options

Viewing 1 replies (of 1 total)

 *  Plugin Author [Moove Agency](https://wordpress.org/support/users/mooveagency/)
 * (@mooveagency)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/error-1591/#post-15011565)
 * Hi [@everine](https://wordpress.org/support/users/everine/),
 * This is a strange issue on your end, it seems the custom database table is missing,
   but it was created earlier. Our plugin stores an option if the database was created,
   and doesn’t try to re-create it. By this, the overall performance is the performance
   is better as we’re not running extra queries.
    You can fix the issue by adding
   the following snippet to theme’s functions.php
 *     ```
       add_action('init', function(){
       delete_option( 'gdpr_cc_db_created' );
       });
       ```
   
 * After this, you can activate the GDPR plugin again, and the custom table will
   be fixed. Once the PHP error is solved, you can remove the code snippet from 
   your functions.php and the plugin should work without problems.
 * Hope this helps.

Viewing 1 replies (of 1 total)

The topic ‘Database error – Table doesn’t exit -> site down’ is closed to new replies.

 * ![](https://ps.w.org/gdpr-cookie-compliance/assets/icon-256x256.png?rev=2376316)
 * [GDPR Cookie Compliance - Cookie Banner, Cookie Consent, Cookie Notice for CCPA, EU Cookie Law](https://wordpress.org/plugins/gdpr-cookie-compliance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gdpr-cookie-compliance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gdpr-cookie-compliance/)
 * [Active Topics](https://wordpress.org/support/plugin/gdpr-cookie-compliance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gdpr-cookie-compliance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gdpr-cookie-compliance/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Moove Agency](https://wordpress.org/support/users/mooveagency/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/error-1591/#post-15011565)
 * Status: resolved