The Google Maps APIs require an API key for new domains as of today. See announcement: http://googlegeodevelopers.blogspot.com.au/2016/06/building-for-scale-updates-to-google.html
To fix this:
1) Create an API key as per instructions here: https://developers.google.com/maps/documentation/javascript/get-api-key
2) Edit the line in the plugin that loads the Google Maps API to include your key as the value of a ‘key’ parameter. Wherever you find “https://maps.googleapis.com/maps/api/js” or “http://maps.googleapis.com/maps/api/js” in the plugin, change it to “https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY”.
Sorry, my bad. I meant to comment elsewhere.
Thread Starter
mathkn
(@mathkn)
I could not find the line you mentioned, but I added the API in the settings menu and that worked π
I’ve added key, but now I’m getting this: Your site URL to be authorized
nvm after 10 min it worked, I mean my API key π
Where is the code line mentioned above? Which file?
where is the line please? In which file?
I now use the Version 6.3.17 of WP google maps API and it offer me to enter a key when I create a map, and I didn’t have this problem anymore, map displayed well.
I spent about 7 hours to figure out how to make these API keys working -.-
Firstly, I got the ApiNotActivatedMapError, then the the RefererNotAllowedMapError one. Finally I was able to fix the situation thanks to the troubleshooting section in this Maps Api keys tutorial.
Anyway, I really regret the time when everything worked out of the box without any keys or error… And I think that I’m not the only one
-
This reply was modified 9 years, 8 months ago by
fumagall.
hi guys,
I had the same problem of google maps error related to javascript and it can be fixed with this plugin quickly:
https://ww.wp.xz.cn/plugins/api-key-for-google-maps/
Hope it will help you all..
Thank you @saddamkassim, worked great. =)
Where is the file for this? I am using the map widget on x theme
ekelareva’s answer worked
thanks!