Title: Error occurred while API key validating. Error: Testing is failed. Please check
Last modified: July 31, 2020

---

# Error occurred while API key validating. Error: Testing is failed. Please check

 *  Resolved [wporgyvonne](https://wordpress.org/support/users/wporgyvonne/)
 * (@wporgyvonne)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/)
 * Hi I am unable to install the cleantalk even though I have paid for it. I tried
   keying in the access key but I still get error.
 * Below is the debug code.
    Debug: Constants: CLEANTALK_AJAX_USE_BUFFER NOT_DEFINED
   CLEANTALK_AJAX_USE_FOOTER_HEADER NOT_DEFINED CLEANTALK_ACCESS_KEY NOT_DEFINED
   CLEANTALK_CHECK_COMMENTS_NUMBER NOT_DEFINED CLEANTALK_CHECK_MESSAGES_NUMBER NOT_DEFINED
   CLEANTALK_PLUGIN_DIR D:\Inetpub\vhosts\serviced-apartments.com.au\httpdocs\wp-
   content\plugins\cleantalk-spam-protect/ WP_ALLOW_MULTISITE true Debug log: Drop
   debug data ArrayObject Object ( [storage:ArrayObject:private] => Array ( [07:
   35:49_ACTION__FUNCTION_] => Array ( [0] => Failed. Query: DELETE FROM `YCIg5_cleantalk_sfw_logs`
   WHERE 1=1 Error: Table ‘wp_a8ap0.ycig5_cleantalk_sfw_logs’ doesn’t exist [1] 
   => Failed. Query: ALTER TABLE `YCIg5_cleantalk_sfw_logs` CHANGE `status` `status`
   ENUM(‘PASS_SFW’,’DENY_SFW’,’PASS_SFW__BY_WHITELIST’,’PASS_SFW__BY_COOKIE’,’DENY_ANTICRAWLER’,’
   PASS_ANTICRAWLER’,’DENY_ANTIFLOOD’,’PASS_ANTIFLOOD’) NOT NULL AFTER `ip`; Error:
   Table ‘wp_a8ap0.ycig5_cleantalk_sfw_logs’ doesn’t exist )
 *  )
 * )
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-occurred-while-api-key-validating-error-testing-is-failed-please-check%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 28 total)

