Error: Interface "Drupal\book_blocks\Plugin\Block\ContainerFactoryPluginInterface" not found

Created on 7 June 2023, over 1 year ago
Updated 12 June 2023, over 1 year ago

Error in 1.9.0

Upon upgrading from Book Blocks 1.8.0 to 1.9.0 all pages using book blocks fail with the following error:

Error: Interface "Drupal\book_blocks\Plugin\Block\ContainerFactoryPluginInterface" not found in include() (line 14 of /var/www/drupal/site/modules/contrib/book_blocks/src/Plugin/Block/BookBlocksTOCBlock.php)

#0 /var/www/drupal/site/vendor/composer/ClassLoader.php(582): include()
#1 /var/www/drupal/site/vendor/composer/ClassLoader.php(433): Composer\Autoload\{closure}()
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#3 /var/www/drupal/site/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php(96): class_exists()
#4 /var/www/drupal/site/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(17): Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass()
#5 /var/www/drupal/site/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(76): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance()
#6 /var/www/drupal/site/core/modules/layout_builder/src/SectionComponent.php(243): Drupal\Component\Plugin\PluginManagerBase->createInstance()
#7 /var/www/drupal/site/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php(500): Drupal\layout_builder\SectionComponent->getPlugin()
#8 /var/www/drupal/site/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php(475): Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->getSectionComponentForFieldName()
#9 /var/www/drupal/site/core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php(201): Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->getComponent()
#10 /var/www/drupal/site/core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php(238): Drupal\Core\Entity\Entity\EntityViewDisplay->getRenderer()
#11 /var/www/drupal/site/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php(266): Drupal\Core\Entity\Entity\EntityViewDisplay->buildMultiple()
#12 /var/www/drupal/site/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(340): Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->buildMultiple()
#13 /var/www/drupal/site/core/modules/node/src/NodeViewBuilder.php(24): Drupal\Core\Entity\EntityViewBuilder->buildComponents()
#14 /var/www/drupal/site/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(282): Drupal\node\NodeViewBuilder->buildComponents()
#15 /var/www/drupal/site/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(239): Drupal\Core\Entity\EntityViewBuilder->buildMultiple()
#16 [internal function]: Drupal\Core\Entity\EntityViewBuilder->build()
#17 /var/www/drupal/site/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(101): call_user_func_array()
#18 /var/www/drupal/site/core/lib/Drupal/Core/Render/Renderer.php(788): Drupal\Core\Render\Renderer->doTrustedCallback()
#19 /var/www/drupal/site/core/lib/Drupal/Core/Render/Renderer.php(374): Drupal\Core\Render\Renderer->doCallback()
#20 /var/www/drupal/site/core/lib/Drupal/Core/Render/Renderer.php(204): Drupal\Core\Render\Renderer->doRender()
#21 /var/www/drupal/site/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(242): Drupal\Core\Render\Renderer->render()
#22 /var/www/drupal/site/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#23 /var/www/drupal/site/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(243): Drupal\Core\Render\Renderer->executeInRenderContext()
#24 /var/www/drupal/site/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(132): Drupal\Core\Render\MainContent\HtmlRenderer->prepare()
#25 /var/www/drupal/site/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#26 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#27 /var/www/drupal/site/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()
#28 /var/www/drupal/site/vendor/symfony/http-kernel/HttpKernel.php(174): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#29 /var/www/drupal/site/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#30 /var/www/drupal/site/modules/contrib/force_password_change/src/Service/ForcePasswordChangeRedirectMiddleware.php(43): Symfony\Component\HttpKernel\HttpKernel->handle()
#31 /var/www/drupal/site/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Drupal\force_password_change\Service\ForcePasswordChangeRedirectMiddleware->handle()
#32 /var/www/drupal/site/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#33 /var/www/drupal/site/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#34 /var/www/drupal/site/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#35 /var/www/drupal/site/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle()
#36 /var/www/drupal/site/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#37 /var/www/drupal/site/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#38 /var/www/drupal/site/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#39 /var/www/drupal/site/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle()
#40 /var/www/drupal/site/index.php(19): Drupal\Core\DrupalKernel->handle()
#41 {main}

πŸ› Bug report
Status

Fixed

Version

1.9

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States elliotl

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

Comments & Activities

Production build 0.71.5 2024