Support » Fixing WordPress » All JS having Uncaugt syntax error on wp-admin

  • Hi, I’ve tried removing all plugins and even using the default theme, but i’m still getting the error “Uncaught SyntaxError: Unexpected token ‘}'” for all my js files.

    This is happening also in wp-admin side. All js files are affected, it starts with load-script.

    I’ve also tried reinstalling WordPress using the updater, but it didn’t work.

    Any idea how to fix this?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi there,

    I’m wondering if that may be cache related? Does it also happen if you use a private window or incognito window?

    Thread Starter clementchai

    (@clementchai)

    yeah, it happens in incognito too 🙁
    it appears that multiple JS files are affected. all have the Uncaught Syntax Issue, Unexpected tokee “{“

    Jitin Mishra

    (@simpleintelligentsystems)

    Need the url of the website to investigate further.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    🤔

    Weird. When was the last time this was working fine, do you recall?

    Are you okay with having to upload core using something like FileZilla? I have a feeling you may need to re-install manually is the reason I ask.

    Thread Starter clementchai

    (@clementchai)

    the URL is [ redundant link removed ]

    Can’t tell the latest but the last time I logged in and it was fine was in December 2020.
    I’ll give reuploading the core through FTP a try. Is there documentation on it? I assume it would be everything except everything under wp-content?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘All JS having Uncaugt syntax error on wp-admin’ is closed to new replies.