Closed (fixed)
Project:
Webform
Version:
6.3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2025 at 19:50 UTC
Updated:
6 Oct 2025 at 20:34 UTC
Jump to comment: Most recent
When editing a form without webform_uid, if the YAML input contains an invalid render array, it triggers an exception:
InvalidArgumentException:
"foo" is an invalid render array key. Value should be an array but got a object.
at core/lib/Drupal/Core/Render/Element.php:97
at Drupal\Core\Render\Element::children()
(modules/contrib/webform/src/WebformEntityElementsForm.php:234)
at Drupal\webform\WebformEntityElementsForm->addWebformTypePrefixRecursive()
(modules/contrib/webform/src/WebformEntityElementsForm.php:216)
Don't enable webform_ui.
Browse to /admin/structure/webform/manage/[webform_id].
Save this YAML:
foo: bar
This error should be handled more gracefully.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
prudloff commentedMy bad, this is not related to to custom tags, it happens with any invalid render array.
Comment #3
prudloff commentedComment #6
jrockowitz commentedComment #7
jrockowitz commentedThis is a fairly simple change
Comment #8
jrockowitz commented