Title: 2FA Activation Error
Last modified: January 11, 2022

---

# 2FA Activation Error

 *  Resolved [oceanexpressions](https://wordpress.org/support/users/oceanexpressions/)
 * (@oceanexpressions)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/2fa-activation-error/)
 * Good day,
 * I am trying to activate the Wordfence Two-Factor authentication using Google 
   authenticator and by scanning the QR code but each time I try I get the following
   error message, “An error was encountered while trying to activate two-factor 
   authentication. Please try again.”
 * I also tried manually putting the key under the QR code in my authenticator app….
   Nothing has worked. I do not understand what I could be doing wrong?
 * Any help would be much appreciated.

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

 *  Plugin Support [wfphil](https://wordpress.org/support/users/wfphil/)
 * (@wfphil)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/2fa-activation-error/#post-15240720)
 * Hi [@oceanexpressions](https://wordpress.org/support/users/oceanexpressions/)
 * I would like to have a look at your Wordfence diagnostics report. Please go to
   the top of the “**_Diagnostics_**” tab on the Wordfence “**_Tools_**” page. There
   will be a “**_SEND REPORT BY EMAIL_**” button to send the diagnostics report.
   Enter **_wftest [at] wordfence [dot] com_** as the email and **_oceanexpressions_**
   as the forum username please.
 * Once you have emailed me the diagnostics report can you reply here to let me 
   know that it has been sent. This is important in the unlikely event that your
   installation of WordPress is having an issue with sending mail.
 *  Thread Starter [oceanexpressions](https://wordpress.org/support/users/oceanexpressions/)
 * (@oceanexpressions)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/2fa-activation-error/#post-15243807)
 * Hello [@wfphil](https://wordpress.org/support/users/wfphil/)
 * Thank you so much for this response.
    I have sent the diagnostics report by email
   as you requested.
 * I saw “Wordfence is working” highlighted in yellow at the bottom right of the
   screen after I clicked send so I want to assume that it was sent successfully.
 * Thank you for your help!
 *  Plugin Support [wfphil](https://wordpress.org/support/users/wfphil/)
 * (@wfphil)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/2fa-activation-error/#post-15243995)
 * Hi [@oceanexpressions](https://wordpress.org/support/users/oceanexpressions/)
 * The report hasn’t arrived so WordPress may not be able to send all mail. You 
   can ask your hosting provider to check the mail server for any problems.
 * If you have at least Wordfence version 7.4.9 installed then you can export a 
   report instead. There will be an **_EXPORT_** button at the top of the page to
   export a diagnostics report text file.
 * Attach the text file in an email and send to **_wftest [at] wordfence [dot] com_**.
   Add your username **_oceanexpressions_** to the email subject field so that I
   can find it.
 * Once you have sent the email can you reply here to let me know that it has been
   sent.
 *  Thread Starter [oceanexpressions](https://wordpress.org/support/users/oceanexpressions/)
 * (@oceanexpressions)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/2fa-activation-error/#post-15244143)
 * I attempted to do as you requested but each time I tried to export the diagnostics
   report a new tab opened up of a blank white page with an error message, “{“errorMsg”:”
   Your browser sent an invalid security token to Wordfence. Please try reloading
   this page or signing out and in again.”,”tokenInvalid”:1}”.
 * I can send you an email with a snapshot of the actual error message if you prefer.
 * I signed out, refreshed etc and I got the same error message.
    Just FYI I have
   Wordfence 7.5.7 installed.
 * I can check with my host provider if the mail server has any issues but I do 
   doubt it as I have no issues with any of my website’s email accounts.
 * Thank you for your continued assistance
 *  Plugin Support [wfphil](https://wordpress.org/support/users/wfphil/)
 * (@wfphil)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/2fa-activation-error/#post-15244225)
 * Hi [@oceanexpressions](https://wordpress.org/support/users/oceanexpressions/)
 * Thank you for the update.
 * That error message repeating is usually caused by a plugin or custom code modifying
   the load ordering of JavaScript files.
 * As you can’t send a diagnostics report can you ask your hosting provider if your
   database is set up to allow the use of the InnoDB storage engine.
 *  Thread Starter [oceanexpressions](https://wordpress.org/support/users/oceanexpressions/)
 * (@oceanexpressions)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/2fa-activation-error/#post-15244468)
 * Hello again [@wfphil](https://wordpress.org/support/users/wfphil/)
 * I relayed your questions to a tech at my hosting provider and she looked into
   the case but could not find any server related issues to be causing troubles 
   either with the database or mail service.
 * However, she recommended a security plugin my host provides for WordPress that
   has 2FA and I have successfully activated that instead.
 * I sincerely thank you for all your help 🙂
 *  Plugin Support [wfphil](https://wordpress.org/support/users/wfphil/)
 * (@wfphil)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/2fa-activation-error/#post-15245057)
 * Hi [@oceanexpressions](https://wordpress.org/support/users/oceanexpressions/)
 * Thank you for the update.
 * If your hosting provider has said that your database is set up to allow the use
   of the InnoDB storage engine then the next thing to do would be to analyze your
   PHP error log files if you want to investigate further.

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

The topic ‘2FA Activation 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/)

 * 7 replies
 * 2 participants
 * Last reply from: [wfphil](https://wordpress.org/support/users/wfphil/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/2fa-activation-error/#post-15245057)
 * Status: resolved