- πΊπΈUnited States smustgrave
Can you confirm the bug still exists in 4.0.x? Not able to reproduce
Hi,
Installed:
composer require "drupal/quicktabs:4.0.x-dev@dev"I created a Quicktabs block, tab type:block, tab content: Body.
Placed it in "Content" region, tried to load the front page and got "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). "screenshot attached
- πΊπΈUnited States smustgrave
Actually can you check your steps or if you have other modules causing this?
Your comment says you did type block, content: body. Do you have a custom body block?
In the screenshot I see that ctools_block is present.
- πΊπΈUnited States smustgrave
ctools block seems to have a line
$entity = $this->getContextValue('entity');
That may be it.
- Merge request !28Resolve #3322771 "Quicktabs drupalcomponentpluginexceptioncontextexception the" β (Closed) created by smustgrave
- πΊπΈUnited States smustgrave
So think best we can do is catch these fatal errors but maybe we need a new ticket to make sure these kind of blocks don't appear as options.
- Status changed to Needs review
about 1 month ago 12:04am 28 June 2025 -
smustgrave β
committed a7729b13 on 4.0.x
Issue #3322771 by smustgrave: QuickTabs Drupal\Component\Plugin\...
-
smustgrave β
committed a7729b13 on 4.0.x
- πΊπΈUnited States smustgrave
Went with the catch at least it's a net improvement.
Automatically closed - issue fixed for 2 weeks with no activity.