Skip Navigation

[Resolved] Maps stop working, and after correcting in Google API console not showing maps

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 7 replies, has 3 voices.

Last updated by dianaL-2 1 year, 10 months ago.

Assisted by: Nigel.

Author
Posts
#2575497
Captura de Pantalla 2023-03-17 a la(s) 17.26.05.png
Captura de Pantalla 2023-03-17 a la(s) 17.19.21.png
Captura de Pantalla 2023-03-17 a la(s) 17.26.35.png

Tell us what you are trying to do?

Site was working well showing maps, but suddenly stop to show them. I then went to the Toolset setting in the maps section and realized that my second API code referring to the IP was not good, cause was pointing to the development site, this one is now the production site
So changed the IP, saved on the toolset setting, verified the API and says its good, but still, the site is showing error.

So far, I've deleted my server caches but still not working

What is the link to your site?

hidden link

Attaching images so you can check

#2576343

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

I checked the website and the issue is this:

Google Maps JavaScript API error: RefererNotAllowedMapError

This shows that Google is not set correctly to this URL:

Your site URL to be authorized: hidden link

Please double check your Google Console and make sure that URL is authorized.

Thanks.

#2577689
Captura de Pantalla 2023-03-21 a la(s) 10.04.05 1.png
Captura de Pantalla 2023-03-21 a la(s) 10.08.56.png
Captura de Pantalla 2023-03-21 a la(s) 10.10.20.png

Hi
Thanks for response
I`ve already did all changes to my Maps API's
But even whan I have a Ok message from Toolset Maps, still cant load the maps Javascript.
Is there something else I can try? Please take a look on my screens captures

Thanks in advance

#2577833

Nigel
Supporter

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

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

Hi there

It is still the case that the referer restrictions on your API key do not appear to be valid, hence the RefererNotAllowedMapError message in the console.

I know from previous experience this can be tricky to set up correctly, but the best link I can find for Google's documentation that describes what is required is hidden link

My guess is that you might want to try something like this for the restrictions on your site:

area787.net
area787.net/*

Can you try again?

Also, note that you see another JS error which is related to a known issue that will be fixed in a maps update soon, which you can read more about here: https://toolset.com/errata/js-error-from-google-api-when-displaying-a-map-on-the-front-end/

#2582801

Hello I did tried

The issue is wehn I restrict the API it dosnt work at all

#2582911

Nigel
Supporter

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

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

OK, I've set up an API key myself with those restrictions.

Can I get access to your site and I will try to use my API key and see what happens?

Let me mark your next reply as private so that Ican get log-in credentials from you—you may want to create a temporary admin user for us to use that you can later delete. And be sure to have a current backup of your site.

#2583497

Nigel
Supporter

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

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

Screenshot 2023-03-30 at 11.14.30.png
Screenshot 2023-03-30 at 11.15.10.png

Thanks for that. I replaced your Maps API key with my own on your site, and then I went and tested the front page of your site, where you can see the map is working. (I know it was working before, as I think you had removed the URL restrictions so that your site worked, but this screenshot is with using my API key.)

You can see the settings I used on my API key in the other screenshot, you need the same on yours.

I can't edit your Google API settings for you, I'm afraid.

I am now reverting the Maps settings on your site to use your own API key.

#2590771

I didnt get to solve replicating your fix, but I think is related to the Google API
Thanks