Error when trying to view styleguide

Created on 25 May 2018, almost 7 years ago
Updated 1 May 2025, 13 days ago

I am seeing an error when trying to view the styleguide.

Drupal\Core\Entity\EntityMalformedException: The "node" entity cannot have a URI as it does not have an ID in Drupal\Core\Entity\Entity->toUrl() (line 189 of /var/www/html/public_html/web/core/lib/Drupal/Core/Entity/Entity.php).

Local dev stack is DDEV running php 7.1.16. Unsure if a bug or a problem with my local site. Any pointers?

πŸ’¬ Support request
Status

Closed: cannot reproduce

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom mrpauldriver

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.

  • πŸ‡ΊπŸ‡ΈUnited States dcam

    I can't reproduce this either. I read through the stack trace and code, trying to replicate any configuration that I thought might be relevant. The code tries to use the article content type in mock search results. It looks like Layout Builder is in the mix. I tried setting all that up, but had no success.

    The bug certainly looks plausible because the style guide is rendering unsaved nodes. My concern is that this is specific to certain configurations. So I'm going to re-close this since it can't be reproduced by maintainers. Anyone can feel free to re-open it, but if you do then please provide steps to reproduce it starting with a fresh install of Drupal Core and the Style Guide module.

Production build 0.71.5 2024