map error on https:// site

This topic contains 3 replies, has 2 voices, and was last updated by  Stephen Harris 11 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6742

    Hi

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

    I get the above when I try and edit or add a venue and the maps don’t work. I had this problem with wp google maps related to this code:

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

    which had to be changed to

        < script type="text/javascript">
                   var gmapsJsHost = (("https:" == document.location.protocol) ? "https://" : "http://");
                   document.write(unescape("%3Cscript src='" + gmapsJsHost + "maps.google.com/maps/api/js?sensor=false' type='text/javascript'%3E%3C/script%3E"));
        </script>
    

    do you have something similar?

    Thanks

    boldfish
    #6746

    Hi,

    It’s not the https:// it’s a conflict with a theme – http://shoestrap.org

    Any ideas where I might look to resolve the issue?

    🙁

    boldfish
    #6747
    boldfish
    #6750

    Awesome, glad you got that sorted 😀

    For those with a similar issues the theme was stripping query variables from the script’s source urls. Typically this is done to remove version numbers, but most plug-ins (and in this case theme) that attempt this tend to remove all query variables. Google maps requires a query variable indicating whether you want to know the user’s location ( the sensor query variable).

    Stephen Harris
Viewing 4 posts - 1 through 4 (of 4 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.