Error on layout builder page when adding an entity view block (chaos tools)

Created on 13 January 2023, almost 2 years ago
Updated 2 September 2024, 2 months ago

Problem/Motivation

We get an ajax error on the node layout builder page:

ResponseText: The website encountered an unexpected error. Please try again later.Drupal\Core\Entity\EntityMalformedException: The "node" entity cannot have a URI as it does not have an ID in Drupal\Core\Entity\EntityBase->toUrl() (line 161 of core/lib/Drupal/Core/Entity/EntityBase.php). share_everywhere_node_view()

Steps to reproduce

Use layout builder display for a content type.

In the manage layout page add an "Entity view (Content)" block (under "Chaos tools" section).

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡·πŸ‡΄Romania tavib47

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024