Fatal error when trying to view a kanban of all content
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3359586. --> Reported by: [mandclu](https://www.drupal.org/user/52136) Related to !40 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>If a user tries to use the kanban to view all content across all time periods, they get a fatal error.</p> <p>The logged error is:</p> <pre>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-&gt;__construct() (line 62 of /var/www/html/docroot/modules/contrib/content_planner/modules/content_kanban/src/Component/KanbanEntry.php)<br>#0 /var/www/html/docroot/modules/contrib/content_planner/modules/content_kanban/src/Component/KanbanColumn.php(88): Drupal\content_kanban\Component\KanbanEntry-&gt;__construct()<br>#1 /var/www/html/docroot/modules/contrib/content_planner/modules/content_kanban/src/Component/Kanban.php(262): Drupal\content_kanban\Component\KanbanColumn-&gt;build()<br>#2 /var/www/html/docroot/modules/contrib/content_planner/modules/content_kanban/src/Controller/KanbanController.php(112): Drupal\content_kanban\Component\Kanban-&gt;build()<br>#3 [internal function]: Drupal\content_kanban\Controller\KanbanController-&gt;showKanbans()<br>#4 /var/www/html/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()<br>#5 /var/www/html/docroot/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}()<br>#6 /var/www/html/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer-&gt;executeInRenderContext()<br>#7 /var/www/html/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;wrapControllerExecutionInRenderContext()<br>#8 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}()<br>#9 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw()<br>#10 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel-&gt;handle()<br>#11 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session-&gt;handle()<br>#12 /var/www/html/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle()<br>#13 /var/www/html/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache-&gt;pass()<br>#14 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache-&gt;handle()<br>#15 /var/www/html/docroot/modules/contrib/cloudflare/src/CloudFlareMiddleware.php(116): Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle()<br>#16 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\cloudflare\CloudFlareMiddleware-&gt;handle()<br>#17 /var/www/html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle()<br>#18 /var/www/html/docroot/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel-&gt;handle()<br>#19 /var/www/html/docroot/index.php(19): Drupal\Core\DrupalKernel-&gt;handle()<br>#20 {main}</pre><h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Go to the kanban view and switch the time period to "Any" without making a selection in any of the other filters.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Update the code to handle this use case.</p>
issue