After upgrading to 10, the Symfony Component EventDispatcher Event class does not exist

Created on 23 March 2023, over 1 year ago

The website encountered an unexpected error. Please try again later.

Error: Class "Symfony\Component\EventDispatcher\Event" not found in include() (line 10 of modules/contrib/external_entities/src/Event/ExternalEntityMapRawDataEvent.php).

Composer\Autoload\{closure}('/var/www/yusen/docroot/modules/contrib/external_entities/src/Event/ExternalEntityMapRawDataEvent.php') (Line: 433)
Composer\Autoload\ClassLoader->loadClass('Drupal\external_entities\Event\ExternalEntityMapRawDataEvent') (Line: 393)
Drupal\external_entities\ExternalEntityStorage->mapFromRawStorageData(Array) (Line: 245)
Drupal\external_entities\ExternalEntityStorage->getFromExternalStorage(NULL) (Line: 201)
Drupal\external_entities\ExternalEntityStorage->doLoadMultiple(NULL) (Line: 312)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(NULL) (Line: 152)
Drupal\yusen_base\ExternalEntity\LocationManager->getItems(NULL, , NULL) (Line: 198)
Drupal\yusen_base\ExternalEntity\LocationManager->loadTree() (Line: 117)
_yusen_location_options_allowed_values_function(Object, NULL, 1) (Line: 89)
options_allowed_values(Object) (Line: 37)
Drupal\options\Plugin\views\argument\StringListField->init(Object, Object, Array) (Line: 904)
Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers('argument') (Line: 115)
Drupal\views\Plugin\Derivative\ViewsBlock->getDerivativeDefinitions(Array) (Line: 101)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDerivatives(Array) (Line: 87)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() (Line: 291)
Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() (Line: 181)
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 22)
Drupal\Core\Plugin\DefaultPluginManager->getDefinition('field_block:node:landing_page:field_image') (Line: 16)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('field_block:node:landing_page:field_image', Array) (Line: 76)
Drupal\Component\Plugin\PluginManagerBase->createInstance('field_block:node:landing_page:field_image', Array) (Line: 243)
Drupal\layout_builder\SectionComponent->getPlugin() (Line: 500)
Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->getSectionComponentForFieldName('content_moderation_control') (Line: 475)
Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->getComponent('content_moderation_control') (Line: 201)
Drupal\Core\Entity\Entity\EntityViewDisplay->getRenderer('content_moderation_control') (Line: 238)
Drupal\Core\Entity\Entity\EntityViewDisplay->buildMultiple(Array) (Line: 266)
Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->buildMultiple(Array) (Line: 339)
Drupal\Core\Entity\EntityViewBuilder->buildComponents(Array, Array, Array, 'full') (Line: 24)
Drupal\node\NodeViewBuilder->buildComponents(Array, Array, Array, 'full') (Line: 281)
Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) (Line: 238)
Drupal\Core\Entity\EntityViewBuilder->build(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725 β†’ ', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 238)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 239)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 128)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 168)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 117)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 96)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 45)
Drupal\services\StackMiddleware\FormatSetter->handle(Object, 1, 1) (Line: 272)
Drupal\shield\ShieldMiddleware->bypass(Object, 1, 1) (Line: 228)
Drupal\shield\ShieldMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 686)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

πŸ› Bug report
Status

Closed: duplicate

Component

Code

Created by

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

Comments & Activities

Production build 0.69.0 2024