Google Maps API Error

Home Forums MapPress Support Google Maps API Error

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12384
    Mladen
    Participant

    Hi,

    I`ve installed the pro version of the script, version 2.40.3, but i get API error:

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

    And the maps are not showing any more. It works on mobile devises only. How can i deal with this problem?

    Thanks.

    #12386
    Mladen
    Participant

    Found the problem. In my functions.php i had function to remove script version:

    // Remove Script Versionfunction _remove_script_version( $src ){
    $parts = explode( ‘?’, $src );
    return $parts[0];
    }
    add_filter( ‘script_loader_src’, ‘_remove_script_version’, 15, 1 );
    add_filter( ‘style_loader_src’, ‘_remove_script_version’, 15, 1 );

    After removing it everything is working fine. Great plugin.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.