• Resolved antforshaw

    (@antforshaw)


    Hi,
    Today I updated WordPress on the live website (staging works with the same config) to 5.7.2 and now I can no longer log in to the backend due to many javascript errors in the console:

    Uncaught ReferenceError: wp is not defined
        at wp-login.php?redirect_to=https%3A%2F%2Fwww.*websiteremoved*.com%2Fwp-admin%2F&reauth=1:5
    wp-login.php?redirect_to=https%3A%2F%2Fwww.*websiteremoved*.com%2Fwp-admin%2F&reauth=1:10 Uncaught ReferenceError: wp is not defined
        at wp-login.php?redirect_to=https%3A%2F%2Fwww.*websiteremoved*.com%2Fwp-admin%2F&reauth=1:10
        at wp-login.php?redirect_to=https%3A%2F%2Fwww.*websiteremoved*.com%2Fwp-admin%2F&reauth=1:11
    wp-login.php?redirect_to=https%3A%2F%2Fwww.*websiteremoved*.com%2Fwp-admin%2F&reauth=1:16 Uncaught ReferenceError: wp is not defined
        at wp-login.php?redirect_to=https%3A%2F%2Fwww.*websiteremoved*.com%2Fwp-admin%2F&reauth=1:16
        at wp-login.php?redirect_to=https%3A%2F%2Fwww.*websiteremoved*.com%2Fwp-admin%2F&reauth=1:17
    jquery.min.js:2 jQuery.Deferred exception: WFLSVars is not defined ReferenceError: WFLSVars is not defined
        at HTMLDocument.<anonymous> (https://www.*websiteremoved*.com/wp-content/plugins/wordfence/modules/login-security/js/login.1620658454.js:270:27)
        at e (https://www.*websiteremoved*.com/wp-includes/js/jquery/jquery.min.js:2:30005)
        at t (https://www.*websiteremoved*.com/wp-includes/js/jquery/jquery.min.js:2:30307) undefined
    S.Deferred.exceptionHook @ jquery.min.js:2
    jquery.min.js:2 Uncaught ReferenceError: WFLSVars is not defined
        at HTMLDocument.<anonymous> (login.1620658454.js:270)
        at e (jquery.min.js:2)
        at t (jquery.min.js:2)
    2login.1620658454.js:237 Uncaught ReferenceError: WFLSVars is not defined
        at HTMLFormElement.<anonymous> (login.1620658454.js:237)
        at HTMLFormElement.dispatch (jquery.min.js:2)
        at HTMLFormElement.v.handle (jquery.min.js:2)

    I’m at a loss, I can’t log in at all to the live site and simply deleting Wordfence is not likely to work is it?

    Does anyone there have any guidance that I can use to get back in?

    Please note I have obfuscated the website name from the logs but can share in a PM if needed.

    Many thanks,

    Anthony

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support wfphil

    (@wfphil)

    Hi @antforshaw

    I see JavaScript errors for both WordPress and for our two factor authentication / CAPTCHA features.

    To gain access to your site immediately, you can rename the Wordfence plugin via FTP/SSH or your hosting control panel file manager. If you are not sure what to do your hosting provider may be happy to help.

    Find the Wordfence directory in the file path below and rename the Wordfence directory as below:

    ~/wp-content/plugins/wordfence-disabled

    You should now be able to login to WordPress.

    You then need to rename the Wordfence directory again to reactivate Wordfence as below:

    ~/wp-content/plugins/wordfence

    At this point you won’t see Wordfence in the WordPress menu. Click the WordPress Dashboard menu item and you will then see the Wordfence main menu item appear. However, you may need to reactivate Wordfence on the WordPress Plugins page first.

    Do you use any plugins to minify, combine or change the load ordering of JavaScript files? This could be in a caching plugin you use.

    Can you send your Wordfence diagnostics report so I can see what is installed. 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 @antforshaw 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.

    Hi,

    I had this same issue and realised that it was the Cloudways Breeze plugin causing it – if you’re on Cloudways it could be the same thing happening?

    Thanks

    Thread Starter antforshaw

    (@antforshaw)

    Hi Tomwake,

    Thanks for that mate you’re absolutely right. I temporarily disabled Breeze, adjusted some of the minification and grouping settings and that has allowed me back into the site.

    Good stuff and thanks again 🙂

    Anthony

    Plugin Support wfphil

    (@wfphil)

    Hi @antforshaw

    Thank you for the update.

    In the Breeze advanced option Delay JS inline scripts remove the word nonce and this will fix it we have found.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot log in to WordPress following 5.7.2 update – WFLSVars is not defined’ is closed to new replies.