My client have this event currently: https://salda.org.au/events/lets-talk-language/
The venue’s section map isn’t displaying. I’ve set up the API key and also waited a couple of hours to see if it’d eventually start working? The inspector still shows the following error: Geocoding Service: You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account
Can you try clearing the Autoptimize cache? It looks like that plugin is serving a cached version of the Google Maps JavaScript from the time before the API key was added.
I did clear it a couple of times as I was making style changes as well – but I cleared it again this morning and it’s still showing the same.
I also just went into Autoptimise settings, turned off the option to optimise js, and cleared the cache on save. Still no change (so I’ve turned it back on).
I can try exclude specific .js from the cache – which file/s would I need to exclude?
What else can I try?
I also just went into Autoptimise settings, turned off the option to optimise js, and cleared the cache on save. Still no change (so I’ve turned it back on).
Please completely disable Autoptimise and post here once it’s been removed so I can view the source code.
Right now there’s no key shown on your requests to Google Maps.
Just to triple check, you’ve set the key in:
Event Espresso -> Venues -> Google maps -> Google Maps API Key
And you have enabled Billing on your Google Account (which is required by Google even if you don’t go over the free requests)?
Also, do you have any other plugins that load Google maps?
Event with no key set, when EE enqueues the Google Maps API js it looks like this:
https://maps.googleapis.com/maps/api/js?key=
On your site its just:
https://maps.googleapis.com/maps/api/js
So either something is using the same handle (gmap_api) for the above, or something is filtering it to remove the key.
Can you also please update to the latest version of Event Espresso? (Currently 4.9.77.p)
Viewing 4 reply threads
The support post ‘Google Maps API setup but still receive "You must use an API key" error’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.