Context (All) and Context (Any) condition brakes on unknown context

Created on 12 May 2025, 26 days ago

Placed a block which referred to a context I already deleted. This value remained at Context (all). This broke the application and resulted in the following error: Error: Call to a member function getConditions() on null in Drupal\context\Plugin\Condition\ContextAll->getCacheContexts() (line 78 of

Steps to reproduce
Fresh install Drupal with Context module enabled
In block layout edit a block which is currently displayed
At Context (all)/Context (any) fill out a name of a non-existing context
Save the configuration and notice your site is broken

🐛 Bug report
Status

Active

Version

5.0

Component

Code

Created by

🇮🇳India anup.singh

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024