Fatal error on install on ContextDefinition

Created on 15 April 2024, 2 months ago

Problem/Motivation

Right after install, I get the following error :
Fatal error: Uncaught AssertionError: assert(!str_starts_with($data_type, 'entity:') || $this instanceof EntityContextDefinition) in /var/www/html/app/web/core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php:122

Steps to reproduce

Install the module in latest D10 environment

Proposed resolution

In SupportTicketRouteContext.php replace

new ContextDefinition(

with

new EntityContextDefinition(

seems to fix the issue

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇫🇷France Thony

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

Comments & Activities

Production build 0.69.0 2024