If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
October 17, 2013 at 5:01 pm #177075
when i try to open a page with the google maps widget with an mobil device, which connects via a mobile internet connection (not Wifi, everything works on wifi) the following error appears.
The google Maps API server rejected your request. The
sensorparameter specified in the request must be set to either
I already tried to delete and insert it again but it didn`t help.
I`m looking foward to your answer.
icosOctober 17, 2013 at 7:10 pm #177132October 18, 2013 at 8:24 am #177292October 19, 2013 at 7:16 am #177749
Can you please post the code for your google map? You can add the sensor parameter at the end of the map url, something like this &sensor=true. If that doesn’t work please edit, framework > php > class-framework-widgets.php, find this code:
wp_register_script( 'avia-google-maps-api', $prefix.'://maps.google.com/maps/api/js?sensor=false', array('jquery'), '1', false);
Replace it with:
wp_register_script( 'avia-google-maps-api', $prefix.'://maps.google.com/maps/api/js?sensor=true', array('jquery'), '1', false);
IsmaelOctober 21, 2013 at 9:01 am #178320
Thank´s for your respond.
I use the stock enfold google maps widget. I`m not sure which code I should post.
Which URL do you mean?
I replaced the code but it didn´t change anything.
icosOctober 23, 2013 at 10:41 am #179583
I can’t really check this on an actual mobile device. Let’s wait for Kriesi’s response.
IsmaelOctober 25, 2013 at 10:23 am #180564
Seems to be a problem with the connection and not the device – maybe the connection provider manipulates the requested url somehow but our script sends the sensor parameter with
PeterOctober 25, 2013 at 12:10 pm #180608
it seems like the error only appears on vodafone
s mobile connection. I tryed a t-mobile and a eplus device and the error didnt appear.
thanks for your help
icosOctober 25, 2013 at 1:44 pm #180651
The topic ‘The google Maps API server rejected your request’ is closed to new replies.