• Resolved Vinod Kumar

    (@vinodsoftcripts)


    We have got the uncaught syntax error unexpected token < from jetpack JS code. It was fixed once we cleared the WP rocket cache. We want to know what caused the issue.

    }, s.Deferred.exceptionHook = E.exceptionHook), s

    }); < html > < head > < title > 404 Not Found < /title></head > < body > < center > < h1 > 404 Not Found < /h1></center > < hr > < center > nginx < /center></body > < /html>;!function(){var e={775:function(e){let n;window._tkq=window._tkq||[];const t=console.error;const o={initialize:function(e,n){o.setUser(e,n),o.identifyUser()},mc:{bumpStat:function(e,n){const t=function(e,n){let t=””;if(“object”==typeof e)for(const n in e)t+=”&x_”+encodeURIComponent(n)+”=”+encodeURIComponent(e[n]);else t=”&x_”+encodeURIComponent(e)+”=”+encodeURIComponent(n);return t}(e,n);(new Image).src=document.location.protocol+”/ / pixel.wp.com / g.gif ? v = wpcom – no – pv “+t+” & t = “+Math.random()}},tracks:{recordEvent:function(e,n){n=n||{},0===e.indexOf(“

    jetpack_ “)?window._tkq.push([“

    recordEvent “,e,n]):t(‘- Event name must be prefixed by “

    jetpack_ “‘)},recordPageView:function(e){o.tracks.recordEvent(“

    jetpack_page_view “,{path:e})}},setUser:function(e,t){n={ID:e,username:t}},identifyUser:function(){n&&window._tkq.push([“

    identifyUser “,n.ID,n.username])},clearedIdentity:function(){window._tkq.push([“

    clearIdentity “])}};e.exports=o}},n={};var t=function t(o){var r=n[o];if(void 0!==r)return r.exports;var i=n[o]={exports:{}};return e[o](i,i.exports,t),i.exports}(775);window.analytics=t}();var eio_lazy_vars={“

    exactdn_domain “:”

    https://capture.dropbox.com/gaVUO6CRxQ3c28dQ

    https://capture.dropbox.com/bDzri9HA2ZLZAkMR

    • This topic was modified 3 years, 4 months ago by Vinod Kumar.

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

Viewing 1 replies (of 1 total)
  • Plugin Contributor Dan (a11n)

    (@drawmyface)

    Hi there. This looks like an issue with your caching settings, as it looks like one of the JS files that WP Rocket was concatenating was returning a 404, and instead of not concatenating anything in this case, it added in the contents of the 404 page, causing the error.

    If you’re able to reproduce the error on a test site running only Jetpack and WP Rocket, please let us know so we can investigate further.

Viewing 1 replies (of 1 total)

The topic ‘uncaught syntaxerror unexpected token < jetpack’ is closed to new replies.