Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1058318
    rappapo2
    Participant

    Hi I just transferred a site from my local machine to a live server. None of the maps on the site are showing up. I am getting the javascript error: MissingKeyMapError and a warning: NoApiKeys. I didn’t see any other comments about how to resolve this issue.

    Thanks for the help!
    Kayleigh

    #1058324
    rappapo2
    Participant
    This reply has been marked as private.
    #1058335
    Jade
    Moderator

    Hi there,

    Thanks for writing back. Kindly follow this reply and others on this thread โ€“ https://community.theme.co/forums/topic/google-map-questions/#post-781101

    Hope this helps.

    Cheers!

    #1058337
    rappapo2
    Participant

    Thanks, I’m not sure that will help with this issue though. The map was working locally but not live. I’m not trying to do anything custom.

    #1058804
    Rue Nel
    Moderator

    Hello There,

    I went ahead and created a test page in your site. I can confirm that the map shows at first then displays an error alert. Would you mind providing us the url of your site with login credentials so we can take a closer look and fix the issue? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – FTP Hostname
    – FTP Username
    – FTP Password

    Donโ€™t forget to select Set as private reply. This ensures your information is only visible to our staff.

    For the meantime, please reinstall X and Cornerstone. There might be files that were corrupted and one of those maybe the files for the map.

    Thank you.

    #1058905
    rappapo2
    Participant
    This reply has been marked as private.
    #1059000
    Rue Nel
    Moderator

    Hello There,

    It turns out that this issue is related to this:
    http://googlegeodevelopers.blogspot.ca/2016/06/building-for-scale-updates-to-google.html

    To remove this, please check out this thread: https://community.theme.co/forums/topic/this-page-didnt-load-google-maps-correctly-see-the-javascript-console/

    Of if you already have your Google Map API key, please add the following code in your child theme’s functions.php file

    function my_add_frontend_scripts() {
      wp_register_script( 'cs-google-maps', 'https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY');
      wp_enqueue_script( 'cs-google-maps' );
    }
    add_action('wp_enqueue_scripts', 'my_add_frontend_scripts', 100);

    Please let us know how it goes.

    ***
    updated by Rue
    – change “vendor-google-maps” to “cs-google-maps

    #1059315
    rappapo2
    Participant

    Hey, thanks for the help! This fixed the map on the home page but not on the contact page. Any other suggestions?

    Thanks!

    #1059547
    Rad
    Moderator

    Hi there,

    Not sure what causes it, but it’s like related to your Project/API Setting. Here is the error,

    js?key=AIzaSyA7K3J11QjKvGrMZWKAksjKGpdKzQhnA6s&ver=4.5.3:32 Google Maps API error: RefererNotAllowedMapError https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error
    Your site URL to be authorized: http://www.bmrfamilylaw.com/get-in-touch/

    Your contact page isn’t authorized to load the map. I don’t know how google API Key restriction applies now, but it looks like you’ll have to assign the page you will be using the key. I’m not really sure though.

    Thanks!

    #1066799
    intelektual
    Participant

    Hello, any idea how to make marker descriptions work?
    Thanks very much
    Tom

    ***UPDATE
    My bad, they work, sorry for the mess

    #1066946
    Prasant Rai
    Moderator

    Feel free to ask us again. Have a great day! ๐Ÿ™‚

    #1067328
    rcitrin
    Participant

    So I tried this on our school site: http://techbostonacademy.org.

    I added this code:

    `wp_register_script( ‘vendor-google-maps’, ‘https://maps.googleapis.com/maps/api/js?key=MY KEY HERE’ );

    to the end of the file, and got an error, so then tried to delete the current registration and got this:

    “Fatal error: Cannot redeclare x_shortcode_google_map() (previously declared in /home/content/05/11328905/html/wp-content/plugins/cornerstone/includes/shortcodes/google-map-orig.php:6) in /home/content/05/11328905/html/wp-content/plugins/cornerstone/includes/shortcodes/google-map.php on line 47”

    Would appreciate any help you guys could offer…

    Thanks!

    #1067855
    Paul R
    Moderator

    Hi,

    It seems that you have added another function x_shortcode_google_map in your child theme.

    Kindly create a new topic then provide us with your login credentials in a separate private reply so we can take a closer look.

    Thanks

    #1068229
    xponent21
    Participant

    I was successful in making this work on another site, but I cannot get it to register on the site I am working on now:

    http://morrisondentalgroup.com

    Please help!!

    #1068601
    Jade
    Moderator

    Hi there,

    There is a JS error from the code you have added in the customizer. Kindly remove the <script></script> lines in the code and just place the google analytics code in there.

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1058318 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>