Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found

Created on 1 February 2021, almost 4 years ago
Updated 31 May 2024, 6 months ago

Problem/Motivation

The website encountered an unexpected error. Please try again later.
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xxx.entity_subqueue' doesn't exist: SELECT "revision"."revision_id" AS "revision_id", "revision"."langcode" AS "langcode", "revision"."revision_user" AS "revision_user", "revision"."revision_created" AS "revision_created", "revision"."revision_log_message" AS "revision_log_message", "revision"."revision_default" AS "revision_default", "base"."name" AS "name", "base"."queue" AS "queue", "base"."uuid" AS "uuid", CASE base.revision_id WHEN revision.revision_id THEN 1 ELSE 0 END AS "isDefaultRevision" FROM {entity_subqueue} "base" INNER JOIN {entity_subqueue_revision} "revision" ON revision.revision_id = base.revision_id WHERE "base"."name" IN (:db_condition_placeholder_0); Array ( [:db_condition_placeholder_0] => slider ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage() (line 422 of core\lib\Drupal\Core\Entity\Sql\SqlContentEntityStorage.php).

Steps to reproduce

When we try to add new entity type, it's showing the error.

💬 Support request
Status

Closed: outdated

Version

1.2

Component

Code

Created by

🇦🇪United Arab Emirates ThirstySix

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