Skip Navigation

[Resuelto] Block validation failed for toolset-blocks/fields-and-text' when editing widgets

This support ticket is created hace 2 años, 10 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Zayne hace 2 años, 10 meses.

Autor
Mensajes
#2275191

I'm trying to add a view to the Right Sidebar Widget (enlace oculto)

Once I've added the loop, I tried to add fields using the 'fields and text' block, but it doesn't allow a preview. I also can't add a field. I get the errors below.

blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2

Block validation: Block validation failed for `toolset-blocks/fields-and-text` ({name: 'toolset-blocks/fields-and-text', icon: {…}, keywords: Array(3), attributes: {…}, providesContext: {…}, …}).

Content generated by `save` function:

<div class="tb-fields-and-text" data-toolset-blocks-fields-and-text="1"></div>

Content retrieved from post body:

(anonymous) @ blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2
(anonymous) @ blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2
Cr @ blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2
Cr @ blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2
Cr @ blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2
Cr @ blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2
(anonymous) @ blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2
Ar @ blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2
T @ edit-widgets.min.js?ver=b186cec01f1a7bb6ab91380888bf69f0:2
z @ edit-widgets.min.js?ver=b186cec01f1a7bb6ab91380888bf69f0:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
r @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
Promise.then (async)
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
r @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
c @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
t @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
(anonymous) @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
(anonymous) @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
(anonymous) @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
setTimeout (async)
(anonymous) @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
s @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
(anonymous) @ edit-widgets.min.js?ver=b186cec01f1a7bb6ab91380888bf69f0:2
(anonymous) @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
__experimentalMarkListeningStores @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
(anonymous) @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
(anonymous) @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
Te @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
xe @ edit-widgets.min.js?ver=b186cec01f1a7bb6ab91380888bf69f0:2
we @ react-dom.min.js?ver=16.13.1:84
zj @ react-dom.min.js?ver=16.13.1:226
Th @ react-dom.min.js?ver=16.13.1:152
tj @ react-dom.min.js?ver=16.13.1:152
Te @ react-dom.min.js?ver=16.13.1:146
Ja @ react-dom.min.js?ver=16.13.1:224
md @ react-dom.min.js?ver=16.13.1:173
(anonymous) @ react-dom.min.js?ver=16.13.1:175
Rh @ react-dom.min.js?ver=16.13.1:147
nd @ react-dom.min.js?ver=16.13.1:175
I.render @ react-dom.min.js?ver=16.13.1:238
ht @ edit-widgets.min.js?ver=b186cec01f1a7bb6ab91380888bf69f0:2
(anonymous) @ widgets.php:3333
blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2

Block validation: Expected {type: 'StartTag', tagName: 'div', attributes: Array(2), selfClosing: false}, instead saw end of content.
(anonymous) @ blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2
(anonymous) @ blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2
Cr @ blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2
Cr @ blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2
Cr @ blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2
Cr @ blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2
(anonymous) @ blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2
Ar @ blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2
T @ edit-widgets.min.js?ver=b186cec01f1a7bb6ab91380888bf69f0:2
z @ edit-widgets.min.js?ver=b186cec01f1a7bb6ab91380888bf69f0:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
r @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
Promise.then (async)
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
r @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
c @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
t @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ redux-routine.min.js?ver=fd5f93d1f8206c65d1891cf1f898211e:2
(anonymous) @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
(anonymous) @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
(anonymous) @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
(anonymous) @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
setTimeout (async)
(anonymous) @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
s @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
(anonymous) @ edit-widgets.min.js?ver=b186cec01f1a7bb6ab91380888bf69f0:2
(anonymous) @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
__experimentalMarkListeningStores @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
(anonymous) @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
(anonymous) @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
Te @ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2
xe @ edit-widgets.min.js?ver=b186cec01f1a7bb6ab91380888bf69f0:2
we @ react-dom.min.js?ver=16.13.1:84
zj @ react-dom.min.js?ver=16.13.1:226
Th @ react-dom.min.js?ver=16.13.1:152
tj @ react-dom.min.js?ver=16.13.1:152
Te @ react-dom.min.js?ver=16.13.1:146
Ja @ react-dom.min.js?ver=16.13.1:224
md @ react-dom.min.js?ver=16.13.1:173
(anonymous) @ react-dom.min.js?ver=16.13.1:175
Rh @ react-dom.min.js?ver=16.13.1:147
nd @ react-dom.min.js?ver=16.13.1:175
I.render @ react-dom.min.js?ver=16.13.1:238
ht @ edit-widgets.min.js?ver=b186cec01f1a7bb6ab91380888bf69f0:2
(anonymous) @ widgets.php:3333
blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156:2

Block validation: Block validation failed for `toolset-blocks/fields-and-text` ({name: 'toolset-blocks/fields-and-text', icon: {…}, keywords: Array(3), providesContext: {…}, usesContext: Array(0), …}).

Content generated by `save` function:

<div class="tb-container" style="display:inline-block;line-height:px"><div class="tb-container-inner"></div></div>

Content retrieved from post body:

#2275283

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Hi Zayne

I'm afraid Toolset Blocks are currently not supported in the new Widgets block editor.

We are still evaluating adding such support.

You are welcome to add a comment to the issue erratum: https://toolset.com/errata/toolset-blocks-do-not-work-in-new-block-based-widgets-editor/

#2275435

Thanks Nigel. Understood. What is the way around this then?