WordPress.org

Ready to get started?Download WordPress

Forums

Comprehensive Google Map Plugin
[resolved] Map is not loading, grey screen (17 posts)

  1. wzshop
    Member
    Posted 6 months ago #

    Hey,
    They map is not loading. all i see is a grey screen. IE says:

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Timestamp: Mon, 20 Jan 2014 07:10:17 UTC

    Message: Object doesn't support this property or method
    Line: 28
    Char: 114
    Code: 0
    URI: http://lwpa.teelenwebmarketing.nl/wp-content/plugins/comprehensive-google-map-plugin/assets/js/cgmp.framework.min.js?ver=9.0.20

    How can i fix this?

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

  2. alexanderzagniotov
    Member
    Plugin Author

    Posted 6 months ago #

    Hey

    Thank you for providing the error message. I am traveling now and cannot check your site.
    But, based on what you provided I suspect it had to do with jQuery:

    Please read the following post and confirm whether this is your case:
    http://wordpress.org/support/topic/why-my-map-suddenly-shows-only-a-gray-square-after-a-recent-update

  3. alexanderzagniotov
    Member
    Plugin Author

    Posted 6 months ago #

    Just make sure that the active jQuery on your site is of version 1.9+. I say "active" is because some plugins/themes disable loading of jQuery shipped with WordPress by default and instead load older versions.

    Also, if you ARE using an older jQuery than version 2.9 (maybe due to your theme) and cannot upgrade, please make sure you have installed and activated jQuery Migrate plugin (http://wordpress.org/plugins/jquery-migrate/)

  4. alexanderzagniotov
    Member
    Plugin Author

    Posted 6 months ago #

    Sorry, I was on the go last time and my reply to you does not make much sense. Please find a more adequate response:

    The active jQuery version on your site is 1.6.1. It is one of your plugins (or perhaps the theme itself) loaded an outdated jQuery in your site's FOOTER from external CDN: https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js . The latter disabled jQuery v1.10.2 shipped with your WordPress by default (which was loaded in your site's HEADER). I will explain what it means for you.

    But before, I want to point something out: it is a an excellent practice to load JS resources from external CDNs (it can speed up page load time, etc.). But having said that, your website now is restricted to jQuery v1.6.1 only.

    A much more flexible and elegant solution here would be to check the jQuery version shipped with WordPress by default, and load THAT jQuery version from external CDN. Using the latter way, it would be ensured that the WordPress eco system uses the same version as the jQuery shipped with WordPress by default.

    Now, you are stuck with an outdated jQuery in your FOOTER that messes up behavior of plugins (like mine for example and plugin "jquery-archive-list-widget" which is loaded on your blog page) that rely on jQuery shipped with WP by default, because some developer did not want to do extra work and conveniently loaded the version he needed in your FOOTER.

    I do see that you have included jQuery migrate plugin, but it is not going to work in this case. What jQuery Migrate plugin is ACTUALLY does: it prevents plugins and scripts that are using deprecated functions from breaking when you use jQuery 1.9+. In your case, the jQuery ACTIVE on your site is 1.6.1, so the migrate plugin is of no help here.

    The solution I can offer you is:
    (a) Try to identify what is loading the outdated jQuery and eliminate it
    (b) If you cannot/do not want/not able to do (a), try using another Google Map plugin because I am not going to make my plugin compatible with jQuery version older than 1.9.

    I hope this helps and I apologize for inconvenience.

  5. wzshop
    Member
    Posted 6 months ago #

    Thanks it had to do with this line in my header.php which i had to customly delete:

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>

    Not sure why that line was there, but i just deleted it. Is it possible that this (deleting the line) has some fatal errors for other parts/plugins of the site to work? I guess not right?

    Thanks.

  6. alexanderzagniotov
    Member
    Plugin Author

    Posted 6 months ago #

    Since you mentioned header.php I tend to think it was your theme's developer who hardcoded it there.

    But, now, you are using latest jQuery shipped with WP together with migrate plugin. Even if your theme needs an older jQuery, the migrate plugin is there for you

  7. wzshop
    Member
    Posted 6 months ago #

    thanks for your awesome support and plugin!
    cheers!

  8. alexanderzagniotov
    Member
    Plugin Author

    Posted 6 months ago #

    Thanks :)

  9. galipetor
    Member
    Posted 6 months ago #

    Hi everyone.
    Since I get the same issue i was not sure about opening a nwe topic..?
    I've spent days around the forum and the web to find a solution for this issue.
    I don't really know where to look at.
    If you guys can help me, would be very appreciate.
    here's the page :
    http://anastasia-training.com/les-salles/espace-sport-dance/
    i notice that it used to work once when i didn't specifie a mark in the builder...
    thanks for the help!

  10. galipetor
    Member
    Posted 6 months ago #

    and by the way :

    Environment

    PHP v5.2.17
    MySQL v5.1.66-0+squeeze1-log

    WordPress

    WordPress v3.8
    Comprehensive Google Map Plugin v9.0.20
    Theme: Parabola, v1.3.2
    Published posts: 1
    Published pages: 10
    Published wysijaps: 1

    JavaScript

    jQuery v1.10.2
    jQuery Core v1.10.2
    jQuery UI Core v1.10.3
    jQuery Migrate v1.2.1

    Plugins known to modify global WordPress query

    Advanced Category Excluder plugin: Not installed
    Category Excluder plugin: Not installed
    Simply Exclude plugin: Not installed
    Ultimate Category Excluder plugin: Not installed

  11. galipetor
    Member
    Posted 6 months ago #

    Replying to myself.
    went back to last version 8.0 and now google kick me saying that:

    Cher blogueur / propriétaire de site,
    Google a retourné l'erreur suivante en essayant de charger le fichier KML :

    Le fichier KML n'est pas un fichier KML, KMZ ou GeoRSS valide. (INVALID_DOCUMENT)

    going back to the last version

  12. alexanderzagniotov
    Member
    Plugin Author

    Posted 6 months ago #

    v9.0.20 is giving the same error about your KML.

    Can you try not using the shortlink: "https://goo.gl/maps/KJvwl" ? Can you try using the full URL? Also, this KML has only one marker... why do not you configure this marker in the plugin without using KML?

  13. galipetor
    Member
    Posted 6 months ago #

    yeeaaaaahhhhhhsss!!!!!!
    - that was an exciting amount af Joyce that you took some of of your time answering my question - cooooooool - ...... :-) :-)
    I'm so thanks full....
    :-)

    well.
    I tried using the long address ( the one you find when you just go anywhere looking on maps... it doesn't work as well..

    Btw, you said to configure the marker without using KML?? I'm not understanding / following you?

    If i understood your work, i'm just supposed to give an address tooked in maps, specifying the size, pasting the HTML code from the builder in my page, and tadadaaaa, your magic code should appear on my page so i can see the Google map?.. no..? i missed something..?

    I'm quite a nwe-nooobs and i feel like I'll get nowhere else without your help.

    So where i'm supposed to looked at to make it worked?
    ( saying that the maps worked one time after 1047 trying without changing anything inside the properties of the wp.
    then when i tried to copy/past the code that worked further in the same page changing some value i it, all went off. )

  14. jamayk
    Member
    Posted 4 months ago #

    Hi!
    Trying to use Comprehensive Google Map Plugin, but have a problem: in shortcode builder there is no panel with geographical coordinates. So map not loading, only grey screen is seen.
    My WordPress parametres:
    Environment
    PHP v5.3.9
    MySQL v5.5.12
    WordPress
    WordPress v3.8.1
    Comprehensive Google Map Plugin v9.0.20
    Theme: Twenty Fourteen, v1.0
    Published posts: 3
    Published pages: 8
    Published nav_menu_items: 2
    Published wpsc-products: 2
    JavaScript
    jQuery v1.10.2
    jQuery Core v1.10.2
    jQuery UI Core v1.10.3
    jQuery Migrate v1.2.1
    Plugins known to modify global WordPress query
    Advanced Category Excluder plugin: Not installed
    Category Excluder plugin: Not installed
    Simply Exclude plugin: Not installed
    Ultimate Category Excluder plugin: Not installed

  15. toni-wittmann
    Member
    Posted 4 months ago #

    hi there... first of all thanks for that great plugin to the author! Works great and offers many possibilities! :-)
    I hope I can help wiht that "grey cards"! I had that, too, and I noticed, that everytime you klick on "saved shortcuts" in your WP-adminboard the ID in the shortcut (for example [google-map-v3 shortcodeid="85e0d7622a".....) of every saved shortcut changes! But an ID should stay the same, doesn´t it? Should this work like that?
    So I think this could perhaps be a bug in your code? I hope so :-) because I already tried many things to fix that "grey card" shown :-)

    would be great to hear from you.
    Thanks a lot!

    Toni

  16. julesibulesi
    Member
    Posted 4 months ago #

    Hey there.
    I seem to have the same problem. Hard-coded the latest jQuery version into my functions.php, but no success. Site info as per the plugin page:
    Environment

    PHP v5.4.24-nmm1
    MySQL v5.5.35-nmm1-log
    WordPress

    WordPress v3.8.1
    Comprehensive Google Map Plugin v9.0.20
    Theme: nullachtvierzehn, v1.0
    Published posts: 5
    Published pages: 1
    JavaScript

    jQuery v1.10.2
    jQuery Core v1.10.2
    jQuery UI Core v1.10.3
    jQuery Migrate v1.2.1
    Plugins known to modify global WordPress query

    Advanced Category Excluder plugin: Not installed
    Category Excluder plugin: Not installed
    Simply Exclude plugin: Not installed
    Ultimate Category Excluder plugin: Not installed

    The theme, so far, is a barebone _s.
    http://nullachtvierzehn.info/
    pw: forWPusers

    Thank you!

  17. bensontheartist
    Member
    Posted 3 months ago #

    Hi Alexander! I have a big problem with the map. When it worked I loved it but what is the problem now? Please check http://www.eatsweden.se/skane/ Thank u!

    Anna

Reply

You must log in to post.

About this Plugin

About this Topic

Tags