Google Maps: No API Key error

Home Forums Calendar Products Events Calendar PRO Google Maps: No API Key error

Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • #1088502
    Yan
    Participant

    Hi,

    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-keys

    URL: http://hash.events/events/map/
    The problem appears when trying to search a location

    #1089419
    Hunter
    Moderator

    Hey 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!

    #1091740
    Oystein
    Participant

    Same error in console here. Appears on Event detail page.

    #1091861
    Hunter
    Moderator

    Hey 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!

    #1095662
    Erin
    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?

    #1095760
    Yan
    Participant

    Hi Erin,

    Can confirm, search feature is not working (returning all events) and still getting the API error message.

    #1096206
    Hunter
    Moderator

    Hello 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!

    #1096363
    Yan
    Participant

    Search 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!

    #1096416
    Erin
    Participant

    Okay 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.

    #1096418
    Yan
    Participant

    Nevermind, I have the same problem as Erin. Search Near function doesn’t work.

    Maybe it’s a database issue?

    #1096504
    Hunter
    Moderator

    Hello,

    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.

    #1100848
    Yan
    Participant

    This 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' );

    #1100849
    Yan
    Participant

    And of course, you need to generate an API key here:
    https://developers.google.com/maps/documentation/javascript/

    #1101379
    Erin
    Participant

    Thanks 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

    #1101470
    Yan
    Participant

    Hi 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.

Viewing 15 posts - 1 through 15 (of 25 total)
  • The topic ‘Google Maps: No API Key error’ is closed to new replies.