• I’m having the following error in both Firefox and Explorer (not Chrome)

    Error

    The Google Maps API server rejected your request. The “sensor”
    parameter specified in the request must be set to either “true” or
    “false”.

    Suggested script on forums:

    <script type=”text/javascript” src=”maps.google.com/maps/api/js?sensor=false”>

    And yet sensor seems to have been defined:

    function wpgmappity_load_theme_scripts() {

    wp_enqueue_script( ‘jquery’ );
    $gmap_url = ‘http://maps.google.com/maps/api/js?sensor=false&#8217;;
    wp_enqueue_script( ‘gmap_loader’, $gmap_url );
    }

    Any idea?
    The matter is pretty urgent.
    Thanks.

    http://ww.wp.xz.cn/extend/plugins/wp-gmappity-easy-google-maps/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ZeldaW

    (@zeldaw)

    For those having the same pb with Google maps, check here: http://ww.wp.xz.cn/support/topic/plugin-better-wp-security-google-maps-api
    There seems to be an incompatibility with Better WP security plugin.

    For me, the problem had to do with extra line breaks that were inserted in the code when I copied and pasted an example from Google’s website.

    This line was the problem:

    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE&sensor=false">

    Make sure to squeeze everything right together, nice and neat, or it won’t parse the code correctly.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘API server rejected your request. The "sensor" parameter’ is closed to new replies.