drupal_view breaks in 10.3

Created on 25 June 2024, 5 days ago
Updated 27 June 2024, 3 days ago

I upgraded to Drupal 10.3 and in a twig template, I had the following:

{% set output = drupal_view('view_name', 'machine_name' ) %} 

{{ output }}

Which worked fine. Now I get the following error.

InvalidArgumentException: "attributes" is an invalid render array key. Value should be an array but got a object. in Drupal\Core\Render\Element::children() (line 97 of /app/web/core/lib/Drupal/Core/Render/Element.php).

I spent 5+ hours chasing this down and then finally found a new issue similar but not exactly complaining about 10.3. I downgraded to 10.2 and the issue went away.

πŸ› Bug report
Status

Active

Version

3.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States couloir007

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

Comments & Activities

Production build 0.69.0 2024