0

I got my WordPress 3.6 installation running using a theme I have bought. When I'm using my theme the console says:

GET ...xyz.de/landing/wp-includes/js/jquery/jquery-1.10.2.min.map 404 (Not Found)

This error does not appear when using the default theme. This seems like a broken import of a jQuery file. The site seems to work with the theme enabled. Where should I start looking to fix this in a theme not written by me?

Best regards,

Chris

  • It should be enqueued in wp-content/YOUR-THEME/functions.php – iEmanuele Aug 29 '13 at 16:14
  • but i guess that it's not the problem – iEmanuele Aug 29 '13 at 16:16
  • please can you show us the list of js script loaded by your site? – iEmanuele Aug 29 '13 at 16:21
2

This is a known issue for WordPress 3.6. There is already a ticket in the WordPress bug tracker. A patch can be found there too but I haven't tried it yet.

0

WordPress ships with a minified version of jQuery that includes a sourceMappingURL directive which browsers (currently only Chrome I think) can use to grab a "source map" that maps out how the minified code maps to the regular version.

However, WordPress does not include the .map file itself.

Nothing is broken with your jQuery import, and that error should only show up when you open up Developer Tools/Web Inspector.

  • Thanks for your thoughts dave! The error only appears for my custom theme. Is this still a non critical error? – Christoph Halang Aug 29 '13 at 18:15
  • I would imaging the other themes you're looking at aren't loading jQuery, or they load jQuery from someplace like Google which is a whole different set of problems. Trac ticket 24994 for WordPress core addresses this error by removing the source map declaration from the jquery.js that comes with WordPress. Ticket 24879 is where the core developers are talking about how to incorporate the jQuery source map into WordPress even though they're using a customized version of jQuery. – Dave Ross Aug 29 '13 at 20:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.