Incompatible with Page Manager - Context missing after updating to 2.0

Created on 20 November 2019, almost 5 years ago
Updated 9 August 2023, over 1 year ago

After updating from 8.x-1.1 to 8.x-2.0, I've noticed it had problems with Page Manager.

Drupal 8.7.10
PHP 7.3 AND 7.2.24 (Both environments)
Page Manager 8.x-4.0-beta4
Page Manager UI 8.x-4.0-beta4

I use this module to override /user/* to /perfil/*, and I have an overwritten Page with Page Manager that works on the same /user/{uid} path.

DEV NOTEs:
- Everything worked as expected on 1.1 version. (/perfil/* took me to my overwritten page).
-- I've reverted to 1.1 using composer require 'drupal/rename_admin_paths:^1.1', cleaned cache and voilรก!
- If I disable "RENAME USER PATH" from Rename Admin Paths config, the page looks good on /user/{uid}

The website encountered an unexpected error. Try it again later.
<em class="placeholder">Drupal\Component\Plugin\Exception\MissingValueContextException</em>: Required contexts without a value: entity in <em class="placeholder">Drupal\Core\Plugin\Context\ContextHandler->applyContextMapping()</em> (line <em class="placeholder">155</em> of <em class="placeholder">core/lib/Drupal/Core/Plugin/Context/ContextHandler.php</em>).

<pre class="backtrace">Drupal\panels\Plugin\DisplayBuilder\StandardDisplayBuilder->buildRegions(Array, Array) (Line: 193)
Drupal\panels\Plugin\DisplayBuilder\StandardDisplayBuilder->build(Object) (Line: 331)
Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant->build() (Line: 34)
Drupal\page_manager\Entity\PageVariantViewBuilder->view(Object, "full") (Line: 104)
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: 582)
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: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
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: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
</pre>

Issue Notes.
- I've labeled it as Critical since it breaks the site.
- Let me know if you need some other info to reproduce this error. It's my first issue :)

๐Ÿ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

๐Ÿ‡ช๐Ÿ‡ธSpain nico.policastro La Coruรฑa

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024