Can't remove Poll Entities

Created on 3 September 2020, over 4 years ago
Updated 4 March 2024, 11 months ago

Hi,

I can't seem to use Polls anymore. There setup to use them as an Entity Reference with another node type. The field on that node type was removed. Checking the poll overview results in WSOD:

TypeError: Argument 1 passed to Drupal\Core\Entity\Sql\DefaultTableMapping::requiresDedicatedTableStorage() must implement interface Drupal\Core\Field\FieldStorageDefinitionInterface, null given, called in /home/dkvision/staging/dorsoo.be/core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php on line 331 in Drupal\Core\Entity\Sql\DefaultTableMapping->requiresDedicatedTableStorage() (line 512 of core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php).

Trying to reinstall the module fails, because there are still entities. However, following the link to delete these entities results in WSOD as well.

Error: Call to a member function getType() on null in Drupal\Core\Entity\ContentEntityStorageBase->cleanIds() (line 998 of core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php).

EDIT:

This one appears as well.

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db_dorsood8.poll__field_poll_node_reference' doesn't exist: SELECT 1 AS expression FROM {poll__field_poll_node_reference} t WHERE field_poll_node_reference_target_id IS NOT NULL LIMIT 1 OFFSET 0; Array ( ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->countFieldData() (line 1808 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Any ideas how to get this to work? Thanks!

💬 Support request
Status

Closed: cannot reproduce

Version

1.4

Component

Miscellaneous

Created by

🇧🇪Belgium fbreckx Antwerp

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