Skip Navigation

[Resolved] wp-conditional hangs page with blocks

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.

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 2 replies, has 2 voices.

Last updated by jesperA-2 3 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#2207655

I've got this error before and reported it (https://toolset.com/forums/topic/wp-conditional-fata-error-stops-page/). It never really got resolved but I found a workaround to get around it. I didn't know if it was something strange with my code or setup at that point.
However, I got this error again and it seems much clearer to me this could be a bug in Toolset. It's also quite serious since it locks the whole page and you can't even roll back to a previous version. Unless you deactivate the Toolset Blocks plugin (the workaround).

The only thing I did to get this (on a previously working page,) was to add a Conditional block in the loop of a View. This conditional block tested if the posts body content was empty. I could then save the page with the new conditional statement but never load it again. Not in editor mode either. No other plugins (when deactived) affected this expect the Toolset Blocks so I think you should take a look at this since it seems to be a bug.

#2208653

Hello,

In the post content, you need to avoid to use [wpv-post-body] shortcode as the condition of conditional block, it will conduct unexpected result: Endless loop.

You can try other workaround, for example:
https://toolset.com/forums/topic/conditional-output-if-the-post-content-is-filled/

#2208665

My issue is resolved now. Thank you!
Custom function works however I don't think it should hang when using the [wpv-post-body] shortcode either.