• Resolved DickRaney

    (@dickraney)


    I am getting an error in browser console:
    Uncaught SyntaxError: Invalid or unexpected token

    Looks like the problem is caused by concatenation of MonsterInsights javascript.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • @dickraney Have you performed a conflict test yet?

    Try deactivating all plugins except for WP-Optimizeand see if it is resolved.

    If so, reactivate each plugin one at a timeuntil you find the culprit. You can check for the issue between activating each plugin, so you can see which one is causing problems.

    Please let us know your findings.

    Thread Starter DickRaney

    (@dickraney)

    I did the opposite and deactivated WP-Optimize and the error went away.

    When I reactivate WPO, I get these errors:

    `(index):98
    Uncaught ReferenceError: monsterinsights_frontend is not defined
    at __gtagTracker ((index):98:37)
    at (index):1119:59
    __gtagTracker @ (index):98
    (anonymous) @ (index):1119

    [module]\n;:403
    Uncaught SyntaxError: Invalid or unexpected token (at [module]\n;:403:59)`

    @dickraney Please perform the conflict test by deactivating the other plugins especially the monsterinsights plugih and check if you still get the errors in console,

    Thread Starter DickRaney

    (@dickraney)

    Sorry for the slow response. I’m not seeing the error right now, so maybe it is gone. I’ll open a new ticket if I see it again.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uncaught SyntaxError: Invalid or unexpected token’ is closed to new replies.