Skip Navigation

[Resolved] fields and text block not working

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 8 replies, has 2 voices.

Last updated by Minesh 9 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2698809
error-toolset.png

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

#2698901

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share problem URL of backend and tell me what exactly you want to achieve and what content you want to display conditionally.

I have set the next reply to private which means only you and I have access to it.

#2698915
#2699115

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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?

#2699136
screen3.png

HI Minesh,

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.

Kind regards,

Glenn Windhouwer

#2699155

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

#2699165

Hi Minesh,

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.

Kind regards,

Glenn

#2699275

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

#2699629
toolset_error.png

Hi Minesh,

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.

hidden link

Kind regards,

Glenn Windhouwer

#2699829

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I got it.

It seems to be known issue and here is the related errata page for that:
- https://toolset.com/errata/toolset-templates-archives-and-dynamic-sources-dont-work-with-fse-themes/

You will have to use non-FSE theme or you can not add blocks to FSE templates.

#2699938

Hi MInesh,

thank you for your reply. I do hope that you will add support for this in the future, it is an essential reason to use toolset.

Kind regards,

Glenn