Home › Forums › Calendar Products › Events Calendar PRO › Google Maps: No API Key error
- This topic has 24 replies, 9 voices, and was last updated 9 years, 11 months ago by
Leah.
-
AuthorPosts
-
March 14, 2016 at 9:23 am #1088502
Yan
ParticipantHi,
Anybody has the same problem in the console when trying to search for a location?
Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keysURL: http://hash.events/events/map/
The problem appears when trying to search a locationMarch 15, 2016 at 5:01 pm #1089419Hunter
ModeratorHey Yan,
I am seeing the same issue in my error console, so we’ve gone ahead and created a ticket in our bug logging system. I’m not exactly sure on the impact the error is currently having, but the developers have been made aware of the issue and are prioritizing accordingly.
Thanks for reporting the issue to our forums as we’re always grateful to have the many eyes and ears of our wonderful community looking after us! Stay tuned to your wp-admin and theeventscalendar.com/blog for release information.
Have a great remainder of your week and thanks for choosing PRO!
March 21, 2016 at 7:16 am #1091740Oystein
ParticipantSame error in console here. Appears on Event detail page.
March 21, 2016 at 9:44 am #1091861Hunter
ModeratorHey Oystein 🙂
As aforementioned, hang tight for a potential fix in an upcoming maintenance release. We’re aware of the issue and hopefully can get it addressed here shortly!
Thanks for the patience and have a good week. Cheers!
March 29, 2016 at 3:30 pm #1095662Erin
Participant+1
I’m also seeing this. My location searches are coming up with “No results” and I’m wondering if it’s related. For the previous posters, is the Search Near feature still working for you?
March 30, 2016 at 12:12 am #1095760Yan
ParticipantHi Erin,
Can confirm, search feature is not working (returning all events) and still getting the API error message.
March 30, 2016 at 7:18 pm #1096206Hunter
ModeratorHello and welcome back,
I just tested to see if the Search Near function works and it appears to be for me. We have the issue [venues results not appearing when using Search field] logged and planned to be addressed shortly, so hold tight while we work towards that resolution!
March 31, 2016 at 7:14 am #1096363Yan
ParticipantSearch Near function works, my bad.
When updating a venue in the backend, i get the following error:
The latitude and longitude for your venue could not be fetched. The Google Maps API daily query limit has been reached!Since the Google Maps Javascript API is not defined by IP but by website Source , I would like to add my own API key that I generated.
Now that I have my own API key, do you know how to integrate it with theventscalendar?
I tried to following
<script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"> </script>but I still get the ‘NO API Key’ Error
Thanks!
March 31, 2016 at 8:46 am #1096416Erin
ParticipantOkay thanks. Yes, I’ve tried switching to the Twenty Fifteen theme and turning off all plugins and the Search Near function is not working on my end. If it’s something that’s just happening to me, I’m not sure what else to do to troubleshoot.
March 31, 2016 at 8:47 am #1096418Yan
ParticipantNevermind, I have the same problem as Erin. Search Near function doesn’t work.
Maybe it’s a database issue?
March 31, 2016 at 10:31 am #1096504Hunter
ModeratorHello,
Running the latest versions, you can see the Near function appears to be working when searching for a city or state (see screenshot below), but it doesn’t seem to find events when searching for a specific venue name that does have upcoming events attached to it. This is the same case when searching for venue names in the Search field.

This thread is attached to the logged bug for the developers to reference to, so please hang tight while we work on this. Thank you for the updates and enjoy your Thursday.
April 11, 2016 at 9:33 am #1100848Yan
ParticipantThis issue has been fixed by doing the following:
1) Go to /plugins/the-events-calendar/src/Tribe/Embedded_Maps.php
2) you will see// Setup Google Maps API $url = apply_filters( 'tribe_events_google_maps_api', '//maps.googleapis.com/maps/api/js' );3)Modify $url so you have the following:
$url = apply_filters( 'tribe_events_google_maps_api', '//maps.googleapis.com/maps/api/js?key=YourApiKey' );April 11, 2016 at 9:34 am #1100849Yan
ParticipantAnd of course, you need to generate an API key here:
https://developers.google.com/maps/documentation/javascript/April 12, 2016 at 9:16 am #1101379Erin
ParticipantThanks Yan. Did you move the file into your theme or did you just drop the code right into the plugin core files? Wondering if this will get reset on updates.
Thanks
April 12, 2016 at 9:50 am #1101470Yan
ParticipantHi Erin,
I just added a filter in my function.php on a child-theme
Note: you also need to add the API on tribe_events_pro_geocode_request_url which is The Events Calendar Pro call of gmaps.
-
AuthorPosts
- The topic ‘Google Maps: No API Key error’ is closed to new replies.
