Title: Comprehensive Google Map Plugin Jquery 1.10
Last modified: August 21, 2016

---

# Comprehensive Google Map Plugin Jquery 1.10

 *  Resolved [jdunneirl](https://wordpress.org/support/users/jdunneirl/)
 * (@jdunneirl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/)
 * Plugin has stopped working as
    if (version < 1.3) {
 * evaluates to be true as 1.10 is seen as 1.1
 * This needs to be used instead
 * function compVersions(strV1, strV2) {
    var nRes = 0 , parts1 = strV1.split(‘.’),
   parts2 = strV2.split(‘.’) , nLen = Math.max(parts1.length, parts2.length);
 *  for (var i = 0; i < nLen; i++) {
    var nP1 = (i < parts1.length) ? parseInt(parts1[
   i], 10) : 0 , nP2 = (i < parts2.length) ? parseInt(parts2[i], 10) : 0;
 *  if (isNaN(nP1)) { nP1 = 0; }
    if (isNaN(nP2)) { nP2 = 0; }
 *  if (nP1 != nP2) {
    nRes = (nP1 > nP2) ? 1 : -1; break; } }
 *  return nRes;
    };
 * compVersions(’10’, ‘10.0’); // 0
    compVersions(‘10.1’, ‘10.01.0’); // 0 compVersions(‘
   10.0.1’, ‘10.0’); // 1 compVersions(‘10.0.1’, ‘10.1’); // -1
 * [http://wordpress.org/plugins/comprehensive-google-map-plugin/](http://wordpress.org/plugins/comprehensive-google-map-plugin/)

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/page/2/?output_format=md)

 *  [crienoloog](https://wordpress.org/support/users/crienoloog/)
 * (@crienoloog)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/#post-3987625)
 * Can you please be a little bit more clearer on this fix please?
    Like which file,
   line, which lines to change into what?
 * Thanks
 *  Thread Starter [jdunneirl](https://wordpress.org/support/users/jdunneirl/)
 * (@jdunneirl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/#post-3987626)
 * Hi,
 * The problem is jquery that is shipping with WordPress 3.6 is using 1.10.x
 * You are checking the jquery version in the plugin to see if it’s less then 1.3
 * The check you are using is reading
 * If jquery version is less then 1.3 show message…
 * Jquery 1.10 is been seen as 1.1 in you if statement
 * I have done a search and found a number of instances of this check. Sorry I am
   not in the office now to tell you where it is exactly but search for 1.3 in your
   code swap the parseInt(jquery version) < 1.3 with the function above
 * J
 *  [Josh Kohlbach](https://wordpress.org/support/users/jkohlbach/)
 * (@jkohlbach)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/#post-3987859)
 * Bump.. Is this going to be fixed soon? I’m seeing a nasty message box popup on
   a client’s website. Not such a great front end experience IMHO, these messages
   would be more appropriate to be displayed as an admin interface message.
 *  [pha3z](https://wordpress.org/support/users/pha3z/)
 * (@pha3z)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/#post-3987860)
 * [@jdunneirl](https://wordpress.org/support/users/jdunneirl/)
 * Thanks for posting the cause of this. Helps out some of the rest of us. 🙂
 *  [wallyO](https://wordpress.org/support/users/wallyo/)
 * (@wallyo)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/#post-3987861)
 * In the file
    `wp-content\plugins\comprehensive-google-map-plugin\assets\js\cgmp.
   framework.js` find the code
 *     ```
       var version = parseFloat($.fn.jquery);
       if (version < 1.0) {
       	alert(CGMPGlobal.errors.oldJquery);
       	//Logger.fatal("Client uses jQuery older than the version 1.3.0. Aborting map generation ..");
       	return false;
       }
       ```
   
 * and replace it with
 *     ```
       function compVersions(strV1, strV2) {
       var nRes = 0
       , parts1 = strV1.split('.')
       , parts2 = strV2.split('.')
       , nLen = Math.max(parts1.length, parts2.length);
   
       for (var i = 0; i < nLen; i++) {
       var nP1 = (i < parts1.length) ? parseInt(parts1[i], 10) : 0
       , nP2 = (i < parts2.length) ? parseInt(parts2[i], 10) : 0;
   
       if (isNaN(nP1)) { nP1 = 0; }
       if (isNaN(nP2)) { nP2 = 0; }
   
       if (nP1 != nP2) {
       nRes = (nP1 > nP2) ? 1 : -1;
       break;
       }
       }
   
       return nRes;
   
       };
   
       var strV1 = "1.3";
       var strV2 = $.fn.jquery;
       //alert(compVersions(strV1, strV2));
   
       if (compVersions(strV1, strV2) > 0) {
       	alert(CGMPGlobal.errors.oldJquery);
       	//Logger.fatal("Client uses jQuery older than the version 1.3.0. Aborting map generation ..");
       	return false;
       }
       ```
   
 * Save this file.
    **That file is not actually used by the plugin, it is the formatted
   version for humans to read and edit.** The file that is used is `wp-content\plugins\
   comprehensive-google-map-plugin\assets\js\cgmp.framework.min.js` So now copy 
   the contents of framework.js to framework.min.js then save again. The plugin 
   should work now. If you know how to minify a js file then minify framework.min.
   js and save again.
 *  [wallyO](https://wordpress.org/support/users/wallyo/)
 * (@wallyo)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/#post-3987862)
 * I really like your plugin by the way.
    It is the most feature rich Google maps
   plugin out of the 4 I have tried.
    1. Geo-coordinate locations with labels
    2. Custom marker pins
    3. kml overlays
    4. Available in any content type I want
    5. **Awesome**
 *  [voala](https://wordpress.org/support/users/voala/)
 * (@voala)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/#post-3987864)
 * [@wallyo](https://wordpress.org/support/users/wallyo/)
 * Thank you. That worked out great.
 *  [hpephoto](https://wordpress.org/support/users/hpephoto/)
 * (@hpephoto)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/#post-3987877)
 * [@wallo](https://wordpress.org/support/users/wallo/) and [@jdunneirl](https://wordpress.org/support/users/jdunneirl/);
   thanks for the solution.
 * Keep in mind that the point of the .min.js is to strip down all unnecessary code
   to keep it fast.
 * Another point is that show an alert like this in a production environment is 
   not cool.
 * My suggestion, until the original developer fix this, is to remove the following
   line in cgmp.framework.min.js: if(1.3>m)return alert(i.oldJquery),!1;
 * That worked for me. BUT I have not tested it more than to see that it loads the
   map.
 *  [derandyk](https://wordpress.org/support/users/derandyk/)
 * (@derandyk)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/#post-3987880)
 * Got the same problem!!!!
 * Comprehensive Google Map Plugin Version 7.0.31 is incompatible with WordPress
   3.6
 *  [moluv00](https://wordpress.org/support/users/moluv00/)
 * (@moluv00)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/#post-3987887)
 * The problem is that the jQuery “live” command has been removed in jQuery versions
   1.9x and up. It has been replaced with “on”. The “on” command can replace the“
   live” command directly”.
 * I did a search and replace to change the string “.live(” to “.on(” in the wp-
   content\plugins\comprehensive-google-map-plugin\assets\js\cgmp.framework.js file,
   then saved that file as cgmp.framework.min.js in the same directory.
 * It worked like a charm.
 *  [lecoinduguitariste](https://wordpress.org/support/users/lecoinduguitariste/)
 * (@lecoinduguitariste)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/#post-3987890)
 * [@wallyo](https://wordpress.org/support/users/wallyo/)
 * Merci beaucoup pour cette solution!
 * Thanks a lot for your work dude!
 *  [mjtblyth](https://wordpress.org/support/users/mjtblyth/)
 * (@mjtblyth)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/#post-3987891)
 * I changed the version number from 1.1 to 0.1 and it’s working again. This is 
   after adopting a previous solution (changing it from 1.3 to 1.1) that worked 
   but then stopped working after the most recent WP update.
 * I don’t know if this is wild and reckless, but hey.
 * The files that I changed are:
 * cgmp.framework.js
    cgmp.framework.min.js
 * (Both are inside the “assets” folder.)
 *  [bilevader](https://wordpress.org/support/users/bilevader/)
 * (@bilevader)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/#post-3987894)
 * Thanks wallyO, the solution works.
 *  [Remko-Creative](https://wordpress.org/support/users/remko-creative/)
 * (@remko-creative)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/#post-3987895)
 * Or you can adjust the version in the file to 1.0!
 * Works for me 🙂
 * Oh just saw your comment mjtblyth, same solution
 *  [from ABI roger](https://wordpress.org/support/users/rogerabihostingcom/)
 * (@rogerabihostingcom)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/#post-3987896)
 * [@wally](https://wordpress.org/support/users/wally/): thanks! perfect fix.

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/page/2/?output_format=md)

The topic ‘Comprehensive Google Map Plugin Jquery 1.10’ 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/)

 * 22 replies
 * 16 participants
 * Last reply from: [wallyO](https://wordpress.org/support/users/wallyo/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/comprehensive-google-map-plugin-jquery-110/page/2/#post-3987905)
 * Status: resolved