Cannot proceed to second step because of TypeError Argument #1 ($elements) must be of type array, null given

Created on 26 July 2025, 10 days ago

Problem/Motivation

When button Next is clicked in the first step of a view with a views_send_bulk_form element, a WSOD appears with Error

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

It looks like the issue is a consequence of a change in the function declaration of Drupal\Core\Render\Renderer::doRender() starting with Drupal version 11.2.0

Steps to reproduce

Drupal 11.2.x

Proposed resolution

Instead of unset($form['output']), use $form['output'] = [] in ViewsSend::viewsForm

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇳🇱Netherlands jleipsig

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024