- Issue created by @Grimreaper
- 🇫🇷France just_like_good_vibes PARIS
please add more details to the usecase, not very clear how to reproduce :)
- 🇫🇷France Grimreaper France 🇫🇷
- Install the standard installation profile
- use a UI Suite theme, like ui_suite_bootstrap (5.1.x)
- in manage display of the article content type, enable Layout Builder on the view mode full
- in Layout Builder add a section from a component, like grid_row_1
- in this section, place the "block" to display the comments field
- keep default settings of the comment field formatter
- save
- error on display - 🇫🇷France just_like_good_vibes PARIS
This is an horrible SDC bug...
there is a complex render array generated by the comments block, without any comments.At a certain depth in the render array, there an an empty array as the value of key "comments".
empty arrays are not considered render arrays, and the whole array structure is then considered not being a render array,
and SDC fails with WSOD.i propose to create a workaround for that case in ui_patterns, but that's clearly not our role.
We will help users, to keep protected from SDC being too strict :( - 🇫🇷France just_like_good_vibes PARIS
or maybe just a core bug...
seeDrupal\Core\Render\Element::isRenderArray
called fromComponentElement::generateComponentTemplate
, line 112. the lineElement::isRenderArray($slot_value)
is generating the error. - Merge request !314Resolve #3495982 "2.0.0 rc2 not possible" → (Merged) created by just_like_good_vibes
- 🇫🇷France just_like_good_vibes PARIS
here we go :) normalization of slot, a new add-on. Stronger than before :D
-
just_like_good_vibes →
committed 85939fc6 on 2.0.x
Issue #3495982 by just_like_good_vibes, grimreaper: Not possible to...
-
just_like_good_vibes →
committed 85939fc6 on 2.0.x
Automatically closed - issue fixed for 2 weeks with no activity.