TypeError when managing display of a Paragraph type without fields

Created on 18 September 2024, 2 months ago

Problem/Motivation

TypeError when managing display of a Paragraph type without fields.

TypeError: Drupal\Core\Render\Element::children(): Argument #1 ($elements) must be of type array, null given, called in /var/www/html/web/modules/contrib/ds/includes/field_ui.inc on line 294 in Drupal\Core\Render\Element::children() (line 71 of core/lib/Drupal/Core/Render/Element.php).

Used versions
Drupal Core: 10.3.5
Display Suite: 8.x-3.23

Steps to reproduce

  1. Create a new Paragraph type
  2. Go to the Manage display tab of the created Paragraph type
  3. Lean back and enjoy the error message

Proposed resolution

See attached patch

🐛 Bug report
Status

Fixed

Version

3.23

Component

Code

Created by

🇧🇪Belgium stijnd Belgium

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

Comments & Activities

Production build 0.71.5 2024