Calendar Cannot Reproduce Unable to apply location filter

Affected add-on version
2.2.0
/events/?layout=list
Filters
Events within xx km of <Location>

Oops! We ran into some problems.
An error occurred while attempt to apply the requested location filter.


/events/?layout=list&location_boundary[location]=Melbourne%2C+Vic&location_boundary[distance]=25&location_boundary[distance_unit]=km\

API Key entered (and correct)
Enable auto completion for event locations ticked
 
Last edited:
This means Google kicked back an error of some sort. If you enable debug mode for yourself, it'll get logged and that'll probably be of more use.
 
This means Google kicked back an error of some sort. If you enable debug mode for yourself, it'll get logged and that'll probably be of more use.
object(stdClass)#475 (3) {
["error_message"] => string(64) "API keys with referer restrictions cannot be used with this API."
["results"] => array(0) {
}
["status"] => string(14) "REQUEST_DENIED"
}


and/or

Google Maps Platform rejected your request. This IP, site or mobile application is not authorized to use this API key. Request received from IP address 2403:<redacted>:b5ff:3294, with referer: https://mysite.com/events/weekly-ride-tuesday-nights-from-rydalmere.2742/

We really need to be able to define seperate Google Maps API's @ /admin.php?options/groups/nfCalendar/

API Keys Best Practices tells us to protect and restrict keys using IP Addresses or HTTP Referrer restrictions. As the calendar uses both web server (Filter | Events within location) and browser referrer (map embed) we cannot use the same API key and have best practice restriction active. With only a single API key, restrictions have to be disable (strong security and $$ issue) to work correctly.
 
Back
Top