Title: API Key Error
Last modified: August 31, 2016

---

# API Key Error

 *  Resolved [Al-Imran](https://wordpress.org/support/users/alimraan/)
 * (@alimraan)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/api-key-error-2/)
 * Hello,
    While working on this issues. I have got another issue. I deactivated
   it and then I am getting the message Wordfence could not get an API key from 
   the Wordfence scanning servers when it activated. You can try to fix this by 
   going to the Wordfence “options” page and hitting “Save Changes”. This will cause
   Wordfence to retry fetching an API key for you. If you keep seeing this error
   it usually means your WordPress server can’t connect to our scanning servers.
   You can try asking your WordPress host to allow your WordPress server to connect
   to noc1.wordfence.com. Please do assist me to resolve this.
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

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

 *  [WFBrian](https://wordpress.org/support/users/wfbrian/)
 * (@wfbrian)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/api-key-error-2/#post-6953258)
 * Hi,
 * Please try testing the connection to our API servers.
 * [http://docs.wordfence.com/en/Wordfence_options#Click_to_test_connectivity_to_the_Wordfence_API_servers](http://docs.wordfence.com/en/Wordfence_options#Click_to_test_connectivity_to_the_Wordfence_API_servers)
 * -Brian
 *  Thread Starter [Al-Imran](https://wordpress.org/support/users/alimraan/)
 * (@alimraan)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/api-key-error-2/#post-6953400)
 * Hello,
    I tried testing it and it is working. Means my hosting server is connecting
   to noc1.wordfence.com. Please let me know what to do to resolve this issue. Imran
 *  Plugin Author [WFMattR](https://wordpress.org/support/users/wfmattr/)
 * (@wfmattr)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/api-key-error-2/#post-6953469)
 * [@alimraan](https://wordpress.org/support/users/alimraan/): I saw your other 
   message too ([here](https://wordpress.org/support/topic/new-error-in-wordfence))—
   in this case, since you are able to connect to the server, it sounds like your
   site is unable to save the key that it gets.
 * First, try turning on the option “Disable config caching”, and see if the error
   message still appears after that.
 * If it does not help, then your database user probably does not have all privileges
   in your database. Usually you can correct the privileges in phpmyadmin, or another
   tool that the hosting company provides. If you’re not familiar with database 
   privileges, the hosting company may be able to help.
 * -Matt R
 *  Thread Starter [Al-Imran](https://wordpress.org/support/users/alimraan/)
 * (@alimraan)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/api-key-error-2/#post-6953482)
 * Dear WFMattR,
    Let me try your suggestions and will revert you here asap.

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

The topic ‘API Key Error’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [key](https://wordpress.org/support/topic-tag/key/)
 * [server](https://wordpress.org/support/topic-tag/server/)

 * 4 replies
 * 3 participants
 * Last reply from: [Al-Imran](https://wordpress.org/support/users/alimraan/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/api-key-error-2/#post-6953482)
 * Status: resolved