Skip Navigation

[Resolved] Google Maps is not connected.

This support ticket is created 4 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 8 replies, has 2 voices.

Last updated by chulj 4 years, 7 months ago.

Assisted by: Nigel.

Author
Posts
#1677249
구글2.GIF
구글1.GIF

Even if you keep trying, you can't use Google Maps. The phrase "REQUEST_DENIED - API keys with referrer restrictions can not be used with this API" keeps coming out. Even though I modified Google Maps according to the phrase, I still can't.

#1677961

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

I don't understand the screenshot where you set up the Google API keys.

What I can tell you is that in Toolset settings (your other screenshot) you can add two different API keys.

The first API key is used for client side requests (which may be exposed) and so you would want to include URL referrer restrictions, e.g. to only accept requests from hidden link.

Such restrictions can sometimes create problems when displaying maps, in which case you can add a second API key. These are used only for server-server requests and so are not exposed, and should not include referrer URL restrictions. If your server has a fixed IP address you could include IP restrictions for that API key, but I would first test an unrestricted key to verify that it works.

#1680069
구글4.GIF

The phrase "Google API samples to be configured fairly" appears. Did the application of Google Maps succeed?

#1680101

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

In that last screenshot there are two fields to enter API keys and the first one is empty.

The first one is required (it is the one used for browser requests, for which you may want to include URL referrer restrictions), the second one is optional but recommended and should be a different API key (for server-server requests) and must not have any URL referrer restrictions.

I'm not sure how the "Google API seems to be configured properly" message is displayed, because you are missing the first API key, which is required.

#1681203

Do you mean that the first and second keys should be different? How can Google generate different keys if it has to be different? Do I have to make another project?

#1681209
구글5.GIF

I created a different Google Maps project and put different keys in the first and second fields, and they look like screenshots. It still says, "Google API seats to be configured fairly." Is this a success? Map styles still say "You need to set a valid API key"...

#1682195

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

It looks like you have done this right.

To confirm, you can make multiple API keys with Google.

In the first field you should add an API key that uses URL referrer restrictions (so that it can only be used on your site and not someone else's).

In the second field you can optionally add a second API key that must not include any URL referrer restrictions. You would normally do this only if you experience some problems when including just the first API key.

The map styles section shouldn't be displaying the message "You need to set a valid API key".

Do you experience any other problems? Have you tried to use address fields with your posts or tried to display maps with markers? Does that work correctly?

#1683269
구글맵3.GIF
구글맵2.GIF
구글맵1.GIF

I put the address in the address field in the post and tested it, but it is not possible.

"I'm sorry. There's been a problem. Google Maps did not load properly. Check out the JavaScript console for detailed technical information," only the warning text appears where the map should appear.

#1683323

My issue is resolved now. Thank you!