Skip Navigation

[Resolved] 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 3 replies, has 1 voice.

Last updated by Minesh 2 months ago.

Assisted by: Minesh.

Author
Posts
#2805549
Screenshot 2025-04-17 085215.jpg

VERY URGENT
All the existing Field and Text now show the message "This block has encountered an error and cannot be previewed"
All the new Field and Text now show the same message
Even selecting them it is impossible to access style, etc.
Already set DEBUG etc. off, as suggested in previous posts
I tried deactivating all plugins except Toolset an Astra
Please do something very fast.

#2805562

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

That is really strange.

I do not see any other user reported the same issue recently. Do you see any Javascript/JS error with your browser's console?

Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference?

Also, here is a sandbox site and you can auto-login to it using the following link:
- hidden link

Are you able to reproduce the same issue with the above sandbox site?

#2805597

The issue was due to to a group of fields for some reason not properly saved.
The error given was:
PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null given
Caused by:
Undefined array key "wpcf-group-khumbu-ticker"
I deleted the relevant fields using sql but....

I understand that an incomplete saving, it was that, is not Toolset responsibility.
But what make me very upset is that an error in one field group made all Field and Text, even the unrelated, unusable in all the website.
This is not very serious.

#2805639

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - thank you for sharing all those details and glad that you able to spot the issue.

I'll keep the eye if any other user has the same issue and then escalate it accordingly. For now, you're welcome to mark resolve this ticket.