Call to a member function bundle() on null in Drupal\vocabulary_condition\Plugin\Condition\VocabularyCondition

Created on 10 July 2023, over 1 year ago

Problem/Motivation

Rendering any page in Drupal is prevented by this is error

Steps to reproduce

Apply D10 compatibility patch from https://www.drupal.org/project/vocabulary_condition/issues/3299468 πŸ“Œ Automated Drupal 10 compatibility fixes Fixed
https://www.drupal.org/files/issues/2022-07-23/vocabulary_condition.1.0.... β†’

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dietric@gmail.com

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

Comments & Activities

  • Issue created by @dietric@gmail.com
  • πŸ‡ΊπŸ‡ΈUnited States dietric@gmail.com
    The website encountered an unexpected error. Please try again later.
    Error: Call to a member function bundle() on null in Drupal\vocabulary_condition\Plugin\Condition\VocabularyCondition->evaluate() (line 128 of modules/contrib/vocabulary_condition/src/Plugin/Condition/VocabularyCondition.php).
    Drupal\vocabulary_condition\Plugin\Condition\VocabularyCondition->evaluate() (Line: 77)
    Drupal\Core\Condition\ConditionManager->execute(Object) (Line: 84)
    Drupal\Core\Condition\ConditionPluginBase->execute() (Line: 26)
    Drupal\context\ContextManager->resolveConditions(Object, 'or') (Line: 351)
    Drupal\context\ContextManager->evaluateContextConditions(Object) (Line: 253)
    Drupal\context\ContextManager->evaluateContexts() (Line: 241)
    Drupal\context\ContextManager->getActiveContexts() (Line: 273)
    Drupal\context\ContextManager->getActiveReactions() (Line: 44)
    Drupal\context\EventSubscriber\BlockPageDisplayVariantSubscriber->onSelectPageDisplayVariant(Object, 'render.page_display_variant.select', Object)
    call_user_func(Array, Object, 'render.page_display_variant.select', Object) (Line: 142)
    Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'render.page_display_variant.select') (Line: 224)
    Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
    Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
    Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
    call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
    Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
    Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
    Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
    Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 50)
    Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 48)
    Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
    Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
    Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718)
    Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Production build 0.71.5 2024