Gmaps Pro for Joomla - This web site needs a different Google Maps API key. A new key can be generated at

My Joomla site is using Gmaps pro. The owner recently wanted to change domains from to I added as a co-domain. Everything works fine except for my google maps api key, whick now gives me the error:

This web site needs a different Google Maps API key. A new key can be generated at

In my gmaps pro configuration I have added api keys for, and, but only work for the maps. I'm guessing that this is because is not the primary domain, so when the API key is sent it still appears to be coming from

Could someone a little more familiar with Google Maps api help me figure out what I need to do? The two sites are below, both are on the server.

Who is Participating?
Amar BardoliwalaCommented:

I checked source code for both of your urls. It seems that in both sites(urls) same key is used for google maps.

Following is key I found in your source code


Actually for site with url cosadocs, you should put different key(Generate new key if you have not generated it for cosadocs domain). You will need to do it dynamically depending on domain name entered by user. You will need to handle it by putting conditions to check domain and put appropriate key for the same.

Hope this helps.

elliottbenzleAuthor Commented:
Thanks, gmaps wasn't picking up on the different urls
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.