Title: jQuery error
Last modified: August 21, 2016

---

# jQuery error

 *  Resolved [ankitgadertcampcom](https://wordpress.org/support/users/ankitgadertcampcom/)
 * (@ankitgadertcampcom)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/jquery-error-16/)
 * It is currently not compatible with the jquery version throws warning by a popup
   and do not work.
 * [http://wordpress.org/plugins/comprehensive-google-map-plugin/](http://wordpress.org/plugins/comprehensive-google-map-plugin/)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  [gozoinks](https://wordpress.org/support/users/gozoinks/)
 * (@gozoinks)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/jquery-error-16/#post-4250595)
 * 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:
 * [http://stackoverflow.com/questions/1073423/jquery-plugin-check-version/3113749#3113749](http://stackoverflow.com/questions/1073423/jquery-plugin-check-version/3113749#3113749)
 * In particular:
 * [http://phpjs.org/functions/version_compare/](http://phpjs.org/functions/version_compare/)
 *  [poco06](https://wordpress.org/support/users/poco06/)
 * (@poco06)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/jquery-error-16/#post-4250625)
 * Hello,
 * Is there any solution to apply to comprehensive google map plugin to avoid this
   issue ?
    Thanks Pat
 *  [gozoinks](https://wordpress.org/support/users/gozoinks/)
 * (@gozoinks)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/jquery-error-16/#post-4250629)
 * I’ve done it by replacing the relevant popup conditional with ‘false’.
 * In the `comprehensive-google-map-plugin/assets/js/cgmp.framework.min.js` file,
   I replaced this bit of code (near the end of the file, line 33 in my editor):
 * `m=parseFloat(a.fn.jquery);if(1.3>m)return alert(i.oldJquery),!1;`
 * with this:
 * `m=parseFloat(a.fn.jquery);if(false)return alert(i.oldJquery),!1;`
 * 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.
 * This isn’t an actual fix, of course; it just silences the Javascript alert() 
   popup.
 *  [poco06](https://wordpress.org/support/users/poco06/)
 * (@poco06)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/jquery-error-16/#post-4250630)
 * Good
 * Many thanks for your support.
    Pat
 *  [marciaivey](https://wordpress.org/support/users/marciaivey/)
 * (@marciaivey)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/jquery-error-16/#post-4250646)
 * thank you gozoinks- having the same problem and working on fixing this now.
 *  anonymized-13171256
 * (@anonymized-13171256)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/jquery-error-16/#post-4250662)
 * Another workaround: just disable the alert and ensure you’re always loading the
   right jQuery.
 * (edited; Sorry, I posted some code without proper testing.)
 *  [mbdev](https://wordpress.org/support/users/mbdev/)
 * (@mbdev)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/jquery-error-16/#post-4250676)
 * Will there be a fix for this problem issued by the plugin author?
 *  [lornix](https://wordpress.org/support/users/lornix/)
 * (@lornix)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/jquery-error-16/#post-4250685)
 * [@gozoinks](https://wordpress.org/support/users/gozoinks/) – worked like a charm–
   many thanks!
 *  [Gary Gordon](https://wordpress.org/support/users/garymgordon/)
 * (@garymgordon)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/jquery-error-16/#post-4250690)
 * [@gozoinks](https://wordpress.org/support/users/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
 *  [SuperDupont](https://wordpress.org/support/users/superdupont/)
 * (@superdupont)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/jquery-error-16/#post-4250720)
 * 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
    [http://wordpress.org/support/topic/wordpress-36-and-jqueryblockui-version-problem-solution?replies=22](http://wordpress.org/support/topic/wordpress-36-and-jqueryblockui-version-problem-solution?replies=22)
 *  [SuperDupont](https://wordpress.org/support/users/superdupont/)
 * (@superdupont)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/jquery-error-16/#post-4250721)
 * But the fix above (replacing the bit of code) works very well and is simple to
   do :))
    Thx for all guys !
 *  Plugin Contributor [alexanderzagniotov](https://wordpress.org/support/users/alexanderzagniotov/)
 * (@alexanderzagniotov)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/jquery-error-16/#post-4250728)
 * Please update to v.8.0.1 and give it a go again
 *  Plugin Contributor [alexanderzagniotov](https://wordpress.org/support/users/alexanderzagniotov/)
 * (@alexanderzagniotov)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/jquery-error-16/#post-4250730)
 * The issue has been resolved in v8.0.1

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘jQuery error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/comprehensive-google-map-plugin_e2e4ef.
   svg)
 * [Comprehensive Google Map Plugin](https://wordpress.org/plugins/comprehensive-google-map-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/comprehensive-google-map-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/comprehensive-google-map-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/comprehensive-google-map-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/comprehensive-google-map-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/comprehensive-google-map-plugin/reviews/)

 * 13 replies
 * 10 participants
 * Last reply from: [alexanderzagniotov](https://wordpress.org/support/users/alexanderzagniotov/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/jquery-error-16/#post-4250730)
 * Status: resolved