MapPress Easy Google Maps
[resolved] sensor Parameter (7 posts)

  1. mosabua
    Posted 2 years ago #


    after upgrading WordPress to 3.5 and MapPress to 2.39.2 I get the following error and the map is not loading:
    "Ihre Anfragte wurde vom Google Maps API Server abgelehnt. Der in der Anfrage angegebene "sensor" Parameter muss entweder "true" oder "false" sein."

    you can check it @ http://ilab.salzburgresearch.at/kontakt/

    thx for your awesome plugin


  2. chrisvrichardson
    Plugin Author

    Posted 2 years ago #


    I looked at your site. For some reason all of the javascript URL parameters are stripped (even from the javascripts that aren't for MapPress). For example, all of the scripts normally have a version like "?ver=1234".

    The sensor parameter is also stripped, which is what gives the error.

    Could something else be modifying the URLs? The first thing to check would be two switch to a standard theme (like 2012) and deactivate your other plugins for a moment. If that fixes it you can reactivate to find the issue.

  3. mosabua
    Posted 2 years ago #

    Hi Chris,

    thanks for giving me the right direction. The problem occured due to the plugin Better WP Security. There you got one flag (under the Tweaks tab):

    Display random version number to all non-administrative users
    -Displays a random version number to visitors who are not logged in at all points where version number must be used and removes the version completely from where it can.

    After deactivating this option everthing works perfectly.

    thanks again

  4. Constantin Schneider
    Posted 2 years ago #

    Hi Chris,

    I just upgraded to WP 3.5.1 and now have the same problem. Alas deactivating all other plugins did not help.

    You can view the error here: http://zellnet.caoffice.de/contact/

    Any help much appreciated.

  5. Geoffrey
    Posted 2 years ago #


    Do you use a snippet like this?

    add_filter( 'script_loader_src', 'delete_script_version', 15, 1 );
    add_filter( 'style_loader_src', 'delete_script_version', 15, 1 );
    if( !function_exists("delete_script_version")) {
    	  function delete_script_version( $src ){
    	      $parts = explode( '?', $src );
    	      return $parts[0];

    I could cause this error.
    Add "ver" just after the question mark in this code.

    Best regards.

  6. Constantin Schneider
    Posted 2 years ago #

    Hey Geoffrey,

    Thank you for your input. I downloaded my complete root folder and did a full text search via notepad++.

    Found nothing, no such snippet anywhere.

    Might you have another idea?

    Best regards,

  7. Paul Thomson
    Posted 2 years ago #


    Can confirm (for me at least) a similar code Geoffrey suggested from my theme functions file fixed the issue. Thank you for providing.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MapPress Easy Google Maps
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.