Support » Plugin: GDPR Cookie Compliance (CCPA ready) » Database error – Table doesn’t exit -> site down

  • Resolved everine

    (@everine)


    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

    (@mooveagency)

    Hi @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)
  • You must be logged in to reply to this topic.