InvalidArgumentException: "data-region" is an invalid render array key. Value should be an array but got a string. in Drupal\Core\Render\Element::children() (line 98 of core/lib/Drupal/Core/Render/Element.php).

Created on 26 June 2024, about 1 year ago

Problem/Motivation

Using Drupal 10.3 I get the following error when trying to translate a block containing a layout paragraph:
InvalidArgumentException: "data-region" is an invalid render array key. Value should be an array but got a string. in Drupal\Core\Render\Element::children() (line 98 of core/lib/Drupal/Core/Render/Element.php).

I grepped for the code and the only place I could find was:

contrib/layout_paragraphs/src/Element/LayoutParagraphsBuilder.php:            'data-region' => $region_name,

Any ideas how that can happen?
Currently I'm unable to create or edit a translation of this block. I deleted the original translation that had the error, but create gives the same error.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Comments & Activities

Production build 0.71.5 2024