Title: Character set errors after activating plugin
Last modified: August 31, 2016

---

# Character set errors after activating plugin

 *  [smg78](https://wordpress.org/support/users/smg78/)
 * (@smg78)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/character-set-errors-after-activating-plugin/)
 * Hi there,
 * I’ve been using CF7 for several years on client sites and for the first time 
   ever (which seems surprising now) a client has asked if I can prevent duplicate
   form submissions. I found your post on the topic which seemed straight-forward
   enough but when I install the Adds Actions and Filters plugin I get the following
   error message:
 * WordPress database error: [Unknown character set: ‘utf8mb4’]
    CREATE TABLE IF
   NOT EXISTS wp_addactionsandfilters_plugin_usercode ( id mediumint(9) NOT NULL
   AUTO_INCREMENT, enabled boolean DEFAULT 0 NOT NULL, shortcode boolean DEFAULT
   0 NOT NULL, buffer boolean DEFAULT 1 NOT NULL, inadmin boolean DEFAULT 0 NOT 
   NULL, name tinytext DEFAULT ” NOT NULL, capability tinytext, description tinytext
   DEFAULT ” NOT NULL, code text DEFAULT ” NOT NULL, UNIQUE KEY id (id) ) DEFAULT
   CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
 * Do you have any advice on how to deal with this? Thanks!! 🙂
 * [https://wordpress.org/plugins/add-actions-and-filters/](https://wordpress.org/plugins/add-actions-and-filters/)

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

 *  Thread Starter [smg78](https://wordpress.org/support/users/smg78/)
 * (@smg78)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/character-set-errors-after-activating-plugin/#post-7052532)
 * Sorry, I meant to say I get the error message after I install and activate the
   plugin, not just when I install it. Thanks again!
 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/character-set-errors-after-activating-plugin/#post-7052606)
 * That is strange because the code WordPress what the character set should be, 
   then when it tries to use it, the DB doesn’t like it. This implies you have an
   older version of MySQL. You might see if you can get a later version for your
   site. Otherwise you might run into other issues.
 * But I think you can get along by changing “utf8mb4” to just “utf8”. Try running
   the command in your PHPMyAdmin manually:
 *     ```
       CREATE TABLE IF NOT EXISTS wp_addactionsandfilters_plugin_usercode (
       id mediumint(9) NOT NULL AUTO_INCREMENT,
       enabled boolean DEFAULT 0 NOT NULL,
       shortcode boolean DEFAULT 0 NOT NULL,
       buffer boolean DEFAULT 1 NOT NULL,
       inadmin boolean DEFAULT 0 NOT NULL,
       name tinytext DEFAULT '' NOT NULL,
       capability tinytext, description tinytext DEFAULT '' NOT NULL,
       code text DEFAULT '' NOT NULL, UNIQUE KEY id (id) ) DEFAULT
       CHARACTER SET utf8 COLLATE utf8_unicode_ci
       ```
   

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

The topic ‘Character set errors after activating plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/add-actions-and-filters_ffffff.svg)
 * [Add Shortcodes Actions And Filters](https://wordpress.org/plugins/add-actions-and-filters/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-actions-and-filters/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-actions-and-filters/)
 * [Active Topics](https://wordpress.org/support/plugin/add-actions-and-filters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-actions-and-filters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-actions-and-filters/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/character-set-errors-after-activating-plugin/#post-7052606)
 * Status: not resolved