The "" entity type does not exist error while saving node

Created on 6 June 2023, over 1 year ago

Problem/Motivation

I am unable to save() at least one node. When I try to save the node (Basic Page), it throws this error:

The website encountered an unexpected error. Please try again later.

Drupal\Core\Entity\EntityStorageException: The "" entity type does not exist. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 815 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

I am not sure how to even begin troubleshooting this. Everything I'm doing is a dart throw due to inexperience. I don't know when the issue started, but if it started recently, it may have to do with the workflows or content moderation modules.

The error doesn't have much of a stack trace, so I'm having a hard time pinpointing what's going on. I've tested multiple other nodes, and I'm able to save successfully. I have not found another instance of this issue with any other types of nodes.

Steps to reproduce

I noticed the issue while making an adjustment to a workflow. I removed the "Basic Page" content type from the current workflow. I made changes to some publishing statuses for many basic pages, then I added "Basic Page" back to the workflow. I noticed the issue with this specific problematic node right after making these changes.

Can anyone help me with troubleshooting? Perhaps I can isolate the issue to a specific module and remove from Drupal Core project.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Closed: duplicate

Version

9.5

Component
Database updateΒ  β†’

Last updated 9 days ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States rraney

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

Comments & Activities

  • Issue created by @rraney
  • πŸ‡ΊπŸ‡ΈUnited States rraney

    I decided to try to recreate the node. I was assuming there would be no problem with creating a brand new Basic Page. I copied over some content which includes Full HTML text blocks. I got the page ready, then I went to the other node and deleted it (it still exists in a test environment). Then I hit save on the NEW node/page and got the same error.

    I used the same URL alias, which I'm now suspicious of, because that's the only thing that seems to make this node unique. I decided to allow the node to save it using a default URL. It did allow me to save this way (but it deleted all my work).

    It appears there is something corrupt about the specific URL alias. I may try deleting it from URL aliases and starting all over.

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

    I looked in URL aliases and there was no longer an alias for the problem node. I went back into the node and changed it to the old URL path. It saved correctly.

    I'd like to know why the URL alias could cause such site crashing error while trying to save. I'm willing to move on without a true resolution. If anyone could offer a possible explanation what may have happened, I'd really appreciate this.

  • Status changed to Closed: duplicate over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States cilefen
Production build 0.71.5 2024