• Resolved maniacmedia

    (@maniacmedia)


    After trying in vain to get TFA working properly, I had the code, define(‘TWO_FACTOR_DISABLE’, true); added to the wp-config.php. Cleared the browser cache and restarted the browser. The browser now just loops back to the log in screen with the message “Error: The one-time password (TFA code) you entered was incorrect.”

    Any suggestions on how I can access my blog?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author David Anderson

    (@davidanderson)

    Where did you add it? Any defines (not just for this plugin, but for any) at the end of the file don’t take effect because execution never reaches them.

    Thread Starter maniacmedia

    (@maniacmedia)

    Unfortunately, I don’t have direct FTP access so I have no idea if it was added to the end of the file. So it needs to add at the beginning?

    Plugin Author David Anderson

    (@davidanderson)

    It just needs to be before the line that’s normally at the end of wp-config.php that switches execution.

    Thread Starter maniacmedia

    (@maniacmedia)

    That did it. Thanks.

    Can you please send me a screenshot, as I’m straggling over two days now.

    Plugin Author David Anderson

    (@davidanderson)

    Thanks for the quick response David, however still prompting to put the two-factor code.

    Any alternate to disable this plugin?

    Plugin Author David Anderson

    (@davidanderson)

    Hi,

    Are you sure you have this plugin and not a different one?

    You can also put the line return; on the line immediately after the opening <?php in a plugin’s main file in its directory in wp-content/plugins to effectively disable it.

    David

    Thread Starter maniacmedia

    (@maniacmedia)

    I was able to disable and delete from Chrome, but not from Firefox. Ultimately had to delete because my hosting provider didn’t have all necessary php files available.

    Thank you for your assistance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘define DISABLE code not working’ is closed to new replies.