The context is not a valid context (entity get returns empty string message)

Created on 10 March 2023, over 1 year ago
Updated 15 June 2024, 14 days ago

Problem/Motivation

Trying to access the bat_event entity endpoint I get the following error:
The website encountered an unexpected error. Please try again later.<br><br><em class="placeholder">Drupal\Component\Plugin\Exception\ContextException</em>: The bat_event context is not a valid context. in <em class="placeholder">Drupal\Core\Plugin\ContextAwarePluginBase-&gt;getContextDefinition()</em> (line <em class="placeholder">184</em> of <em class="placeholder">core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php</em>).

Proposed resolution

Update each Deriver defined with the module to include the 'context_definitions' instead of the 'context'.

πŸ› Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Alina Basarabeanu

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

Comments & Activities

Production build 0.69.0 2024