Not compatible with Drupal 11.2

Created on 23 June 2025, 20 days ago

Problem/Motivation

After updating to Drupal 11.2 it is not possible to download vCards and the following error appears in the site log:

TypeError: Drupal\Core\Render\Renderer::doRenderRoot(): Argument #1 ($elements) must be of type array, string given, called in /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php on line 141 in Drupal\Core\Render\Renderer->doRenderRoot() (line 228 of /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php)

Steps to reproduce

Update to Drupal 11.2, click on a link to download vCards from a Views page.

Proposed resolution

It looks like Renderer::doRenderRoot() now needs a nested array while previously it accepted the render array directly. A patch that solves the issue is provided. It uses a slightly different method to iterate over the $variables array which avoids having to declare the list of names again.

Remaining tasks

Test the patch.

User interface changes

None.

API changes

None.

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024