Module crashes site in default configuration

Created on 11 June 2024, 4 months ago
Updated 14 August 2024, 2 months ago

Problem/Motivation

In the default configuration, the module crashes the whole backend of a site with the error

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "0" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 139 of core\lib\Drupal\Core\Entity\EntityTypeManager.php).

Therefore, the configuration also can't be changed after freshly installing the module.

Steps to reproduce

Just install the module and try accessing any configuration page.

Proposed resolution

The reason is that in the function getEnabledEntityTypes() (line 89 in TrashManager.php), the array keys of the configuration are taken, but the configuration of the entity types is loaded as [0 => 'node'].

Remaining tasks

Assure that getEnabledEntityTypes gives a valid result for every configuration.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024