Skip Navigation

[Résolu] Error inserting Fields and Posts block in Page template

This support ticket is created Il y a 1 année et 11 mois. 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.

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par Christopher Amirian Il y a 1 année et 11 mois.

Assisté par: Christopher Amirian.

Auteur
Publications
#2533789
Screenshot 2023-01-13 at 17-14-30 Editor (beta) ‹ Test site — WordPress.png

I am trying to edit a template in the default Twenty Twenty-Three theme, using the theme editor. When I try to insert a Fields and Posts block, I get an error message: "This block has encountered an error and cannot be previewed."

I'm seeing this on a newly created site with only Types and Toolset Blocks activated. WordPress 6.1.1

This appears similar to the previous issue with the Fields and Posts block (https://toolset.com/errata/fields-and-text-block-broken-with-wordpress-6-1-update/) which was fixed with v1.6.4. It is working for me when I edit an individual post, but it's still giving the error when I am editing a theme page template.

#2534807

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi there,

Thank you for the report. I managed to replicate the issue on a clean installation:

lien caché

I reported this to the second tier and will update you as soon as I have news.

Thank you.

#2536309

Thanks Christopher. I'll be glad to hear an update when you have one.
Best wishes,
Chris

#2536387

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi there,

I have an answer. We don’t have any formal support for using Toolset Blocks with Full Site Editing.

Toolset block previews will not work correctly in the Full Site Editing, but it might show correct front-end data, but not guaranteed.

Until such time as we thoroughly review Toolset Blocks together with Full Site Editing, we won’t address issues with individual blocks, such as the Fields and Text block.

Having said that, I would recommend using the Custom HTML block together with Toolset shortcodes, as required:

https://toolset.com/documentation/programmer-reference/views/views-shortcodes/

Thanks.