Store Locator Plus® for WordPress › Forums › Store Locator Plus › Maps "This page can't load Google Maps correctly." Message
Tagged: maps api
- This topic has 1 reply, 2 voices, and was last updated 6 years, 2 months ago by Cici.
-
AuthorPosts
-
September 5, 2018 at 10:49 PM #57475Simon GriffithsParticipant
Hi,
I am seeing the Google Maps “<span style=”color: rgba(0, 0, 0, 0.87); font-size: 14px;”>This page can’t load Google Maps correctly.</span>” message on my site (https://www.electrical-wholesaler.com.au/). I have updated the API, added payment and am still getting the same error. In the console I get the error NoAPIKeys although this is obviously there though when I look at the code.
When I manually add the maps api javascript, I then get the error that it’s on the page twice!
Any advice? I don’t seem to be able to get a fix on this one.
Thanks
SimonSeptember 6, 2018 at 11:30 AM #57477CiciKeymasterI am not sure what you mean about “Manually adding the API key” How else would you be adding it? it is a simple copy and paste in the correct field to SLP as shown in the docs. Getting an API
are you using a form in some other project or via another plugin?
Where are you adding the Maps Javascript API?
If you use the Inspect under the browser developer tools and click on the error js99, it shows under the index where the error is and under Wordfence… ( I deleted the id that I saw in there) …Is wordfence blocking the communication to Google? Or Has the owner of the API key restricting the # ofMap loads and using a development API? Or are you using Wordfence to add the Maps Javascript APi .? See the error message on your site in the index, it points to”js:99 You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.
Ug @ js:99
https://www.electrical-wholesaler.com.au/?wordfence
If you believe you are using the correct API and have set it up correctly and have associated a billing account and not set up any limitations then you will have to contact Google Support.
https://docs.storelocatorplus.com/blog/general-settings/
https://docs.storelocatorplus.com/blog/google-geocoding-browser-keys/
Once you have your API keys straightened out, you may want to consider other ways to minimize the impact if costs are a concern to you (or security) Suggestions in the authors news feed here
Since I do not know what features you are using, (You did not provide the screenshot of your plugin environment requested in posting guidelines) i can only make general suggestions and not advise you on best way forward.
-
AuthorPosts
- You must be logged in to reply to this topic.