• Resolved hugebeatz

    (@hugebeatz)


    Tried to log into my site after installing 2FA and now get the following error:

    “An error has occurred. Site owners can check the JavaScript console for more details.”

    I am not able to log in. Is there a way to disable it via wp-config.php?

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @hugebeatz

    You can add below constant in wp-config.php file to disable it.

    define('TWO_FACTOR_DISABLE', true);
    

    Thread Starter hugebeatz

    (@hugebeatz)

    Hi, I added the code and uploaded/replaced the wp-config.php file but the issue still persists. I tried to log on again and get:

    ERROR: Incorrect username or password.

    3 attempts remaining.

    Plugin Author David Anderson

    (@davidanderson)

    ERROR: Incorrect username or password.”

    This message isn’t related to the plugin – that’s an error message from WordPress core telling you that your username or password is incorrect. (And the plugin does not contain that textual message anywhere, because it does not check usernames or passwords, only TFA codes).

    Thread Starter hugebeatz

    (@hugebeatz)

    Yes, but I still get the error when I click Login again. “An error has occurred. Site owners can check the JavaScript console for more details.” as before so I think it is Any other way to disable all plugins?

    Thread Starter hugebeatz

    (@hugebeatz)

    I have also tried to change my password and after doing so I still get the error: “An error has occurred. Site owners can check the JavaScript console for more details.”

    Plugin Author David Anderson

    (@davidanderson)

    It sounds like you put the line in your wp-config.php file too late to take effect. Put it early.

    You can also disable any plugin simply by renaming the plugin’s folder inside wp-content/plugins to a different name.

    Plugin Author David Anderson

    (@davidanderson)

    And don’t forget to reload the login page after doing so.

    Thread Starter hugebeatz

    (@hugebeatz)

    You were correct. I put the code in at the bottom of the page so it did not work. I have now disabled it and can get into the page. I will try to go through the 2FA process again. Thank you for your help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘An error has occurred. Site owners can check the JavaScript console for more det’ is closed to new replies.