Tagged: Activation, google maps, javascript api, map
-
AuthorPosts
-
August 25, 2016 at 9:53 pm #677752
Adding the API key to the Google portion of the Enfold theme page did the trick. That must have allowed the API key to be written into the JavaScript and/or PHP file that needed to pass it through…
August 25, 2016 at 10:24 pm #677793@edamon
Glad it’s working for you now. Though can you explain to us what you mean with “Google portion”?Best regards,
AndyAugust 25, 2016 at 10:34 pm #677801All on another thread i finally found: http://kriesi.at/documentation/enfold/how-to-register-a-google-maps-api-key/
August 25, 2016 at 10:49 pm #677811Hi,
I am having the same problem. I have updated to the latest version of enfold, added many links in google api console, added api to new google section: Theme Options – > Google Services. Still nothing. Going to try disabling plugins now.
Kind Regards,
Matthew W.
August 25, 2016 at 10:51 pm #677815I spent the last 3 hours and after setting up 3 API keys – none of which worked – also tried the Google API Plugin.
Note: After updates of WP – Enfold – all plugins – this was when I noticed maps stopped working. Originally I had Google Maps Widget Plugin installed. I used that Widget for my primary map areas. I had also used Enfold Maps Widget.
Not sure exactly what/why it worked but I deactivated Google Maps Widget plugin and Google API Plugin. Then Enfold Maps Widget worked. I prefer Google Maps Widget for easier display, etc.
So after Enfold Maps Widget worked, I reactivated Google Maps Widget plugin, and I REMOVED the API key and now they both work.
Just FYI, I tried the API key in Google Maps Widget settings, Google API Plugin and Enfold Google Services – didn’t seem to work in any combination – only when I removed it.
Hope this helps someoneAugust 25, 2016 at 10:59 pm #677823Just finished deactivating plugins, one by one and checking the website. Did not help, plugins are now reactivated. I also noticed it loads the map for all of a second and it actually loads the right area even, then it switches to the “Opps” message.
Here are my console messages in case they help:
contact:188 Uncaught SyntaxError: Invalid or unexpected token
Google Maps API error: MissingKeyMapError js?v=3.6&callback=aviaOnGoogleMapsLoaded:35
https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error_.bb @ js?v=3.6&callback=aviaOnGoogleMapsLoaded:35
util.js:221Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
util.js:221Google Maps API warning: RetiredVersion https://developers.google.com/maps/documentation/javascript/error-messages#retired-version
August 25, 2016 at 11:04 pm #677829That’s what mine essentially said too, and once i added the key to the “Google Services” area of the Enfold theme and saved it, it worked. FWIW, i also added the Google API key to the Events plugin under “Maps”. Can’t see why that would matter, but maybe it did. Also tried disabling and reenabling all plugins, no joy there. See my previous post for the link to the “Google Services” tutorial. Maybe I just finally got lucky after some time fighting with it…
August 25, 2016 at 11:05 pm #677830Also might want to try generating new API keys and stick those in and see what pops…
August 25, 2016 at 11:09 pm #677834I tried removing my map widget altogether. The map on the contact page still does not work. I also already tried new API keys, I am on my 5th.
August 25, 2016 at 11:30 pm #677841Often it takes a while for the API key to work. Also consider clearing cache, DNS to check it. I use Wordfence security plugin and sometimes that is a problem.
After trying every combination I could think of, the only thing that worked was removing the API key.
One other thought – I have a Google account for each client, but it is through their domain. In other circumstances, my gmail account worked….
I have always had difficulty with API keys, but never as much as this time.August 25, 2016 at 11:37 pm #677843This is from the author of the Google Maps Widget plugin in response to a review:
“We have more than enough instructions for generating the key + a really helpful forum if anything goes wrong. And you don’t even need an API key for your maps to work properly. But still, thank you for registering just to express your opinion.”August 26, 2016 at 12:22 am #677856I cleared the cache a lot and during every step of troubleshooting. For the time being, I give up. My maps were working fine until a few days ago I loaded it and they no longer work. I am tempted to code it into the page myself.
August 26, 2016 at 10:57 am #678045Hi,
if you have problems although using a default WordPress theme + the Google API Key Plugin then please contact Google and WordPress support about it, cause we can’t do much in that case.
Best regards,
AndyAugust 26, 2016 at 11:12 am #678048Hi guys,
the maps on our website-frontend kept saying “Ooops! Something went wrong”, too. And setting up maps in the backend is not working either. At last I got the frontend maps back to live with a workaround:
First things first: As of June 22, 2016 Google made changes to the Google Maps APIs Standard Plan -> http://googlegeodevelopers.blogspot.de/2016/06/building-for-scale-updates-to-google.html
This means: Developers (and this is not only meant for theme or plugin developer, also for those that buy these plugins and themes and use them) have to set up an API key!Kriesi has already set up a documentation about “How to set up an API key” here -> http://kriesi.at/documentation/enfold/how-to-register-a-google-maps-api-key/
Since some of the maps still didn’t want to show up on the frontend website, I added the exact URLs into the API console, as @swissclick already described here -> https://kriesi.at/support/topic/google-maps-not-working-10/#post-676616
That helped with all the maps, that are set in to a page in full width. But we also have some small maps and they kept showing the errors.
So the javascript console helped at this time by showing something like “InvalidKey” even though I had set up the Google Maps API Key in the options of the enfold theme.
Then I added
<script src="https://maps.googleapis.com/maps/api/js?libraries=places&key=your_api_key_here"></script>
before the closing
</body>
in my footer.php, reloaded the page wich displayed the errors until then and voilá, the map is now working correctly, the error is gone.What still doesn’t work is the setup of a new map in the editor. The translation of an address into geo coordinates does not work. So both of this looks like it needs to be fixed, because I don’t want to let this workaround stay in the code for too long.
So if anybody of you has any idea on how to fix this last problem, I’d be more than happy.
Thanks and best regards,
PatrickAugust 26, 2016 at 1:20 pm #678096hi mircotool, very greate. thank you for this details. @kriesi-team: could you check this?
August 29, 2016 at 10:33 pm #679167Hi microtool,
I added the code to my footer, no effect, added direct links (again), still nothing. The map loads at first then the message comes up. Seems like its being stopped or blocked after loading. Website is live for moderators to view.
August 29, 2016 at 11:25 pm #679193Update: Widget map is working now (I accidentally edited the wrong footer file at first).
Full width map still not working.
August 29, 2016 at 11:30 pm #679195Regenerated yet another API key from Google but this time, it worked!! Thank you for the suggestions guys.
August 30, 2016 at 8:27 am #679280As for setting up a map in the editor, I had to activate another Google Maps Geocoding API as well. It reverse looks up the given Location and translates it into Geo coordinates. So finally everything is showing up correctly. Though I would like to get rid of the footer-workaround anytime soon. Are there any ideas about that already Team Kriesi?
All the best,
Patrick (microtool)August 30, 2016 at 3:08 pm #679485Hi,
@microtool Glad it is working fine now!To be honest, this thread got very confusing, if adding your API key in Enfold theme options do not help, please create a new thread and attach temporary WP admin logins and FTP logins so we can pass them to our devs and they can look into it.
Best regards,
YigitAugust 31, 2016 at 1:40 pm #679952Everything failed and is not working again :/
August 31, 2016 at 1:47 pm #679954Hi!
One of our user posted a solution that worked for them here – https://kriesi.at/support/topic/google-map-issue-4/#post-679594
Can you please check that one as well?
If that too does not work, please start a new thread and attach temporary admin logins and FTP logins in private content field so we can look into it.Cheers!
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.