• Resolved jcnapw

    (@jcnapw)


    I’ve been using the plugin for the events on http://www.clintonarchamber.com and it’s fantastic. It’s just started giving me a problem on event pages where it grabs the venue map – they only appear when I’m logged in, and other users see the popup error:

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

    Any ideas where to start with this?
    Thanks!

    http://ww.wp.xz.cn/extend/plugins/event-organiser/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Looking at the scripts on your page, it seems something is stripping out all the query variables from the script urls. For example, javscript and css urls typically end with ?ver=[some version number]. None of these are present.

    For Google Maps this presents a problem, since Google require you to set the query variable ‘sensor’ in the url. So if you can figure out what is stripping out those query variables, that should solve it for you.

    I’m not sure what to suggest – but the first thing would be disable all other plug-ins and switch to TwentyTweleve to check if its plug-in/theme related.

    Thread Starter jcnapw

    (@jcnapw)

    Wow – thanks for the fast reply! It’s odd that the issue started suddenly unless it was related to code updates for a plugin. I have found similar issues with other plugins on the forum, so I will do some eliminating and see what I come up with.

    Plugin Author Stephen Harris

    (@stephenharris)

    How EO sets up the Google Maps javascript was changed slightly in 1.7 as part of general code re-factoring / tidying-up. I’ve never known (or at least noticed) query arguments being stripped out before like this – so would be interesting to find out the cause :).

    Thread Starter jcnapw

    (@jcnapw)

    Got it! It was a plugin conflict. Better WP Security was displaying random version #’s so I disabled that function:
    http://ww.wp.xz.cn/support/topic/google-maps-api-sensor-error
    Maps working fine now. Thanks again

    Hello.

    I had the same error message popping up when I was not connected as administrator… and when i am connected (as administrator) then the error message was not displayed.

    and the cause seemed to be the same Plugin WP better security: unchecking “Display random version number to all non-administrative users” option in “tweaks” solved the problem.

    thanks for the great plugin!.

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

The topic ‘Google API error on EO Events pages’ is closed to new replies.