- Issue created by @makbay
Configuring the field_content_visibility of the page content type in an Open Social distribution causes the core field_ui
module to throw an error, as it expects default_value
to be an empty array instead of null
.
TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in count() (line 243 of core/modules/field_ui/src/Form/FieldConfigEditForm.php).
Drupal\field_ui\Form\FieldConfigEditForm->form(Array, Object) (Line: 107)
.
.
.
field_ui
module due to the invalid default_value
.
Update the default_value
key in the configuration file to use an empty array { }
instead of null
. The corrected configuration should look like:
default_value: { }
None.
None.
None.
Active
12.4
Code (back-end)