Fatal error when referencing content type in view

Created on 17 June 2024, 12 months ago

Problem/Motivation

When using the NodeID relationship and trying to add content type as a filter a fatal error appears

Steps to reproduce

Create a view using events log track
Add the relationship for Node ID
Add a filter for content type
See everything is broken.

Proposed resolution

TBD

Remaining tasks

Figure out issue
Fix

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States smustgrave

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

Comments & Activities

  • Issue created by @smustgrave
  • πŸ‡¦πŸ‡ΊAustralia mingsong πŸ‡¦πŸ‡Ί

    Could you please provide the view configuration yml file? So that it is easy for others to reproduce this issue in a local test environment.

    Also the PHP error stack trace is important for troubleshooting.

  • Status changed to Closed: cannot reproduce about 2 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Exception: No entity type for field type_1 on view test in Drupal\views\Plugin\views\HandlerBase->getEntityType() (line 810 of /var/www/html/web/core/modules/views/src/Plugin/views/HandlerBase.php).

    #0 /var/www/html/web/core/modules/views/src/Plugin/views/filter/Bundle.php(94): Drupal\views\Plugin\views\HandlerBase->getEntityType()
    #1 /var/www/html/web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(902): Drupal\views\Plugin\views\filter\Bundle->init()
    #2 /var/www/html/web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(840): Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers()
    #3 /var/www/html/web/core/modules/views_ui/src/Form/Ajax/ConfigHandler.php(75): Drupal\views\Plugin\views\display\DisplayPluginBase->getHandler()
    #4 [internal function]: Drupal\views_ui\Form\Ajax\ConfigHandler->buildForm()
    #5 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(528): call_user_func_array()
    #6 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(279): Drupal\Core\Form\FormBuilder->retrieveForm()
    #7 /var/www/html/web/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(215): Drupal\Core\Form\FormBuilder->buildForm()
    #8 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(593): Drupal\views_ui\Form\Ajax\ViewsFormBase->Drupal\views_ui\Form\Ajax\{closure}()
    #9 /var/www/html/web/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(217): Drupal\Core\Render\Renderer->executeInRenderContext()
    #10 /var/www/html/web/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(150): Drupal\views_ui\Form\Ajax\ViewsFormBase->ajaxFormWrapper()
    #11 /var/www/html/web/core/modules/views_ui/src/Form/Ajax/AddHandler.php(36): Drupal\views_ui\Form\Ajax\ViewsFormBase->getForm()
    #12 [internal function]: Drupal\views_ui\Form\Ajax\AddHandler->getForm()
    #13 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
    #14 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(593): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
    #15 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
    #16 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
    #17 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(183): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
    #18 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
    #19 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
    #20 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
    #21 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
    #22 /var/www/html/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
    #23 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
    #24 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass()
    #25 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
    #26 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
    #27 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
    #28 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
    #29 /var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php(709): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
    #30 /var/www/html/web/index.php(19): Drupal\Core\DrupalKernel->handle()
    #31 {main}

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave
Production build 0.71.5 2024