Possibly missing a label on the invoice entity

Created on 26 June 2025, 1 day ago

Problem/Motivation

Using Drupal 11.2.1 and Commerce Invoice 8.x.2-2, I get this error:

Drupal\Core\Render\Component\Exception\InvalidComponentDataException: Unable to render component "navigation:title". A render array or a scalar is expected for the slot "content" when using the render element with the "#slots" property in Drupal\Core\Render\Element\ComponentElement->generateComponentTemplate() (line 131 of core/lib/Drupal/Core/Render/Element/ComponentElement.php).

Steps to reproduce

  1. Enable the new experimental Navigation module.
  2. Display an invoice.

Proposed resolution

Possibly add the missing label on the invoice entity.

It is also possible to wait for Core to support missing entity label:

https://www.drupal.org/project/drupal/issues/3505182 🐛 An entity without a label causes an uncaught exception for the navigation:title component Active

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇦Canada xmacinfo Canada

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

Comments & Activities

Production build 0.71.5 2024