I am trying to: use the fields and text fields so I can conditionally enter some custom field data.
Link to a page where the issue can be seen: it's a backend issue.
I expected to see: a working fields and text block
Instead, I got: an unresponsive block with the message" Dit blok is een fout tegengekomen en kan geen voorbeeld tonen." = This block encountered an error and cannot display a preview
I already disabled all other plugins and reverted to twenty twenty four theme but it did not solve the problem.
IN the console i get this error:
TypeError: Cannot read properties of undefined (reading 'tinymce')
at v.value (blocks.js?ver=1.6.11:2:199505)
at Jr (react-dom.min.js?ver=18.2.0:10:80714)
at Zr (react-dom.min.js?ver=18.2.0:10:80489)
at Gr (react-dom.min.js?ver=18.2.0:10:80023)
at react-dom.min.js?ver=18.2.0:10:91526
at xl (react-dom.min.js?ver=18.2.0:10:92039)
at fl (react-dom.min.js?ver=18.2.0:10:85808)
at Nn (react-dom.min.js?ver=18.2.0:10:32474)
at react-dom.min.js?ver=18.2.0:10:83226
I have created a copy on my testserver for access. I will add credentials
I try to add the "Fields and Text" block on the page you shared:
- hidden link
But I do not able to see the error you mention with the initial post. Can you please tell me where I can see the error or exact steps I will have to follow to see the issue?
i see the URL links to the post edit screen, however it is in the template page of this post type that i have the issue. In the screenshot it shows the link to the template page where the issue can be found.
When I edit the page I see different JS error:
react-dom.min.js?ver=18.2.0:10 Uncaught TypeError: Cannot read properties of null (reading 'getContent')
at v.value (blocks.js?ver=1.6.11:2:208385)
at v.value (blocks.js?ver=1.6.11:2:207361)
at onClick (blocks.js?ver=1.6.11:2:219597)
at Object.Xa (react-dom.min.js?ver=18.2.0:10:105741)
at B (react-dom.min.js?ver=18.2.0:10:10501)
at W (react-dom.min.js?ver=18.2.0:10:10556)
at qe (react-dom.min.js?ver=18.2.0:10:23318)
at Ke (react-dom.min.js?ver=18.2.0:10:23733)
at react-dom.min.js?ver=18.2.0:10:29094
at dl (react-dom.min.js?ver=18.2.0:10:85879)
And another thing that the error what you mention - I do not see that:
Instead, I got: an unresponsive block with the message" Dit blok is een fout tegengekomen en kan geen voorbeeld tonen." = This block encountered an error and cannot display a preview
I'm checking with Chrome browser and at lease the "Fields and Text" block is added but still stuck as you can see with the following screenshot:
- hidden link
This must be related to conflict with plugins/theme or PHP version or any other possible cause.
I know you already try to disable the plugin but still can you again try to run a test:
Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
OR
If you want I will offer a brand new sandbox site where you can try to reproduce the issue.
as i said before i already disabled the plugins and reverted to default theme. I have done this again on my testserver. The problem still persists. You can see for yourself.
hidden link
you don't have to make a copy. The site on the testserver is already a copy with with you can change/test anything you want.
Your JS error looks like the one i added in the screenshot in my second message.
To eliminate your existing site settings and any possible conflicts.
Here is a sandbox site and you can auto-login to it using the following link:
- hidden link
Can you please add required plugins and try to reproduce the issue. Do you see the issue with brand new sandbox site? if yes, please send me the link of that page where I can see the issue.
i don't have to add any plugins to recreate the problem. I just activated the twentytwentyfour theme(full site editing theme). If i go to the editor and add a fields and text block the block does not load properly.