installing 5.0.9 leads to ChartManager not found

Created on 21 December 2023, 12 months ago
Updated 10 January 2024, 11 months ago

Problem/Motivation

Steps to reproduce

1. composer require 5.0.9 (requiring ^5.0 didn't work because it seems to depend on D9.2 and I am already in D10.1.7 with php8.1
2. drush cr
3. site down with following info:

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

Error: Class "Drupal\charts\Plugin\chart\ChartManager" not found in Drupal\Component\DependencyInjection\Container->createService() (line 259 of core\lib\Drupal\Component\DependencyInjection\Container.php).

Drupal\Component\DependencyInjection\Container->get('plugin.manager.charts') (Line: 122)
Drupal\charts\Plugin\views\style\ChartsPluginStyleChart::create(Object, Array, 'chart', Array) (Line: 21)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('chart', Array) (Line: 83)
Drupal\Component\Plugin\PluginManagerBase->createInstance('chart') (Line: 828)
Drupal\views\Plugin\views\display\DisplayPluginBase->getPlugin('style') (Line: 897)
Drupal\views\ViewExecutable->initStyle() (Line: 877)
Drupal\views\ViewExecutable->getStyle() (Line: 476)
Drupal\views\Plugin\views\field\FieldPluginBase->defineOptions() (Line: 372)
Drupal\views\Plugin\views\field\EntityField->defineOptions() (Line: 143)
Drupal\views\Plugin\views\PluginBase->init(Object, Object, Array) (Line: 109)
Drupal\views\Plugin\views\HandlerBase->init(Object, Object, Array) (Line: 136)
Drupal\views\Plugin\views\field\FieldPluginBase->init(Object, Object, Array) (Line: 199)
Drupal\views\Plugin\views\field\EntityField->init(Object, Object, Array) (Line: 906)
Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers('field') (Line: 1055)
Drupal\views\ViewExecutable->_initHandler('field', Array) (Line: 913)
Drupal\views\ViewExecutable->initHandlers() (Line: 101)
Drupal\eva\ViewDisplays->get() (Line: 20)
eva_entity_extra_field_info()
call_user_func_array(Object, Array) (Line: 409)
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}(Object, 'eva') (Line: 388)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('entity_extra_field_info', Object) (Line: 416)
Drupal\Core\Extension\ModuleHandler->invokeAll('entity_extra_field_info') (Line: 676)
Drupal\Core\Entity\EntityFieldManager->loadExtraFields() (Line: 649)
Drupal\Core\Entity\EntityFieldManager->getExtraFields('node', 'coureur_identity') (Line: 171)
Drupal\Core\Entity\EntityDisplayBase->init() (Line: 153)
Drupal\Core\Entity\EntityDisplayBase->__construct(Array, 'entity_view_display') (Line: 178)
Drupal\Core\Entity\Entity\EntityViewDisplay->__construct(Array, 'entity_view_display') (Line: 48)
Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->__construct(Array, 'entity_view_display') (Line: 418)
Drupal\Core\Entity\EntityStorageBase->mapFromStorageRecords(Array) (Line: 41)
Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplayStorage->mapFromStorageRecords(Array) (Line: 186)
Drupal\Core\Config\Entity\ConfigEntityStorage->doLoadMultiple(Array) (Line: 312)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 118)
Drupal\Core\Entity\Entity\EntityViewDisplay::collectRenderDisplays(Array, 'full') (Line: 280)
Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) (Line: 238)
Drupal\Core\Entity\EntityViewBuilder->build(Array)
call_user_func_array(Array, Array) (Line: 111)
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: 797)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 386)
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: 592)
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: 186)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
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: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->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: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Thanks in advance :)

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

5.0

Component

Views integration

Created by

πŸ‡§πŸ‡ͺBelgium Alain DG

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

Comments & Activities

Production build 0.71.5 2024