WordPress.org

Ready to get started?Download WordPress

Forums

Comprehensive Google Map Plugin
Plugin was working great but has stopped?! (40 posts)

  1. russelldav
    Member
    Posted 2 years ago #

    Hi,

    I am setting up a website and installed the plugin - everything was working great. I use it on this static page: http://www.bellyindelhi.com/where-am-i/ and also experimented with using it in a test post here: http://www.bellyindelhi.com/second-test-post/. It has since stopped working though, and I'm not sure why. Can you help?

    Russell

    http://wordpress.org/extend/plugins/comprehensive-google-map-plugin/

  2. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, will have to check in a few hours as I am on the way to work.
    Regards

  3. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, when checking HTML source of your site, I saw that something loading jQuery library again on top of default jQuery provided by WP:

    ajax.googleapis.com/ajax/libs/jquery/1/jquery.js?ver=3.3.1

    This is not good.

    I hope this helps

  4. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Propbably, one of your plugins

  5. russelldav
    Member
    Posted 2 years ago #

    Ok, thanks - I'll take a look.

  6. russelldav
    Member
    Posted 2 years ago #

    Hi Alex, I've tried deactivating each of my other plugins in turn but can't seem to get the map to load. Are you able to identify which plugin/other instance of jQuery is causing the issue?

  7. russelldav
    Member
    Posted 2 years ago #

    Ignore that - I found the problem plugin. It's called "DM Albums". Is there another good album plugin you can recommend that is compatible with your map plugin?

  8. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Hold to that thought , I will apply a fix tonight that should allow you to run the album
    plugin

  9. aferrazlr
    Member
    Posted 2 years ago #

    Plugin is now broken with the following error on Chrome:
    "Uncaught ReferenceError: jQueryCgmp is not defined"

  10. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Hm... All works in chrome for me. What is your blog/site URL?

  11. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    My understanding is that the zoom must be set within the KML itself using some sort of configuration. I have never done it my self, so I cannot be sure.

    Also, to point something out: try not to have spaces in your file names, for example: lintonstudios.co.uk/santmap/Sant_Angelo_Italian_Restaurant_in_Wetherby.kml

  12. aferrazlr
    Member
    Posted 2 years ago #

    Hi Alexander,

    My pages that use the plugin are

    1) http://www.endiprev.com/projects

    Error "Uncaught ReferenceError: jQueryCgmp is not defined" on line 265 using the code:

    [google-map-v3 width="700" height="350" zoom="12" maptype="TERRAIN" mapalign="center" latitude="0" longitude="0" kml="http://www.endiprev.com/share/endiprev-projects.kml" showmarker="true" animation="DROP" maptypecontrol="false" pancontrol="false" zoomcontrol="true" scalecontrol="false" streetviewcontrol="false" bubbleautopan="false" showbike="false" showtraffic="false" showpanoramio="false"]

    2) http://www.endiprev.com/contact

    Error "Uncaught ReferenceError: jQueryCgmp is not defined" on line 269 using the code:

    [google-map-v3 width="350" height="350" zoom="12" maptype="ROADMAP" mapalign="center" addmarkerlist="http://maps.google.pt/maps/ms?authuser=0&vps=2&hl=pt-PT&ie=UTF8&msa=0&output=kml&msid=204075953500527962928.0004b8892416f7465c729{}1-default.png" kml="http://maps.google.pt/maps/ms?authuser=0&vps=2&hl=pt-PT&ie=UTF8&msa=0&output=kml&msid=204075953500527962928.0004b8892416f7465c729" maptypecontrol="true" pancontrol="true" zoomcontrol="true" scalecontrol="true" streetviewcontrol="true" bubbleautopan="true" showbike="false" showtraffic="false" showpanoramio="false"]

    This is using Chrome (18.0.1025.11 beta-m) Developer Tools.

    Thanks a lot!

  13. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Hi thank you for the info.
    Just to confirm, are you using Chrome beta version? If yes, have you tested it on stable Chrome?

    Another question - in the second shortcode, why did you put that URL in the 'addmarkerlist'?
    What are you trying to achieve ? That property is not for URLs, but for address strings or latitude,longitude...

    I will have a look at ur problem ASAP
    Cheers

  14. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Ok.... your problem has nothing to do with Chrome... Same thing in every browser. When inspecting HTML source of your pages (both) where the map is, I could not see plugin scripts loaded!

    The "...wp-content/plugins/comprehensive-google-map-plugin/assets/js/cgmp-framework.min.js?ver=6.0.1.." is not there!

    I noticed that you are using W3 Total Cache, I cant be sure whether it is because of some caching or not. I am not sure.

    All I can say, try to re install the plugin, but before try to clear the W3Total cache

    I hope this helps...

  15. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    @russelldav, did you update to the recent version 6.0.1? Can you confirm if there are any problems?

  16. russelldav
    Member
    Posted 2 years ago #

    Alex, I've a feeling I'm still in 6.0.0. which is now working beautifully. I'll try it and let you know. Bear with me though - I'm moving from the UK to India this weekend so have lots of things to do :op

  17. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Kewl and good luck!

  18. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    @aferrazlr,

    The W3 Total Cache minified all JS, which is fair enough. But its minifications caused some problems, it got rid of the jQueryCgmp variable that I am using...

  19. aferrazlr
    Member
    Posted 2 years ago #

    Hi Alexander,

    Indeed W3 Total Cache was the problem, and it is out of the scene! :)

    Thank you very much for your time!
    Your plugin is the BEST!

    Cheers,
    André

  20. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Try WordPress Quick Cache plugin.... I use it and really like it!

  21. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you :)
    You can "star" me if you want to :)

  22. aferrazlr
    Member
    Posted 2 years ago #

    5 star'ed ;)

  23. russelldav
    Member
    Posted 2 years ago #

    Running 6.0.3. and all appears to work ok :o)

  24. manakuke
    Member
    Posted 2 years ago #

    Love your plugin. Deserves the title "comprehensive".

    I also was successful in using it several days ago, and now I can’t get it to work on any sites. I am running WP 3.3.1 multi-site. I’ve tried adding a new site without any plugins except this one with no luck. I was just using the basic KML URL. A map is showing, but zoomed in all the way in the middle of the ocean off the coast of Africa. If I zoom out and go to where the saved places are suppose to show up on the map, the markers are not there.

    Here’s my test site: http://so-media.lasalle.edu/muto/

    Here's the Google Places that worked previously: http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=115313511168238002318.0004921b75221d82bc8c6&z=12

    I have the following plugins set as must use across all my sites (they were all active when the map was working previously). The only change among them was I added some code regarding failed logins to our CAS authentication plugin (wpcas-conf.php):
    BNS Login
    General Headers & Footers
    Odiogo Listen Button
    Organization Definition
    Secure WordPress
    Simple Code Embed
    Viper’s Video Quicktags
    WP-Mail-SMTP
    wpCAS
    wpcas-conf.php
    WPMU Custom CSS

  25. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Mike,

    "I also was successful in using it several days ago" -->
    a/ How many days ago was that?
    b/ Was it the same version of the map plugin that suddenly stopped working?
    c/ Did you use KML URL when the plugin was working successfully?
    d/ If you did use KML URL all along, was it the same KML URL?

    Regards,
    Alex

  26. manakuke
    Member
    Posted 2 years ago #

    This past Monday, Feb 20. Just noticed that it wasn't working yesterday. Same version (just installed it Monday and it was working fantastic), then an end user client went to add a new map, and it didn't work. I had left the original test map intact (that had been working on Monday) and saw that it no longer was working. Thought it might be a plugin conflict, so started a completely new site to test with no luck. It was the same KML URL (that I used on Monday when it worked and which I used on the new test site).

    This was the original test using the KML URL from the Google Places map link from above:
    http://so-media.lasalle.edu/lasalleservicepartners/?page_id=496

  27. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, manakuke.

    Google returns an error for your KML URL:

    INVALID_DOCUMENT:
    The document is not a valid KML, KMZ or GeoRSS document.

    So it is not a plugin, it is coming from Google itself.

    The Google Maps API supports the KML and GeoRSS data formats for displaying geographic information. Perhaps the URL (although coming from Google itself), is not in the valid format

    I hope this helps

  28. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Although you can paste the URL: http://maps.google.com/maps/ms?ie=utf8&hl=en&msa=0&msid=115313511168238002318.0004921b75221d82bc8c6&z=12 into a browser and see the generated map with markers, when you view the source it is not in valid format. Google expects to find in the source something of a similar style (some example):

    <?xml version="1.0" encoding="UTF-8"?>
    <kml xmlns="http://earth.google.com/kml/2.1">
    <!-- Data derived from:
           Ed Knittel - || tastypopsicle.com
           Feel free to use this file for your own purposes.
           Just leave the comments and credits when doing so.
    -->
      <Document>
        <name>Chicago Transit Map</name>
        <description>Chicago Transit Authority train lines</description>
    
        <Style id="purpleLine">
          <LineStyle>
            <color>ffcc00cc</color>
            <width>4</width>
          </LineStyle>
        </Style>
        <Style id="yellowLine">
          <LineStyle>
            <color>ff61f2f2</color>
            <width>4</width>
          </LineStyle>
        </Style>
    
        <Placemark>
          <name>Blue Line</name>
          <styleUrl>#blueLine</styleUrl>
          <LineString>
            <altitudeMode>relative</altitudeMode>
            <coordinates>
    -87.89289951324463,41.97881025520548,0
    -87.89184808731079,41.97788506340239,0
            </coordinates>
          </LineString>
        </Placemark>
    
      </Document>
    </kml>

    In other words, when you pass KML information to Google, does not matter from which plugin, it expected to be in a certain format. Hence the error: "The document is not a valid KML, KMZ or GeoRSS document."

  29. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Ok, I know what happened!

    You/client used the wrong URL! The right URL is this one:
    http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&output=kml&msid=214658171961153321121.0004921b75221d82bc8c6

    In order to get the above, open the http://maps.google.com/maps/ms?ie=utf8&hl=en&msa=0&msid=115313511168238002318.0004921b75221d82bc8c6&z=12 in the browser, find a little link "KML" or click in the little blue Google Earth square icon under the "SJU Freshman Service-Learning Sites", right click there and copy the URL. Then you can use the copied URL in the plugin.

    I believe you owe me some stars for that :P

    See the screenshot, it works on my test site:
    https://skitch.com/azagniotov/8rmc8/initbinder-just-another-wordpress-site

  30. manakuke
    Member
    Posted 2 years ago #

    Stars given!. Great support!

    I think something else funky is happening on my end, probably a plugin. It appears that in the javascript it is replace all "&" with "&"

    So instead of:
    http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&output=kml&msid=214658171961153321121.0004921b75221d82bc8c6

    I get:
    http://maps.google.com/maps/ms?ie=utf8&hl=en&msa=0&output=kml&msid=214658171961153321121.0004921b75221d82bc8c6

    Here's the shortcode that I saved.

    [google-map-v3 width="350" height="350" zoom="12" maptype="ROADMAP" mapalign="center" addmarkermashupbubble="false" addmarkermashupbubble="false" kml="http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&output=kml&msid=214658171961153321121.0004921b75221d82bc8c6" maptypecontrol="true" pancontrol="true" zoomcontrol="true" scalecontrol="true" streetviewcontrol="true" scrollwheelcontrol="false" bubbleautopan="true" showbike="false" showtraffic="false" showpanoramio="false"]

    I was able to get it working on another old site that I haven't used for a while. This leads me to believe it may also be some plugin I have installed, perhaps the theme, but most likely a plugin.

    Supper thanks for all your help! Great developer!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic