Skip Navigation

[Resolved] White screen when editing if Toolset Blocks is active

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

Problem:

Since WordPress 5.9, if using non-Toolset blocks (including core blocks) with dynamic sources in templates, Views, or custom archives, errors are thrown and it may not be possible to edit the page.

Solution:

It should be a known issue, see our erratum:

https://toolset.com/errata/errors-when-using-3rd-party-blocks-with-dynamic-sources-since-wp-5-9-update/

Please try the workaround of above erratum

Relevant Documentation:

This support ticket is created 2 years, 6 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
- 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 7 replies, has 3 voices.

Last updated by katjaL 2 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#2356769

There are pages in my site which can be edited normally, but on some pages there is only white screen when trying to edit them. If I deactivate Toolset Blocks, everything works as expected.

Debugging is on and there are lots of memory and resources assigned to this site. Still I can't figure out how to correct this.

#2356871

Nigel
Supporter

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

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

A white screen means a fatal error on the server, so you should check you debug logs for details.

If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DISABLE_FATAL_ERROR_HANDLER',true);

That will create a debug.log file in your /wp-content/ directory which you can examine in any text editor. Try visiting the same pages where you observe the problem and then inspect the log.

Let us know what you find, the errors should help identify the problem.

#2356877

Yes this I have done already and only error there is like this:

[06-May-2022 06:58:41 UTC] PHP Notice: Trying to access array offset on value of type bool in /var/www/vhosts/o.tyonalla.fi/httpdocs/wp-content/plugins/wp-smartcrop/wp-smartcrop.php on line 413

Anyway I have already deleted this wp-smartcrop plugin completely, white screen stays and no errors, so no help there.

#2356887

Hello,

Is there any JS errors in your website? you can get the JS debug logs by following our document:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#javascript-debugging
section "Javascript Debugging"

If the problem still persists, please a copy of your website in below private message box, you can put the package files in your own google drive disk, share the link only, also point out the problem page URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#2356897
Screenshot 2022-05-06 at 10.51.13.png

Yes there are errors, in Safari dev (see attachement). Would it be possible to give login access to site? It's is a dev copy already, the production site is elsewhere.

#2356909

Please provide your staging website credentials + FTP access in below private message box, I might need to deactivate plugins/theme in your website, please backup your website first.

#2356955

It should be a known issue, see our erratum:
https://toolset.com/errata/errors-when-using-3rd-party-blocks-with-dynamic-sources-since-wp-5-9-update/
Please try the workaround of above erratum, since the FTP access you provided above isn't valid, I get below error message:

Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing

you need to try to edit the wp-config.php file yourself.

#2356999

Perfect, thank you so much! My issue is resolved now. Thank you!