Elxis CMS Forum
Support => General => Topic started by: xmanhattan on April 11, 2016, 10:40:57
-
Hello all,
While preparing the website locally google map was working but after placing the site online I receive this error message:
This page was unable to display a Google Maps element. Please contact the site administrator. If you are the administrator of this site, please check the JavaScript console or check the following page for troubleshooting:
http://g.co/mapsJSApiErrors (http://g.co/mapsJSApiErrors)
When I first call the contact page, the map is displayed but then disappears and the error message is shown.
I changed the api key from the local host to the domain name before testing it online.
On the contact page, I inserted the following {map}37.9795923,23.7353258{/map}
through the source and checked it to make sure that no other html code was inserted.
I checked to see if there was any update to the content plugin google map but did not find any.
Any ideas?
-
I just went back to the google api and re-entered the domain name for use as
*.domain-name.tld/*
instead of using the plain domain-name.tld and updated the api key that it changed.
It now works, unbelievable!
-
Each map api key can be limited to a specific domain or path. asterisk is a regular expression and you must use it properly.