Skip Navigation

[Resolved] Block cannot be rendered

This support ticket is created 4 years, 8 months 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 9 replies, has 3 voices.

Last updated by soniyaA 4 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#1868351

I am trying to: edit an existing page

Link to a page where the issue can be seen: It is a staging site so need to login to view the page

I expected to see: blocks working fine

Instead, I got: block cannot be rendered error

I tried disabling every other plugin except for toolset ones and yet the error was there
hidden link

#1868639

Nigel
Supporter

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

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

Hi Soniya

Where can we see the problem? You have quite a few Views, you didn't specify which page has the problem View.

Those errors typically reflect a change in the internal workings of a block between versions. If we modify a block we include a mini internal migration for the block settings so that you should not see any difference or need to intervene in any way, but that could fail if you skip several plugin versions when updating. I'm not sure what the history of your site is to know if that is the likely explanation.

In any case, it may not be possible to recover the block, you may need to delete it and recreate whatever it included.

We can take a look, but need to know where to look.

#1868663

Hello Nigel,

You need to login to the staging site.

After that,
hidden link

This is the page were we get block render error.

Basically my Contact button doesn't show the form properly here:
hidden link

Please go through it and let us know some solutions.

Thank you!

#1868693

We update the plugin today only. So this issue was still there even before updating.

#1869091
Screen Shot 2020-12-08 at 10.30.08 AM.png

Hello, I logged into staging and checked this View in the Block Editor. It seems that the View Loop block has become corrupted somehow. I can drag it into the right column (as shown in the screenshot here), but even then the loop is empty. I'm checking out some older revisions of this Page to see if I can find a version where the Loop block is not corrupted, please stand by and I will give you an update shortly.

#1869109

Okay I was able to resolve the corrupted loop block by editing the block as HTML and removing the contact form shortcode from the Contact Form modal. Then I could use the Block Editor again, but as soon as I tried to add the Form shortcode back in the custom HTML block, the block became corrupted once again. I have removed the form shortcode for now so I can continue testing. I'll let you know what I find out.

#1869121

Okay after a bit more digging, there seemed to be some problem with the Contact Form here:
hidden link

If I edit this Form, in the Form builder I see what looks like a JSON data object, not the expected Form shortcodes. It seems to be corrupted somehow, and I would not expect it to work correctly on the site. It may be possible to recover the Form by turning off Expert Mode. If you want to make more changes in Expert Mode, try turning it off then turning it back on.

Do you have any more information about this Form, how it was created, if it was imported from another site, etc? I'm not sure how it could have been corrupted like this. Perhaps turning Expert Mode off, then back on, then resaving the Form will resolve the problem. I'll be glad to try that if it's okay with you.

#1869717

Hello Thank you for this.
Yes this form is disturbed. But we want to know the reason for this as well? As we have used Toolset form only and "Expert mode" is its feature. So we should be able to use it and updates should not break it, right?

We used expert mode just because we wanted some html fields in form and also some hidden items with values. So we anyhow need expert mode.

Even if we recreate a form in expert mode(As we did last time) Is there anyway that this don't break in future updates??

Please let us know your views on this.

Thank you!

#1870495

I only know of one recent breaking change in Forms that could cause backwards compatibility issues, but that issue was specific to User Forms where certain fields were set to be autogenerated. Since the Form here on your site is a post Form, not a User Form, I do not suspect this issue is related to that breaking change.

As far as I know, this is the first instance of this type of error I've seen reported in the forums. I did a quick search and could not find anything similar in any other tickets, so I'm not sure offhand why it would have happened. There could have been a temporary server issue, or a conflict with another plugin, or something else I can't predict. In most cases, updates to Toolset should not break existing Forms with expert mode active, other than the User Form breaking change I mentioned.

That is why I would like more information about the history of this Form, whether it was imported from another site, how it was created, which plugin versions were used to create it, what theme and other plugins were active, whether or not it ever worked correctly, etc. If you have backups of your site from before the most recent updates, I will be glad to take a closer look by analyzing those backups. That is the best way to determine why the problem occurred, and how we can prevent it in the future.

#1880945

My issue is resolved now. Thank you!