Fatal error when trying to view a kanban of all content

Created on 11 May 2023, over 1 year ago
Updated 16 May 2023, over 1 year ago

Problem/Motivation

If a user tries to use the kanban to view all content across all time periods, they get a fatal error.

The logged error is:

TypeError: Drupal\content_kanban\Component\KanbanEntry::__construct(): Argument #3 ($entity_type_config) must be of type Drupal\content_kanban\EntityTypeConfig, null given, called in /var/www/html/docroot/modules/contrib/content_planner/modules/content_kanban/src/Component/KanbanColumn.php on line 88 in Drupal\content_kanban\Component\KanbanEntry->__construct() (line 62 of /var/www/html/docroot/modules/contrib/content_planner/modules/content_kanban/src/Component/KanbanEntry.php)
#0 /var/www/html/docroot/modules/contrib/content_planner/modules/content_kanban/src/Component/KanbanColumn.php(88): Drupal\content_kanban\Component\KanbanEntry->__construct()
#1 /var/www/html/docroot/modules/contrib/content_planner/modules/content_kanban/src/Component/Kanban.php(262): Drupal\content_kanban\Component\KanbanColumn->build()
#2 /var/www/html/docroot/modules/contrib/content_planner/modules/content_kanban/src/Controller/KanbanController.php(112): Drupal\content_kanban\Component\Kanban->build()
#3 [internal function]: Drupal\content_kanban\Controller\KanbanController->showKanbans()
#4 /var/www/html/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#5 /var/www/html/docroot/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#6 /var/www/html/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#7 /var/www/html/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#8 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#9 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#10 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#11 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#12 /var/www/html/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#13 /var/www/html/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#14 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#15 /var/www/html/docroot/modules/contrib/cloudflare/src/CloudFlareMiddleware.php(116): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#16 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\cloudflare\CloudFlareMiddleware->handle()
#17 /var/www/html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#18 /var/www/html/docroot/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle()
#19 /var/www/html/docroot/index.php(19): Drupal\Core\DrupalKernel->handle()
#20 {main}

Steps to reproduce

Go to the kanban view and switch the time period to "Any" without making a selection in any of the other filters.

Proposed resolution

Update the code to handle this use case.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada mandclu

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

Comments & Activities

Production build 0.71.5 2024