Tagged: x
-
AuthorPosts
-
June 24, 2016 at 12:39 pm #1058318
rappapo2ParticipantHi 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!
KayleighJune 24, 2016 at 12:47 pm #1058324
rappapo2ParticipantThis reply has been marked as private.June 24, 2016 at 1:01 pm #1058335
JadeModeratorHi 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!
June 24, 2016 at 1:06 pm #1058337
rappapo2ParticipantThanks, 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.
June 24, 2016 at 8:18 pm #1058804
Rue NelModeratorHello 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 PasswordDonโ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.
June 24, 2016 at 10:14 pm #1058905
rappapo2ParticipantThis reply has been marked as private.June 25, 2016 at 12:55 am #1059000
Rue NelModeratorHello There,
It turns out that this issue is related to this:
http://googlegeodevelopers.blogspot.ca/2016/06/building-for-scale-updates-to-google.htmlTo 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“June 25, 2016 at 10:52 am #1059315
rappapo2ParticipantHey, thanks for the help! This fixed the map on the home page but not on the contact page. Any other suggestions?
Thanks!
June 25, 2016 at 5:55 pm #1059547
RadModeratorHi 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!
June 30, 2016 at 10:08 am #1066799
intelektualParticipantHello, any idea how to make marker descriptions work?
Thanks very much
Tom***UPDATE
My bad, they work, sorry for the messJune 30, 2016 at 11:52 am #1066946
Prasant RaiModeratorFeel free to ask us again. Have a great day! ๐
June 30, 2016 at 4:03 pm #1067328
rcitrinParticipantSo 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!
June 30, 2016 at 10:22 pm #1067855
Paul RModeratorHi,
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
July 1, 2016 at 6:45 am #1068229
xponent21ParticipantI 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!!
July 1, 2016 at 12:11 pm #1068601
JadeModeratorHi 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1058318 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
