WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mosabua
    Member
    Posted 1 year ago #

    Hi

    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
    werner

    http://wordpress.org/extend/plugins/mappress-google-maps-for-wordpress/

  2. chrisvrichardson
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    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
    Member
    Posted 1 year 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
    werner

  4. Constantin Schneider
    Member
    Posted 1 year 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.
    Constantin

  5. Geoffrey
    Member
    Posted 1 year ago #

    Hi,

    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
    Member
    Posted 1 year 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,
    Constantin

  7. Paul Thomson
    Member
    Posted 1 year ago #

    All,

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

    Paul

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.