Skip Navigation

[Resolved] Map Block: This block has encountered an error and cannot be previewed

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 – 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: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by Alex Telloyan 2 years ago.

Assisted by: Luo Yang.

Author
Posts
#2531375
this block encountered an error.png
Console Report.png

I am trying to: add a map block to a custom template for posts

I expected to see: options to edit when adding the map block

Instead, I got: an error message

Running Divi and the latest versions of Toolset and extensions. Not sure what I may be missing this time.

#2531723

Hello,

I have tried it in a fresh WP installation + the latest version of Toolset plugins, see below test site.
Login URL:
hidden link

Content template for post:
hidden link

It works fine in both admin side and frontend:
hidden link

Is there any missing steps? Can you reproduce the same problem in above test site?

And please make sure this:
When you edit a content template, choose one post in the option "View with"

#2532059

Hello,

Thank you for looking into this with me. I did look at the fresh WP installation you provided and that seems to work perfectly there. Still doesn't answer why it doesn't work on my end. The frontend loads up properly, just when I attempt to edit the map block it crashes and says "Map Block: This block has encountered an error and cannot be previewed"

#2532501

Since the problem only exists in your website, please check these:
1) In case it is a compatibility problem, please deactivate all other plugins, and switch to WordPress default theme 2022, deactivate all custom PHP/JS code snippets, and test again

2) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

#2541395

Thank you for your help, ended up reinstalling everything and that helped get me where I needed to be.