Problem/Motivation

When the trash module is installed on a Drupal core site or a Drupal CMS site, you cannot install the facets module.

I get:

The website encountered an unexpected error. Try again later.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "facets_facet" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 171 of core/lib/Drupal/Core/Entity/EntityTypeManager.php).
Drupal\trash\TrashEntityTypeManager->getDefinition() (Line: 74)
Drupal\trash\TrashEntityTypeManager->getHandler() (Line: 62)
Drupal\trash\TrashEntityTypeManager->getStorage() (Line: 37)
Drupal\facets\Plugin\Block\FacetBlockDeriver::create() (Line: 25)

You cannot install facets through the UI or Drush.

You get the same error with WebFlorm, but I can install it through Drush.

If you install trash before canvas, you cannot install Canvas. You get the following error:

The website encountered an unexpected error. Try again later.

Drupal\Core\Entity\Exception\NoCorrespondingEntityClassException: The Drupal\canvas\Entity\Component class does not correspond to an entity type. in Drupal\Core\Entity\EntityTypeRepository->getEntityTypeFromClass() (line 111 of core/lib/Drupal/Core/Entity/EntityTypeRepository.php).
Drupal\Core\Entity\EntityBase::loadMultiple() (Line: 115)
Drupal\canvas\ComponentSource\ComponentSourceManager->generateComponents() (Line: 46)
Drupal\canvas\Block\BlockManagerDecorator->clearCachedDefinitions() (Line: 56)
Drupal\Core\Plugin\CachedDiscoveryClearer->clearCachedDefinitions() (Line: 353)
Drupal\Core\Extension\ModuleInstaller->doInstall() (Line: 229)
Drupal\Core\Extension\ModuleInstaller->install() (Line: 186)
Drupal\system\Form\ModulesListConfirmForm->submitForm() (Line: 108)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() (Line: 45)
Drupal\Core\Form\FormSubmitter->doSubmitForm() (Line: 620)
Drupal\Core\Form\FormBuilder->processForm() (Line: 343)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->{closure:Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber::wrapControllerExecutionInRenderContext():121}() (Line: 638)
Drupal\Core\Render\Renderer::{closure:Drupal\Core\Render\Renderer::executeInRenderContext():638}()
Fiber->start() (Line: 639)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->{closure:Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber::onController():96}() (Line: 183)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 30)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 118)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 92)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 71)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 54)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 753)
Drupal\Core\DrupalKernel->handle() (Line: 34)
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (Line: 32)
require('/var/www/html/vendor/autoload_runtime.php') (Line: 22)
require_once('/var/www/html/web/autoload_runtime.php') (Line: 13)

Steps to reproduce

* Install the drupal_cms_starter site template and try downloading and installing facets.

* Install core Drupal and install trash first, then facets

Comments

ivan zugec created an issue. See original summary.

ivan zugec’s picture

Issue summary: View changes
ivan zugec’s picture

Issue summary: View changes
loopduplicate’s picture

I attempted to reproduce using the second stated way: "Install core Drupal and install trash first, then facets".

I couldn't reproduce it that way.

My Exact Steps:

  • Install Drupal standard profile 11.4.7
  • Install the Trash module 3.1.x
  • Install the Facets module 3.0.7

There were no errors in the log either.

ivan zugec’s picture

I'll try and debug further tomorrow.

In the meantime, here's my setup:

DDEV v1.25.3
Drupal 11.4.7
nginx/1.26.3
php 8.4.22

drupal/trash 3.1.0
drupal/facets 3.0.7

amateescu’s picture

Status: Active » Postponed (maintainer needs more info)

The additional debug info would be great :)