Title: Database error
Last modified: July 12, 2021

---

# Database error

 *  Resolved [shannonnoack](https://wordpress.org/support/users/shannonnoack/)
 * (@shannonnoack)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/database-error-343/)
 * Hello! Our host was looking through our website’s error logs to troubleshoot 
   an issue we are having on our website, and found a database error connected to
   this plugin:
 *     ```
       fatal_errors: WordPress database error Specified key was too long; max key length is 767 bytes for query CREATE TABLE wp_tukzq96ve1_cli_cookie_scan_cookies(
       id_cli_cookie_scan_cookies INT NOT NULL AUTO_INCREMENT,
       id_cli_cookie_scan INT NOT NULL DEFAULT '0',
       id_cli_cookie_scan_url INT NOT NULL DEFAULT '0',
       cookie_id VARCHAR(255) NOT NULL,
       expiry VARCHAR(255) NOT NULL,
       type VARCHAR(255) NOT NULL,
       category VARCHAR(255) NOT NULL,
       category_id INT NOT NULL,
       description TEXT NULL DEFAULT '',
       PRIMARY KEY(id_cli_cookie_scan_cookies),
       UNIQUE cookie (id_cli_cookie_scan, cookie_id)
       ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci made by activate_plugins, activate_plugin, do_action('activate_cookie-law-info/cookie-law-info.php'), WP_Hook->do_action, WP_Hook->apply_filters, Cookie_Law_Info_Cookie_Scaner->activator, Cookie_Law_Info_Cookie_Scaner->install_tables, Cookie_Law_Info_Cookie_Scaner->insert_scanner_tables, dbDelta
       ```
   
 * They asked that we contact the plugin developers about it. Please let me know
   if this is something you could look into and help with. Thank you!

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

 *  Plugin Author [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * (@webtoffee)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/database-error-343/#post-14658961)
 * Hi [@shannonnoack](https://wordpress.org/support/users/shannonnoack/),
 * Can you please ask your hosting to increase the max key length and see if the
   issue persists?
 *  Thread Starter [shannonnoack](https://wordpress.org/support/users/shannonnoack/)
 * (@shannonnoack)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/database-error-343/#post-14660955)
 * We will try that, thank you!

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

The topic ‘Database error’ is closed to new replies.

 * ![](https://ps.w.org/cookie-law-info/assets/icon.svg?rev=3007243)
 * [CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice)](https://wordpress.org/plugins/cookie-law-info/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-law-info/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-law-info/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-law-info/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-law-info/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-law-info/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [shannonnoack](https://wordpress.org/support/users/shannonnoack/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/database-error-343/#post-14660955)
 * Status: resolved