It is currently not compatible with the jquery version throws warning by a popup and do not work.
Agreed. The problem seems to be in the use of parseFloat, which sees (for example) “1.10.1” and returns “1.1”.
You will not be able to do a straight numerical greater-than/less-than comparison using jQuery’s version number string format. This plugin should use a different method to compare versions, one which splits up the string and compares the major, minor and increment separately, as discussed here:
Is there any solution to apply to comprehensive google map plugin to avoid this issue ?
I’ve done it by replacing the relevant popup conditional with ‘false’.
comprehensive-google-map-plugin/assets/js/cgmp.framework.min.jsfile, I replaced this bit of code (near the end of the file, line 33 in my editor):
By doing this, the conditional that checks the version always returns false, which in this case means ‘not a problem’, and so the alert doesn’t appear.
The change is applied to the .min.js file because that’s the one the plugin actually loads.
Because the file is minimized, everything all runs together, so you’ll want to work carefully.
thank you gozoinks- having the same problem and working on fixing this now.
Another workaround: just disable the alert and ensure you’re always loading the right jQuery.
(edited; Sorry, I posted some code without proper testing.)
Will there be a fix for this problem issued by the plugin author?
@gozoinks .. thank you. But .. how can I figure out what plugin (if that’s what it is) that is using the older jQuery? How do I go about correcting the jQuery so I can have it use the newer one for this plugin .. so all will be happy in the future? Any advice? (I saw mentioned “The problem seems to be in the use of parseFloat” .. but I’m not sure what this means exactly and how to get this issue to be resolved .. correctly, and not just a patch. haha
Hi all, this is not an error from the “Comprehensive Google Map Plugin”, this is a global known error in WordPress, follow this link for more details and solution:
WordPress 3.6 and jQuery.BlockUI Version problem – solution
But the fix above (replacing the bit of code) works very well and is simple to do :))
Thx for all guys !
Please update to v.8.0.1 and give it a go again
- The topic ‘jQuery error’ is closed to new replies.