1 [2](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/page/2/?output_format=md)

 *  Plugin Support [amagsumov](https://wordpress.org/support/users/amagsumov/)
 * (@amagsumov)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/#post-13193742)
 * Hello, [@wporgyvonne](https://wordpress.org/support/users/wporgyvonne/)
 * Please, try to reactivate the Anti-Spam plugin with “Complete deactivation” option
   enabled.
 * 1. Enter to the Antispam by Cleantalk plugin settings. (Wordrpess Dashboard -
   > Settings -> Antispam by Cleantalk -> Advanced settings)
 * 2. Check the last settings “Complete deactivation” and save changes.
 * 3. Deactivate the plugin in the “Plugins” page in WordPress Dashboard.
 * 4. Then activate it.
 * 5. Save the access key
 * Did it help?
 *  Thread Starter [wporgyvonne](https://wordpress.org/support/users/wporgyvonne/)
 * (@wporgyvonne)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/#post-13194125)
 * All good, thanks for the prompt response.
 *  [silverliebt](https://wordpress.org/support/users/silverliebt/)
 * (@silverliebt)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/#post-13751354)
 * I am getting the same error:
 * CLEANTALK_AJAX_USE_BUFFER NOT_DEFINED
    CLEANTALK_AJAX_USE_FOOTER_HEADER NOT_DEFINED
   CLEANTALK_ACCESS_KEY NOT_DEFINED CLEANTALK_CHECK_COMMENTS_NUMBER NOT_DEFINED 
   CLEANTALK_CHECK_MESSAGES_NUMBER NOT_DEFINED CLEANTALK_PLUGIN_DIR /code/wp-content/
   plugins/cleantalk-spam-protect/ WP_ALLOW_MULTISITE NOT_DEFINED
 * My host is Pantheon, and wp-contents on Live is read only, but on Dev I got the
   same error, so I don’t think it’s that.
 *  [silverliebt](https://wordpress.org/support/users/silverliebt/)
 * (@silverliebt)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/#post-13751369)
 * Additional information on the error report, this was also presented below the
   error (all caps in my initial post):
 * ArrayObject Object
    ( [storage:ArrayObject:private] => Array ( [16:23:24_ACTION_activate_cleantalk-
   spam-protect/cleantalk.php_FUNCTION_] => Array ( [0] => Failed. Query: CREATE
   TABLE IF NOT EXISTS `wp_cleantalk_ua_bl` ( `id` INT(11) NOT NULL, `ua_template`
   VARCHAR(512) NULL DEFAULT NULL, `ua_status` TINYINT(1) NULL DEFAULT NULL, PRIMARY
   KEY ( `id` ), INDEX ( `ua_template` ) ); Error: Index column size too large. 
   The maximum column size is 767 bytes. )
 *  )
 * )
 *  Plugin Author [alexandergull](https://wordpress.org/support/users/alexandergull/)
 * (@alexandergull)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/#post-13751378)
 * Hello [@silverliebt](https://wordpress.org/support/users/silverliebt/)
    We will
   check this and tell you what is wrong and how to fix this. At the moment I recommend
   you to reinstall the plugin with the “Complete deactivation” option enabled. 
   You can find this option at the bottom of the plugin advanced settings. Be well,
 *  [silverliebt](https://wordpress.org/support/users/silverliebt/)
 * (@silverliebt)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/#post-13751409)
 * OK, I tried that already, but not after completely removing the plugin, which
   I will try now.
 *  [silverliebt](https://wordpress.org/support/users/silverliebt/)
 * (@silverliebt)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/#post-13751420)
 * After checking “complete deactivation” and then deactivating, and then deleting,
   I reinstalled the plugin. Upon activation, same error. Again I tried checking“
   complete deactivation” and deactivating/re-activating, but errors persist.
 *  [silverliebt](https://wordpress.org/support/users/silverliebt/)
 * (@silverliebt)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/#post-13751422)
 * CLEANTALK_AJAX_USE_BUFFER NOT_DEFINED
    CLEANTALK_AJAX_USE_FOOTER_HEADER NOT_DEFINED
   CLEANTALK_ACCESS_KEY NOT_DEFINED CLEANTALK_CHECK_COMMENTS_NUMBER NOT_DEFINED 
   CLEANTALK_CHECK_MESSAGES_NUMBER NOT_DEFINED CLEANTALK_PLUGIN_DIR /code/wp-content/
   plugins/cleantalk-spam-protect/ WP_ALLOW_MULTISITE NOT_DEFINED Debug log: Drop
   debug data ArrayObject Object ( [storage:ArrayObject:private] => Array ( [16:
   41:04_ACTION_activate_cleantalk-spam-protect/cleantalk.php_FUNCTION_] => Array([
   0] => Failed. Query: CREATE TABLE IF NOT EXISTS `wp_cleantalk_ua_bl` ( `id` INT(
   11) NOT NULL, `ua_template` VARCHAR(512) NULL DEFAULT NULL, `ua_status` TINYINT(
   1) NULL DEFAULT NULL, PRIMARY KEY ( `id` ), INDEX ( `ua_template` ) ); Error:
   Index column size too large. The maximum column size is 767 bytes. )
 *  )
 * )
 *  Plugin Author [alexandergull](https://wordpress.org/support/users/alexandergull/)
 * (@alexandergull)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/#post-13751476)
 * Thank you for your feedback. We will check what is wrong.
    All the best,
 *  Plugin Author [alexandergull](https://wordpress.org/support/users/alexandergull/)
 * (@alexandergull)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/#post-13755871)
 * Hello.
 * We have fixed the problem. All the changes will be included in the next stable
   release.
 * Please, reinstall the plugin. ( Download link: [https://github.com/CleanTalk/wordpress-antispam/releases/download/dev-version/cleantalk-spam-protect.zip](https://github.com/CleanTalk/wordpress-antispam/releases/download/dev-version/cleantalk-spam-protect.zip))
 * Here is a guide for you:
 * Go to WordPress Administrator Panel —> Plugins.
    Find the plugin “Spam Protection
   by CleanTalk” —> Deactivate. After the automatic page refreshing find the plugin
   again “Spam Protection by CleanTalk” —> Delete. Confirm “Yes, delete these files”.
   Download the plugin archive from the link above. Go to Plugins —> Add New —> 
   Upload Plugin. Choose the downloaded archive and press “Install Now”.
 * Contact us if you have any questions.
 * Best wishes,
 *  [silverliebt](https://wordpress.org/support/users/silverliebt/)
 * (@silverliebt)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/#post-13755891)
 * Excellent, I will take these steps now and report back. Big thanks in advance.
 *  [silverliebt](https://wordpress.org/support/users/silverliebt/)
 * (@silverliebt)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/#post-13756030)
 * The install worked on Pantheon’s Dev environment, but when moved to Test, failed
   with the same error. Please be aware of Pantheon’s hosting setup:
    [https://pantheon.io/docs/pantheon-workflow](https://pantheon.io/docs/pantheon-workflow)
   Also, this might be even more useful: [https://pantheon.io/docs/plugins-known-issues](https://pantheon.io/docs/plugins-known-issues)
   Have you had other customers hosted at Pantheon?
 * Sorry for the bad news. I’m considering recommending a migration to Kinsta to
   my client, which is where I host all new sites. Much easier.
 * Debug:
    Constants: CLEANTALK_AJAX_USE_BUFFER NOT_DEFINED CLEANTALK_AJAX_USE_FOOTER_HEADER
   NOT_DEFINED CLEANTALK_ACCESS_KEY NOT_DEFINED CLEANTALK_CHECK_COMMENTS_NUMBER 
   NOT_DEFINED CLEANTALK_CHECK_MESSAGES_NUMBER NOT_DEFINED CLEANTALK_PLUGIN_DIR /
   code/wp-content/plugins/cleantalk-spam-protect/ WP_ALLOW_MULTISITE NOT_DEFINED
   Debug log: Drop debug data ArrayObject Object ( [storage:ArrayObject:private]
   => Array ( [16:07:44_ACTION_activate_cleantalk-spam-protect/cleantalk.php_FUNCTION_]
   => Array ( [0] => Failed. Query: CREATE TABLE IF NOT EXISTS `wp_cleantalk_ua_bl`(`
   id` INT(11) NOT NULL, `ua_template` VARCHAR(512) NULL DEFAULT NULL, `ua_status`
   TINYINT(1) NULL DEFAULT NULL, PRIMARY KEY ( `id` ), INDEX ( `ua_template` ) );
   Error: Index column size too large. The maximum column size is 767 bytes. )
 *  )
 * )
 *  [silverliebt](https://wordpress.org/support/users/silverliebt/)
 * (@silverliebt)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/#post-13756061)
 * By the way, you can spin up a WP sandbox account at Pantheon for free, and test
   the Cleantalk plugin there, if you so desire. It might help in troubleshooting
   the issue.
 *  Plugin Author [alexandergull](https://wordpress.org/support/users/alexandergull/)
 * (@alexandergull)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/#post-13756200)
 * I transfer this to the developer.
    Thank you!
 *  [silverliebt](https://wordpress.org/support/users/silverliebt/)
 * (@silverliebt)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/#post-13756259)
 * Great, you are very welcome. Thanks to you as well.

Viewing 15 replies - 1 through 15 (of 28 total)

1 [2](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/page/2/?output_format=md)

The topic ‘Error occurred while API key validating. Error: Testing is failed. Please
check’ is closed to new replies.

 * ![](https://ps.w.org/cleantalk-spam-protect/assets/icon-256x256.gif?rev=3539767)
 * [Anti-Spam by CleanTalk. Spam protection](https://wordpress.org/plugins/cleantalk-spam-protect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cleantalk-spam-protect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cleantalk-spam-protect/)
 * [Active Topics](https://wordpress.org/support/plugin/cleantalk-spam-protect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cleantalk-spam-protect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cleantalk-spam-protect/reviews/)

 * 28 replies
 * 8 participants
 * Last reply from: [alexandergull](https://wordpress.org/support/users/alexandergull/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/error-occurred-while-api-key-validating-error-testing-is-failed-please-check/page/2/#post-13984036)
 * Status: resolved