• Resolved Josh Levinson

    (@joshlevinson)


    I get the error message GET https://example.com/wp-admin/jquery-1.10.2.min.map 404 (Not Found) in the admin, and a similar message on the front-end, with the exception that the script is attempted to be loaded from /wp-includes/js/ instead.

    This intermittently stops a WooCommerce extension I’ve been working on from doing things with javascript. My plugin does not load its own version of jQuery or anything foolish; it doesn’t load or require anything beyond what WordPress and WooCommerce ships with. Sometimes my javascript will work, other times it will not. I cannot reliably reproduce unique situations that cause the two separate results.

    I am using TwentyTwelve with only two plugins active – WooCommerce and my own plugin.

    This problem did not occur before upgrading to 3.6.

Viewing 7 replies - 16 through 22 (of 22 total)
  • It’s a shame that a formal release change will be to completely disable jQuery mapping, and not to simply add the map file…

    Is adding the file so much more difficult?

    Or even better, couldn’t mapping fail a little more gracefully?

    Thread Starter Josh Levinson

    (@joshlevinson)

    As nacin said on the ticket (https://core.trac.www.ads-software.com/ticket/24994), WordPress ships with jquery.js, not jquery.min.js.

    The entire point of a source map is to debug minified code. In this case, the code is not minified, and negates the need for a source map.

    Also, to clarify my original post – this error in no way interfered with my JS. That was just my initial (and foolish/incorrect) assumption.

    Hi! I follow the instructions provided on https://core.trac.www.ads-software.com/attachment/ticket/24994/24994.patch, the error disappeared, but I still have 1 warning (but I can’t see what it is, it’s just the icon showing on bottom right with this number). Anyhow, thanks for the solution ?? hope it will get fix on next release.

    Hi! I did what you said Josh. And the warning disappeared. But there’s still something wrong that I can’t figure out. All pages except the front page is blank, and that includes the pages in admin where I list all pages and posts.

    Don’t understand that one :/

    Oh… the address is pancakechurch.com

    If you want Google Chrome to load the map file, and get rid of the 404, install/activate the Use Google Libraries plugin. jQuery will be loaded from Google’s CDN (at the correct version) and Chrome’s developer tools will know where to find the .map file.

    cheers,
    Ross

    Be it resolved that:

    Installing YAP (yet another plugin) to fix something that will certainly be addressed in the next release of WP (yay Automattic), just slows us down.

    I didn’t know about ‘mapping’ until this came up, so thanks for introducing me to the idea.

    Removing the line or obfuscating the line makes no difference.

    For me, I changed it to:

    *\@\ \s\o\u\r\c\e\M\a\p\p\i\n\g\U\R\L\=\j\q\u\e\r\y\-\1\.\1\.\2\.\m\i\n\.\m\a\p

    …merely for the poetry.

    @topquarky: installing Use Google Libraries will most likely improve your website performance ??

    cheers,
    Ross

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘GET /wp-admin/jquery-1.10.2.min.map 404 (Not Found)’ is closed to new replies.