Override of node__teaser fails with ajax error

Created on 27 January 2023, about 2 years ago
Updated 16 March 2023, about 2 years ago

Problem/Motivation

When trying to override a node teaser template of a node type that contains and renders an image field, there’s an AJAX error:

Error: Call to a member function getId() on array in Drupal\Core\Utility\LinkGenerator->generate() (line 112 of /var/www/html/core/lib/Drupal/Core/Utility/LinkGenerator.php)."

Steps to reproduce

On Vanilla Drupal 9.5.x

  1. Enable the component_library module
  2. Add an article node
  3. Head to home and try to override the node__teaser template
🐛 Bug report
Status

Fixed

Version

1.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