TypeError: when saving Field settings in D10.2

Created on 4 March 2024, 12 months ago
Updated 18 March 2024, 11 months ago

Problem/Motivation

When saving the Workflow Field settings in D10.2, the following error appears.

TypeError: Drupal\Core\Render\Element::children(): Argument #1 ($elements) must be of type array, null given, called in \core\modules\options\src\Plugin\Field\FieldType\ListItemBase.php on line 364 in Drupal\Core\Render\Element::children() (line 72 of core\lib\Drupal\Core\Render\Element.php).

Upon analyzing the stack, the error occurs in Drupal\options\Plugin\Field\FieldType\ListItemBase::validateAllowedValues().
The call is defined as a call_user_func_array() in WorkflowItem::storageSettngsForm():

Apparently, thisis provoked by a change in 10.2, as per Field configuration forms restructured: Field Storage Configuration Form is now a subform within Field Configuration Edit Form .

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.7

Component

Code

Created by

🇳🇱Netherlands johnv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024