Tagged: x
-
AuthorPosts
-
June 26, 2016 at 4:52 pm #1060424
I am trying to add a Google Map to my Contact Us page via its Visual Composer element, I added the Long. and Lat., and when the page loads it shows the map for a split second, but then maps goes away and says
“Oops! Something went wrong.
This page didn’t load Google Maps correctly. See the JavaScript console for technical details.”http://ccrcofamerica.com/contact/
Thanks for your help
June 26, 2016 at 5:24 pm #1060458I saw the other threads on this issue, and tried adding this code with my Google Map API to my x-child theme function.php section:
function my_add_frontend_scripts() {
wp_register_script( ‘vendor-google-maps’, ‘https://maps.googleapis.com/maps/api/js?key=AIzaSyAM-OurPCJzDw2LjAx251FteJmWSfOSLxg’);
wp_enqueue_script( ‘vendor-google-maps’ );
}
add_action(‘wp_enqueue_scripts’, ‘my_add_frontend_scripts’, 100);But still didn’t work. Cleared cache too.
Any other ideas?
June 26, 2016 at 6:08 pm #1060491This is the issue….but not sure, yet, how to fix it…
MissingKeyMapError Error
The script element that loads the API is missing the required authentication parameter. If you are using the standard Maps JavaScript API, you must use a key parameter with a valid API key. If you are a Premium Plan customer, you must use either a client parameter with your client ID or a key parameter with a valid API key.Also telling me this:
js:92 You have included the Google Maps API multiple times on this page. This may cause unexpected errors.
June 26, 2016 at 8:34 pm #1060696Hi There,
We’re sorry you’re having this issue. Please check this thread:https://community.theme.co/forums/topic/this-page-didnt-load-google-maps-correctly-see-the-javascript-console/. Check the suggestion on reply #1060189.
Hope this helps.
June 27, 2016 at 12:03 pm #1061835OK…I tried that….added ccrcofamerica.com/* to the domains in the Google acct. Did not work. I gave it a little time too, but no luck. I assume the API should be created via the javascript API option within the google acct as a Browser type?
I added the domain exactly as suggested, ccrcofamerica.com/*, but in Google, the /* is not showing. I’ve done it 3 times now. And all that google shows is the root domain as the verified domain.
Any other thoughts? From the threads here I’ve read, it seems it’s a new Google issue?
Thank you!
June 27, 2016 at 2:51 pm #1062069Hi there,
Please try to follow what is suggested in this thread and in this thread in case the first on does not work.
Hope these helps.
June 27, 2016 at 8:27 pm #1062510The second link to a thread you suggested I look at, I tried already (see above).
I also tried the first link suggestion too…but not quite how they said to….as I am a bit confused as to what this person is suggesting: A. they say to go to http://embedgooglemaps.com/en/ and add my info to generate code. I had done this before, but inserted the RAW HTML into a RAW HTML VC element. Didn’t work
B. what’s confusing is that this person says to then use a Cornerstone text element and place the short code in the text element. SO i did that this time…copied the generated code from embedgooglemaps.com and placed it into a text element. Didn’t work.Well the site at http://embedgooglemaps.com/en/ doesn’t create short code elements that look anything like his example:
[map]<iframe frameborder=”0″ scrolling=”no” marginheight=”0″ marginwidth=”0″ src=”https://www.google.com/maps/embed/v1/place____________“></iframe>[/map]And if I wanted to copy his example instaed, I just don’t know how to generate the portion: ”https://www.google.com/maps/embed/v1/place____________“
June 28, 2016 at 7:57 am #1063141Hi there @m4s,
Thanks for writing back!
Would it be possible for you to provide some WP admin login details in a private reply please so we can take a closer look at this for you? 🙂
Thanks!
June 28, 2016 at 12:50 pm #1063637This reply has been marked as private.June 29, 2016 at 12:26 pm #1065195Hi there m4s,
Thanks for writing back!
Just wanted to confirm, we’ve confirmed this as a bug, there is a update to Visual Composer which is currently undergoing testing by us and if all goes well, we’ll push the update out within 24-48 hours.
Thank you!
June 30, 2016 at 5:24 pm #1067426Great…thanks so much Jack.
June 30, 2016 at 7:32 pm #1067527Happy to hear that.
Feel free to ask us again
Thanks.
July 12, 2016 at 4:23 pm #1083807Any updates with the Visual Composer update that supposedly fixes the issue with the Google Maps API? (I am referring to what Jack said in his comment above)
BTW, I tried it with Cornerstone too (as opposed to VC) and same issue with Google Maps. I also tried Map Quest instead, got the same error issue.
Thanks
July 13, 2016 at 3:19 am #1084456Google Map API key field is now available in Cornerstone (see http://theme.co/changelog/#cornerstone-1-3-0).
Thanks.
July 13, 2016 at 2:22 pm #1085446Perfect! Thanks….that works now I see.
-
AuthorPosts