Problem/Motivation
I found issue during upgrading D9 to D10
The website encountered an unexpected error. Please try again later.
Drupal\Component\Plugin\Exception\MissingValueContextException: Required contexts without a value: entity, view_mode in Drupal\Core\Plugin\Context\ContextHandler->applyContextMapping() (line 150 of core/lib/Drupal/Core/Plugin/Context/ContextHandler.php).
Drupal\panels\Plugin\DisplayBuilder\StandardDisplayBuilder->buildRegions(Array, Array, '') (Line: 179)
Drupal\panels\Plugin\DisplayBuilder\StandardDisplayBuilder->build(Object) (Line: 338)
Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant->build() (Line: 29)
Drupal\page_manager\Entity\PageVariantViewBuilder->view(Object, 'full') (Line: 134)
Drupal\Core\Entity\Controller\EntityViewController->view(Object, 'full')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 163)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74)
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: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->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: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 686)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
I remove this specific component and issue was gone
Here is the config removed under page_manager.page_variant.node_view-panels_variant-1.yml
d026bcaa-74f8-4050-bc87-834a2e9a4fe0:
id: 'field_block:node:landing_page:body'
label: Body
label_display: '0'
provider: layout_builder
context_mapping:
entity: node
formatter:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
region: main
weight: -8
uuid: d026bcaa-74f8-4050-bc87-834a2e9a4fe0
Steps to reproduce
Upgrade D9 to D10
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes