- Issue created by @Matt B
- Status changed to Postponed: needs info
2 months ago 2:59pm 25 June 2024 - πΊπΈUnited States cilefen
The issue summary is missing information as to what the error is, and in addition, a stack trace usually helps.
- π¬π§United Kingdom Matt B
Oh sorry - I meant to include those!
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 142 of /app/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php).
#0 /app/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php(260): Drupal\Core\Entity\EntityTypeManager->getDefinition(NULL) #1 /app/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php(195): Drupal\Core\Entity\EntityTypeManager->getHandler(NULL, 'storage') #2 /app/web/core/modules/views/src/Plugin/views/argument/EntityArgument.php(75): Drupal\Core\Entity\EntityTypeManager->getStorage(NULL) #3 /app/web/core/modules/views/src/Plugin/views/argument/NumericArgument.php(80): Drupal\views\Plugin\views\argument\EntityArgument->titleQuery() #4 /app/web/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php(1048): Drupal\views\Plugin\views\argument\NumericArgument->title() #5 /app/web/core/modules/views/src/ViewExecutable.php(1169): Drupal\views\Plugin\views\argument\ArgumentPluginBase->getTitle() #6 /app/web/core/modules/views/src/ViewExecutable.php(1326): Drupal\views\ViewExecutable->_buildArguments() #7 /app/web/core/modules/views/src/ViewExecutable.php(1450): Drupal\views\ViewExecutable->build(NULL) #8 /app/web/core/modules/views/src/ViewExecutable.php(1513): Drupal\views\ViewExecutable->execute(NULL) #9 /app/web/core/modules/views/src/Plugin/views/display/Block.php(133): Drupal\views\ViewExecutable->render() #10 /app/web/core/modules/views/src/ViewExecutable.php(1689): Drupal\views\Plugin\views\display\Block->execute() #11 /app/web/core/modules/views/src/Element/View.php(81): Drupal\views\ViewExecutable->executeDisplay('block_1', Array) #12 /app/web/core/modules/views/src/Plugin/Block/ViewsBlock.php(61): Drupal\views\Element\View::preRenderViewElement(Array) #13 /app/web/core/modules/block/src/BlockViewBuilder.php(171): Drupal\views\Plugin\Block\ViewsBlock->build() #14 [internal function]: Drupal\block\BlockViewBuilder::preRender(Array) #15 /app/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(113): call_user_func_array('Drupal\\block\\Bl...', Array) #16 /app/web/core/lib/Drupal/Core/Render/Renderer.php(870): Drupal\Core\Render\Renderer->doTrustedCallback('Drupal\\block\\Bl...', Array, 'Render #pre_ren...', 'exception', 'Drupal\\Core\\Ren...') #17 /app/web/core/lib/Drupal/Core/Render/Renderer.php(432): Drupal\Core\Render\Renderer->doCallback('#pre_render', 'Drupal\\block\\Bl...', Array) #18 /app/web/core/lib/Drupal/Core/Render/Renderer.php(504): Drupal\Core\Render\Renderer->doRender(Array) #19 /app/web/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender(Array, false) #20 /app/web/core/lib/Drupal/Core/Template/TwigExtension.php(475): Drupal\Core\Render\Renderer->render(Array) #21 /app/web/sites/default/files/php/twig/6679cf0676f48_page.html.twig_zXBJ4eWdFG43tfDViS2Qf0P0C/r0t2NdnmY0u30YNF6cn3Yv9TCAzOjoWkdC-0FFC0EMo.php(98): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #22 /app/vendor/twig/twig/src/Template.php(360): __TwigTemplate_ef9c3b0ef148e0de6ab83a3182d1be47->doDisplay(Array, Array) #23 /app/vendor/twig/twig/src/Template.php(335): Twig\Template->yield(Array) #24 /app/vendor/twig/twig/src/TemplateWrapper.php(38): Twig\Template->render(Array) #25 /app/web/core/themes/engines/twig/twig.engine(33): Twig\TemplateWrapper->render(Array) #26 /app/web/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template('themes/custom/c...', Array) #27 /app/web/core/lib/Drupal/Core/Render/Renderer.php(491): Drupal\Core\Theme\ThemeManager->render('page', Array) #28 /app/web/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender(Array, false) #29 /app/web/core/lib/Drupal/Core/Template/TwigExtension.php(475): Drupal\Core\Render\Renderer->render(Array) #30 /app/web/sites/default/files/php/twig/6679cf0676f48_html.html.twig_li9d6DKFnipluCIT-quR9gVG3/49vYTTWa7DJutRO0f4erIJM5jm_by-TYE_yc4r5-f64.php(87): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #31 /app/vendor/twig/twig/src/Template.php(360): __TwigTemplate_2f65b8edfe3c2a160d4f151cc11c2c3c->doDisplay(Array, Array) #32 /app/vendor/twig/twig/src/Template.php(335): Twig\Template->yield(Array) #33 /app/vendor/twig/twig/src/TemplateWrapper.php(38): Twig\Template->render(Array) #34 /app/web/core/themes/engines/twig/twig.engine(33): Twig\TemplateWrapper->render(Array) #35 /app/web/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template('themes/contrib/...', Array) #36 /app/web/core/lib/Drupal/Core/Render/Renderer.php(491): Drupal\Core\Theme\ThemeManager->render('html', Array) #37 /app/web/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender(Array, false) #38 /app/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(158): Drupal\Core\Render\Renderer->render(Array) #39 /app/web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() #40 /app/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(159): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #41 /app/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #42 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #43 /app/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #44 /app/vendor/symfony/http-kernel/HttpKernel.php(186): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view') #45 /app/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #46 /app/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #47 /app/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #48 /app/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #49 /app/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #50 /app/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #51 /app/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #52 /app/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #53 /app/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #54 /app/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #55 /app/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #56 /app/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #57 /app/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #58 {main}
- Status changed to Closed: works as designed
2 months ago 7:44am 26 June 2024 - π¬π§United Kingdom Matt B
I'm closing this as I've managed to fix the issue and there was something weird in the view.
The issue was to do with the contextual filter,
(field_organisation: Content) Tracker: Nid
Not sure why Tracker was being used here, not Content. It's been through a few migrations and upgrades (from Drupal 6!) which may be the reason why. I removed the filter and recreated it using ID in the Content category:
(field_organisation: Content) Content: ID (Default: Content ID from URL)
The views block now displays fine, with no WSD.