Ifiok Jr.
Forum Replies Created
-
I’m having the same problem as described above – where anytime I access my site I receive this error. <i>The Google Maps API server rejected your request. The “sensor” parameter specified in the request must be set to either “true” or “false”.</i>
<b>Basic Information:</b>
- I don’t have the Pro version, as I’m currently testing out the plugin, before diving in.
- I’ve tried turning off other plugins as well as the ones using google maps and it still comes up.
I’ve had a look at
storelocatorplus-actions_class.php
and noticed that in the newer version of the plugin (which I have) you’ve already made the changes outlined above. I’ve even tried going a step further and using a variable as mentioned by the previous poster.None of it seems to work and the source code for my website just reads:
<script type='text/javascript' src='https://maps.google.co.uk/maps/api/js'></script>
Nothing after the
js?
is being passed through by thewp_enque_script()
I can turn off the error using the option <i>Turn Off SLP Maps</i> but that’s not really useful to me since the maps stop showing.
One thing that did peak my interest was some code I noticed in the file
storelocatorplus-actions_class.php
<i>`//todo:character encoding ???
//”https://$sl_google_map_domain/maps?file=api&v=2&key=$api_key&sensor=false{$sl_map_character_encoding}”</i>I would have tried to implement it myself but I’m not so confident that I know exactly what it is I’d be trying to do.
I have a strange server set-up (using AWS) so perhaps part of the security is removing characters from the wp_enque_script(…) – any pointers in the right direction, or amazing solutions would be much appreciated ??
If you need the website just let me know.