DarrellDeveloper
Forum Replies Created
-
Forum: Plugins
In reply to: [Easy2Map] Broken in WP 3.6Hello.
Wordpress actually offers a very good way to load JS files (wp_enqueue_script – http://codex.ww.wp.xz.cn/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.Forum: Plugins
In reply to: [Easy2Map] Broken in WP 3.6If 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.
Forum: Plugins
In reply to: [ZM Ajax Login & Register] Facebook Login/RegisterFacebook Login doesn’t work on WP 3.6. [August 4th 2013]