Link to a page where the issue can be seen: hidden link (white page when trying to edit)
I expected to see:
an editable page
Instead, I got:
react-dom.min.js?ver=18.2.0:10 TypeError: e[t].toHTMLString is not a function
at index.js?ver=254000:2:583
at Array.forEach (<anonymous>)
at a (index.js?ver=254000:2:505)
at ya (index.js?ver=254000:2:265188)
at Na.<computed> (index.js?ver=254000:2:269307)
at index.js?ver=254000:2:782480
at load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,hoverIntent,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.5.5:15:2773
at Ur (blocks.min.js?ver=6612d078dfaf28b875b8:19:9393)
at Fr (blocks.min.js?ver=6612d078dfaf28b875b8:19:9485)
at blocks.min.js?ver=6612d078dfaf28b875b8:19:38594
Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.
Can you please test minimal, using a default theme(if applicable) and with all non-Toolset and essentials plugins disabled to see if the error persists. If possible make a backup of the site before doing it or test on a staging copy.
In addition to that, I'd like your help enabling the debug mode to help us track the error down, please add the following code to the wp-config.php file:
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );
Yes, we tried disabling plugins already, but to no avail. The only meaningful debug log we are having is deprecation notice on Toolset code:
[25-Jun-2024 20:41:30 UTC] PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in .../wp-content/plugins/types/vendor/toolset/types/embedded/admin.php on line 168
[25-Jun-2024 20:41:30 UTC] PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in .../wp-content/plugins/types/vendor/toolset/types/embedded/admin.php on line 168
I suggest you should create a staging site and install the shared beta version with above errata on your staging site and check if that help you to resolve your issue.
If it works then wait a bit and we do have plan to release official hotfix version in couple of weeks. You can even use the beta version on your production site but we do not recommond it.
Hi and thank you. We tried to install the pre-release version of Block, which crashed the whole site and got that debug log, FYI:
[26-Jun-2024 09:55:37 UTC] PHP Fatal error: Could not check compatibility between OTGS\Toolset\Twig\Node\Node::getIterator(): OTGS\Toolset\Twig\Node\Traversable and IteratorAggregate::getIterator(): Traversable, because class OTGS\Toolset\Twig\Node\Traversable is not available in /var/www/next.dcvmn.net/htdocs/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/lib/Twig/src/Node/Node.php on line 179
We finally reinstalled the current release and the bug is gone, surprisingly.
Thanks anyway !
Can you please try to use the following latest beta version of Toolset Blocks on ***staging*** site first and check if that help you to resolve your issue.
- hidden link
If the beta version help you to resolve your issue with your **staging** site, I suggest you should wait a bit and we will suppose to release official hotfix version in coming one or two weeks.