{"id":12314967,"date":"2020-01-11T12:45:59","date_gmt":"2020-01-11T12:45:59","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/javascript-errors-46\/"},"modified":"2020-01-11T12:45:59","modified_gmt":"2020-01-11T12:45:59","slug":"javascript-errors-46","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/javascript-errors-46\/","title":{"rendered":"JavaScript errors"},"content":{"rendered":"<p>I get a lot of errors in the console, and the theme is not showing correctly. I just get basic code blocks. It works fine in post-preview-mode and in Gutenberg. But not in a published post. The errors are to files that supposedly should exist on the path &#8220;domain\/post-name&#8221;. But they don&#8217;t.<\/p>\n<pre><code>9702a.js:5 GET domain\/post-name\/theme-monokai.js net::ERR_ABORTED 404\nt.loadScript @ 9702a.js:5\nt.loadModule @ 9702a.js:5\nsetTheme @ 9702a.js:5\nsetTheme @ 9702a.js:5\n(anonymous) @ 9702a.js:9\neach @ jquery.js:2\neach @ jquery.js:2\n(anonymous) @ 9702a.js:9\ndispatch @ jquery.js:3\nr.handle @ jquery.js:3\nload (async)\nadd @ jquery.js:3\na.event.add @ 9702a.js:3\n(anonymous) @ jquery.js:3\neach @ jquery.js:2\neach @ jquery.js:2\nra @ jquery.js:3\non @ jquery.js:3\nbind @ jquery.js:5\na.fn.&lt;computed&gt; @ 9702a.js:3\n(anonymous) @ 9702a.js:9\n(anonymous) @ 9702a.js:9\n9702a.js:5 GET domain\/post-name\/mode-php.js net::ERR_ABORTED 404\nt.loadScript @ 9702a.js:5\nt.loadModule @ 9702a.js:5\nsetMode @ 9702a.js:5\n(anonymous) @ 9702a.js:9\neach @ jquery.js:2\neach @ jquery.js:2\n(anonymous) @ 9702a.js:9\ndispatch @ jquery.js:3\nr.handle @ jquery.js:3\nload (async)\nadd @ jquery.js:3\na.event.add @ 9702a.js:3\n(anonymous) @ jquery.js:3\neach @ jquery.js:2\neach @ jquery.js:2\nra @ jquery.js:3\non @ jquery.js:3\nbind @ jquery.js:5\na.fn.&lt;computed&gt; @ 9702a.js:3\n(anonymous) @ 9702a.js:9\n(anonymous) @ 9702a.js:9\n9702a.js:5 GET domain\/post-name\/mode-html.js net::ERR_ABORTED 404\nt.loadScript @ 9702a.js:5\nt.loadModule @ 9702a.js:5\nsetMode @ 9702a.js:5\n(anonymous) @ 9702a.js:9\neach @ jquery.js:2\neach @ jquery.js:2\n(anonymous) @ 9702a.js:9\ndispatch @ jquery.js:3\nr.handle @ jquery.js:3\nload (async)\nadd @ jquery.js:3\na.event.add @ 9702a.js:3\n(anonymous) @ jquery.js:3\neach @ jquery.js:2\neach @ jquery.js:2\nra @ jquery.js:3\non @ jquery.js:3\nbind @ jquery.js:5\na.fn.&lt;computed&gt; @ 9702a.js:3\n(anonymous) @ 9702a.js:9\n(anonymous) @ 9702a.js:9\n9702a.js:5 GET domain\/post-name\/mode-javascript.js net::ERR_ABORTED 404\nt.loadScript @ 9702a.js:5\nt.loadModule @ 9702a.js:5\nsetMode @ 9702a.js:5\n(anonymous) @ 9702a.js:9\neach @ jquery.js:2\neach @ jquery.js:2\n(anonymous) @ 9702a.js:9\ndispatch @ jquery.js:3\nr.handle @ jquery.js:3\nload (async)\nadd @ jquery.js:3\na.event.add @ 9702a.js:3\n(anonymous) @ jquery.js:3\neach @ jquery.js:2\neach @ jquery.js:2\nra @ jquery.js:3\non @ jquery.js:3\nbind @ jquery.js:5\na.fn.&lt;computed&gt; @ 9702a.js:3\n(anonymous) @ 9702a.js:9\n(anonymous) @ 9702a.js:9\n9702a.js:5 GET domain\/post-name\/mode-css.js net::ERR_ABORTED 404<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-12314967","topic","type-topic","status-publish","hentry","topic-tag-javascript-error"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12314967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12314967\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12314967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}