Title: Uncaught exception &#039;Exception&#039; &#8211; WordFence API error
Last modified: August 21, 2016

---

# Uncaught exception 'Exception' – WordFence API error

 *  Resolved [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/uncaught-exception-exception-wordfence-api-error/)
 * Fatal error: Uncaught exception ‘Exception’ with message ‘WordFence API error:
   The Wordfence key you’re using is not valid. Make sure you copied it correctly
   from [http://www.wordfence.com.&#8217](http://www.wordfence.com.&#8217); in /
   home/*/public_html/wp-content/plugins/wordfence/lib/wfAPI.php:33 Stack trace:#
   0 /home/*/public_html/wp-content/plugins/wordfence/lib/wordfenceClass.php(595):
   wfAPI->call(‘twoFactor_verif…’, Array, Array) #1 [internal function]: wordfence::
   authenticateFilter(Object(WP_User), ‘ad_ssg’, ‘ZRIi*BU&3A_#v,]…’) #2 /home/*/
   public_html/wp-includes/plugin.php(199): call_user_func_array(‘wordfence::auth…’,
   Array) #3 /home/*/public_html/wp-includes/pluggable.php(469): apply_filters(‘
   authenticate’, NULL, ‘username’, ‘ZRIi*BU&3A_#v,]…’) #4 /home/*/public_html/wp-
   includes/user.php(53): wp_authenticate(‘username’, ‘ZRIi*BU&3A_#v,]…’) #5 /home/*/
   public_html/wp-login.php(753): wp_signon(”, ”) #6 {main} thrown in /home/*/public_html/
   wp-content/plugins/wordfence/lib/wfAPI.php on line 33
 * Please check this. I will add the key manually in the meantime and come back 
   with the result.
 * More info:
    1. I have a premium key 2. I use the phone authentication for the
   admin user.
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

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

 *  Thread Starter [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/uncaught-exception-exception-wordfence-api-error/#post-4662073)
 * I wasn’t able to find the line where to add the api key directly (it’s loaded
   from the admin). So, I’ve de-activated the plugin.
 * A fast resolution will definitely be appreciated!
 *  Thread Starter [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/uncaught-exception-exception-wordfence-api-error/#post-4662074)
 * Further actions: I re-activated the plugin and removed the cellphone sign in.
 * Now the login to wordpress dashboard works.
 * But, I really preferred the phone sign-in as a more secure sign in.
 *  [BlueApexPumpkin](https://wordpress.org/support/users/ahetzel/)
 * (@ahetzel)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/uncaught-exception-exception-wordfence-api-error/#post-4662078)
 * Sample problem here, started around the same time so I suspect that Wordfence
   is offline.
 *  [easykorean](https://wordpress.org/support/users/easykorean/)
 * (@easykorean)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/uncaught-exception-exception-wordfence-api-error/#post-4662111)
 * Same problem. Please fix, I too have a paid Premium Key.
 * Wordfence Live Activity: Call to Wordfence API to resolve IPs failed: WordFence
   API error: The Wordfence key you’re using is not valid. Make sure you copied 
   it correctly from [http://www.wordfence.com](http://www.wordfence.com).
 *  Plugin Author [Mark Maunder](https://wordpress.org/support/users/mmaunder/)
 * (@mmaunder)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/uncaught-exception-exception-wordfence-api-error/#post-4662144)
 * Hi Guys,
 * This issue is now resolved. We’re busy updating the premium support tickets and
   if you filed one you should already have a response.
 * Regards,
 * Mark.
 *  Thread Starter [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/uncaught-exception-exception-wordfence-api-error/#post-4662155)
 * Hi Mark,
 * I’ve just tested it and it works. Thanks!
 * M.

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

The topic ‘Uncaught exception 'Exception' – WordFence API 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

 * [uncaught exception](https://wordpress.org/support/topic-tag/uncaught-exception/)

 * 6 replies
 * 4 participants
 * Last reply from: [M](https://wordpress.org/support/users/infolegal/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/uncaught-exception-exception-wordfence-api-error/#post-4662155)
 * Status: resolved