Unable to save 'access unpublished' setting form - TypeError: Drupal\Core\Render\Element::children(): Argument #1 ($elements) must be of type array, null given

Created on 14 February 2024, 4 months ago
Updated 29 May 2024, 27 days ago

Problem/Motivation

When I am trying to save 'access unpublished' setting form (/admin/config/content/access_unpublished) , I am getting below error

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

Steps to reproduce

1. Download access_unpublished module (composer require 'drupal/access_unpublished:^1.5')
2. Install/enable access_unpublished
3. Navigate to access unpublished setting form /admin/config/content/access_unpublished
4. Click on "Save configuration"

Drupal Version - 10.2.3
Php version - 8.1

I replicate this issue on https://simplytest.me/ as well.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India Sana.Neyazi

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

Comments & Activities

Production build 0.69.0 2024