Skip Navigation

[Resolved] Uncaught ReferenceError: google is not defined after updated key

This support ticket is created 3 years, 1 month 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.

Our next available supporter will start replying to tickets in about 0.76 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 3 replies, has 2 voices.

Last updated by szymonF 3 years, 1 month ago.

Assisted by: Jamal.

Author
Posts
#2184693

I used Toolset Maps on my travel blog for over a year and it worked just fine. I now changed the subscription to a different account and had to generate a new API key. After that has been updated, the plugins are updating fine and the Maps settings API says 'Google API seems to be configured properly.' The maps work on the back end just fine - when I create a post, I can add a location to the Map custom field and it finds it on the map.

However, the map on my blog front end doesn't display at all and the console shows the error: Uncaught ReferenceError: google is not defined.

I read this post https://toolset.com/forums/topic/updated-site-and-now-get-uncaught-referenceerror-google-is-not-defined/ and followed the instructions, so my WP is up to date and so is my theme - evolve by Theme4Press. This didn't solve the problem.

However, when I change the theme to WP 2021, the map works. But naturally, I don't want to use that theme. What do I need to do to make it work with the evolve theme?

#2185417

Hello and thank you for contacting Toolset support.

It seems that the evolve theme is also adding a Google library that is conflicting with Toolset Maps's one. Usually, themes or plugins will offer a setting to disable the loading of such libraries.
Please note that the library can be related to another Google's service than maps. For example, we have encountered similar errors before with the Google translation libraries.

If you are unsure where to check, allow me temporary access to your website and I'll check it further. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **
Please let me know where I can see this map on the front end.

#2185555

I assume that you are talking about the homepage, right? The issue is not reproduced for me. Check this screenshot hidden link

Can you tell me where I can see the issue? Or maybe share a screenshot or a screencast that demonstrates the issue? Am I missing something?

#2187587

Huh, you're right! I don't know what happened, but it's working now. Some great support magic, thank you!