Skip Navigation

[Resolved] Using Conditional seems to freeze page

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

Problem:

Attempting to edit the default single template of a post type leads to a page hanging with errors: "Fatal error: Maximum execution time exceeded" in specific plugin files.

Solution:

The issue appears related to execution time limits, potentially within Toolset Blocks. Start by increasing the PHP maximum execution time to troubleshoot. Additionally, duplicating the content template via "WordPress Dashboard > Toolset > Content Templates" worked correctly and allowed for editing. Disable unnecessary plugins and custom code to isolate conflicts.

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.

This topic contains 6 replies, has 2 voices.

Last updated by Christopher Amirian 12 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2674821

I am trying to: Edit the default single template of post type "Företag".

Link to a page where the issue can be seen: You need to be admin on the site to do this. This is the URL: hidden link

I expected to see: The usual edit version of the page.

Instead, I got: Page hangs and finally gives this error: Fatal error: Maximum execution time of 300 seconds exceeded in /customers/d/0/6/usinde.se/httpd.www/sverigeshundforetagare/wp-content/plugins/toolset-blocks/embedded/inc/wpv-conditional.php on line 852

and at one time this error:
Fatal error: Maximum execution time of 300 seconds exceeded in /customers/d/0/6/usinde.se/httpd.www/sverigeshundforetagare/wp-includes/class-wp-hook.php on line 208 Warning: Trying to access array offset on value of type bool in /customers/d/0/6/usinde.se/httpd.www/sverigeshundforetagare/wp-content/fatal-error-handler.php on line 176 Warning: Trying to access array offset on value of type bool in /customers/d/0/6/usinde.se/httpd.www/sverigeshundforetagare/wp-content/fatal-error-handler.php on line 188 Warning: Trying to access array offset on value of type bool in /customers/d/0/6/usinde.se/httpd.www/sverigeshundforetagare/wp-content/fatal-error-handler.php on line 201

I've tried to put the View in debug but since it hangs I don't get anything.
I've disabled all relevant plugins except Blocks and Types. Still get the error. I've also disabled all custom code.

#2674969
#2674981
Skärmavbild 2023-12-20 kl. 09.45.27.png

Hi,

I followed your suggestions but get an error using Cloudways (see image).
However, my site is a developer site (but production site has same problem though) so you can work with it directly if you want to.

#2675163

Christopher Amirian
Supporter

Languages: English (English )

Is it ok if I try to do the copy to our server?

As it will give a better idea if the server has anything to do with the issue or not.

Thanks.

#2675201

Please, go ahead.

#2675735

Christopher Amirian
Supporter

Languages: English (English )

Hi there,
We tried two times to do the copy but it failed.

Is there a chance that you could provide us with the staging version of the website so we can do troubleshooting there without the fear of disrupting a live website?

Thanks.

#2675741

Hi,
that's strange. It's on a "standard" webhotel.
Anyway, the site (hidden link) is my staging site so go ahead and work on it directly. I think you got the login details previously.

#2675971

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

Thank you I managed to find a workaround which I explained here:

hidden link

I went to WordPress Dashboard > Toolset > Content Templates and hovered over the content template in question and clicked the "Duplicate" option and the duplicate content template works correctly and can be edited.

Thanks.

#2676495

Hi Christopher,
I finally checked your solution (after the holiday) and it seems to work as you say. Something must have messed up the template but as long as there is a workaround it's not a big problem for me.

I really like Toolset but sometimes complex templates (or more often Views) have given me some problem where the real problem is hard to locate/debug. In those cases I wish there was a simple way to turn off blocks or sections to find the culprit.