Google Maps API server rejected your request
-
After recently installing 1.7 of the plugin, I started getting the following pop-up warning window in the browser when visiting my site:
The google maps api server rejected your request. The “Sensor” parameter specified in the request must be set to either “true” or “false”.
I was able to track it down to wp-content/plugins/hubspot/inc/hs-contact.php. On line 26 it reads:
function hs_contact_scripts() {
wp_enqueue_script(‘google-maps’, ‘https://maps.google.com/maps/api/js?sensor=true’);
}Commenting this out with a “//” resolved the error.
What functionality does this provide? What am I going to miss out on with tracking with this commented out?
According to the google API docs, it states the following format should be used:
https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=SET_TO_TRUE_OR_FALSE"
With the API_KEY being your google apps api. Do I need to set up a google apps api for this functionality to work?
What needs to be done in order to be able to uncomment this line and have the unknown functionality enabled?
- The topic ‘Google Maps API server rejected your request’ is closed to new replies.