Problem/Motivation

Found this error in version 1.12:

Drupal\Core\Entity\Exception\UnsupportedEntityTypeDefinitionException: The entity type redirect does not have a "published" entity key. in Drupal\redirect\Entity\Redirect::publishedBaseFieldDefinitions() (line 32 of /var/www/html/web/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php).

Any idea what could possibly causing this issue? Appreciate for any inputs thanks

Steps to reproduce

Version upgrade from 1.11 to 1.12

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

janpongos created an issue.

shank115’s picture

I wasn’t able to replicate this issue on my setup.

Here’s what I did:

  • Installed Redirect 1.11
  • Added two redirects — everything worked fine
  • Upgraded to 1.12
  • Existing redirects still worked
  • Added a new redirect — also worked fine

I’m using Drupal 11.3.2.

Could you please provide more detailed steps to reproduce the error?

The error 'The entity type redirect does not have a "published" entity key' typically occurs when some custom or contributed code expects the entity to have a published key

janpongos’s picture

Thanks @shank115

I should have add more context - this is installed with core 10.5.6 and the node causing error is the translated node.

No issue with the original language.

kepesv’s picture

Same experience here during deployment. (I cannot provide more detailed information at this time.)

joseph.olstad’s picture

Just upgraded from Drupal 11.1 to Drupal 11.2 with the upgraded redirect module.

First cache rebuild:

The entity type redirect does not have a "published" entity key.

Second cache rebuild:

[success] Cache rebuild complete.