• Resolved Salih K

    (@salihkulangara)


    After updating to 5.5 I am getting some sort of JS errors, these are in the back end that is really a concern. One of the common error is wp-auth-check.js related Uncaught TypeError: Cannot read property 'interval' of undefined another is Uncaught TypeError: Cannot read property 'hasClass' of undefined - wp-auth-check.min.js:2.
    Is this common? Is there any way to fix this?
    Also I see js errors specifically from some plugin js, that is traceable but these errors are confusing, that’s why asking here.
    here is a few console screenshots: https://snipboard.io/eV5MPE.jpg , https://snipboard.io/DxWkBm.jpg

    • This topic was modified 4 years, 3 months ago by Salih K.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    (@macmanx)

    Thread Starter Salih K

    (@salihkulangara)

    Of course the “Enable jQuery Migrate Helper” will help to fix the issue, I have enabled this to some other sites and worked after fixing by myself, after that I removed.

    So Here is my catch on the issue I raised,
    The wp-auth-check error appears when we have any other js error, but some times it is tricky to find the issue from console, for me I got only errors related to wp-auth-check, but when I added Jquery Migrator plugin, it displayed errors in some of the plugins, that was not showing in console, so I fixed that error in plugin files – interestingly very minor errors(like some deprecated jQuery functions like live, load etc). So now I have a clean console.

    Anyhow thanks @macmanx , you forced me to go one step in depth.

    • This reply was modified 4 years, 3 months ago by Salih K.
    • This reply was modified 4 years, 3 months ago by Salih K.
    • This reply was modified 4 years, 3 months ago by Salih K.
    Thread Starter Salih K

    (@salihkulangara)

    Sorry, I am re-opening this thread because in few of my other sites I am getting same wp-auth-check error, even if I installed Enable Jquery Migrator plugin, and that is not logging any error at all. Is there any clue about this, how can I fix this.

    here is the screenshot of console: https://snipboard.io/pCwDy2.jpg
    if I check network tab I can see this: https://snipboard.io/j634LT.jpg

    Weirdly for me using “Enable jQuery Migrate Helper” works fine but I have to perminantly have SCRIPT_DEBUG set to true.

    define('SCRIPT_DEBUG', true);

    In the plugin documentation you’re supposed to turn this off but its the only way I keep my admin area working as expected.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘After 5.5 update getting JS errors in the admin screens’ is closed to new replies.