If anyone comes across this issue, this is how you fix it:
Look for any other places within your theme or plugins where you see the jQuery library being loaded, and disable that.
WP already loads jQuery, so there is no need to load it again, and if it is loaded multiple times, some strange behavior might arise.
As you can see in the previous post, this kind of errors can be tricky to debug and fix.
I know this is resolved and all but you don’t say whether easy2map tries to load jQuery or not and, if so, where? I ask because I am using the very popular events manager from Modern Tribe. In this case, your maps show up just fine however maps on event pages show up as a gray box. I also get the error that I’ll have trouble with maps because jQuery is being loaded multiple times. I’ve just started developing in WP. Is there a method for checking which plugins are being bad and loading jQuery on their own besides actually looking through all the code of my plugins. Does the Chrome dev panel offer any clues? Sorry to be a pester bug…
Hello.
Wordpress actually offers a very good way to load JS files (wp_enqueue_script – http://codex.wordpress.org/Function_Reference/wp_enqueue_script )
Easy2Map makes use of this function from what I know (can’t remember right now), but the bottom line is that by itself it does not generate any errors, so either it uses this function, or it doesn’t load jQuery at all.
The issue described in the first post was actually happening because another part of the website was loading jQuery without making use of wp_enqueue_script, thus loading a duplicate jQuery, and this is what generated the error.
To check if your website is loading jQuery multiple times, open developer tools, go to the “Resources” tab, expand the “Frames” section, expand your page section, and then expand the “Scripts” section. Screenshot here
If you are seeing the gray box, as I did, it’s probably because there is some duplicate js file loaded.
You can test to see what plugin is causing the error by disabling your plugins one by one.
Keep in mind that the theme can also load a duplicate file. You can see that by going to your theme folder and checking header.php and footer.php. This is usually the place where JS files are loaded if the wp_enqueue_script function is not used.
P.S: These are not “my” maps 🙂 I am not the developer of this plugin.