QuickTabs Drupal\Component\Plugin\Exception\ContextException: The 'entity:node' context is required and not present. in Drupal\Core\Plugin\Context\Context->getContextValue() (line 73 of core/lib/Drupal/Core/Plugin/Context/Context.php).

Created on 20 November 2022, over 2 years ago
Updated 10 December 2024, 4 months ago

Problem/Motivation

/user/* in block visibility crashes quick tabs.

Create a Quick Tabs menu that uses a block that uses user based contextual filter, or user based on content, such as "my webform submissions" and try to place the QuickTabs block on /user/* page using Block Layout

You will get:

Drupal\Component\Plugin\Exception\ContextException: The 'entity:node' context is required and not present. in Drupal\Core\Plugin\Context\Context->getContextValue() (line 73 of core/lib/Drupal/Core/Plugin/Context/Context.php).

Reproduced on the following versions:
8.x-3.x-dev & 8.x-3.x-alpha5

Steps to reproduce

* Create a views block within a Quick Tabs block

* Browse to `admin/structure/block` to place your block

Place Block

Show for the listed pages

/user/

or
/user/%user
/user/%1

* Then browse to "My Account" page /user

and you will see that the block is not there and does not show.

* Then change "Show for the listed pages" to /user/* and site will crash

Proposed resolution

Fix quick tabs to use block visibility when set to:
/user/

or
/user/%user
/user/%1

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Postponed: needs info

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jacov

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

Merge Requests

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