Skip Navigation

[Resolved] Map block fails to render. Cannot configure.

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user's map block is not rendering.

Solution:
In this user's case the problem was that Divi was enqueuing its own Google maps scripts which was causing a conflict with the Toolset Maps import of the same scripts.

Disabling Google maps on divi resolved the Issue. This was done by going to the Divi theme options and locating the Google maps enable/disable toggle.

This support ticket is created 4 years 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by marcB-11 4 years ago.

Assisted by: Shane.

Author
Posts
#2261173
map-error.png
map-error-dev-tools.png
map-api-keys.png

Tell us what you are trying to do?

We are attempting to use the Maps component. We haven't managed to get it to work on this site for any use-case so far, both using a View as the data source and not. The screenshots I've attached are attempting to use a View as the data source (in the block editor).

Is there any documentation that you are following?
* https://toolset.com/course-lesson/displaying-a-map-on-a-single-post-template/
* https://toolset.com/lesson-placement/lesson-placements-1622939-1620853/

#2261247

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Marc,

Thank you for getting in touch.

Based on the information in your screenshot I can see that there are some javascript errors being thrown.

In a case like this when the plugins are not functioning as intended we recommended that you disable the non-toolset plugins.
What this means is that you will need to go through your list of plugins and disable each of your plugins one at a time while checking to see if the issue still remains.

Thanks,
Shane

#2261289
plugins.png

Hello Shane, thanks for the response.

As you can see in the screenshot I've attached, there are no active plugins other than the Toolset ones. The primary error appears to be related to the Maps API (it's claiming it's being used without an API key). The final JS error (the `e.places is undefined` error) only appears once the sidebar is opened, or the widget is selected.

Interestingly, when editing an entry of the appropriate custom type ("Yard"), the custom address field that we've defined properly shows a map and allows us to look up addresses. That does indicate that the API key is getting used properly in _some_ situations.

What other information would be useful to you? We're running the latest version of WP (5.8.3), all of the individual plugins appear to be fully updated, MariaDB 10.1, and PHP 7.4 (since the listed server requirements still says to avoid 8.0).

We'd also appreciate if you could flag this "ticket" as private. I don't understand why dealing with this in the public view is the only option we appear to have. Despite what the [Support Policy](https://toolset.com/toolset-support-policy/) says ("In addition, you can make private posting in the forum, which only you and Toolset support can see."), I saw no option to restrict the scope of this post.

#2261299

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Marc,

Would you mind allowing me to have admin access to the site so that I can have a more detailed look at this one for you.

Secondly the private fields are mainly for when you're providing sensitive information such as website copy and login details.

For general conversing the private fields wouldn't be enabled.

However I will enable the private fields for you to provide me with the login details for the site.

Thanks,
Shane

#2262805

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Marc,

Thank you for the credentials.

The problem was that Divi was enqueuing its own Google maps scripts which was causing a conflict with the Toolset Maps import of the same scripts.

Disabling Google maps on divi resolved the Issue. This was done by going to the Divi theme options and locating the Google maps enable/disable toggle.

Thanks,
Shane

#2262835

Thank you, that does seem to have done the trick.