failed ContextDefinition.php:112

Created on 28 April 2021, over 3 years ago
Updated 17 December 2023, 11 months ago

after installing bat/bee/bat_api/services with patch on drupal 9 I get many errors like this whenever I install a new module (any)

[warning] assert(): assert(strpos($data_type, 'entity:') !== 0 || $this instanceof EntityContextDefinition) failed ContextDefinition.php:112

Reproducable steps

install drupal 9 and drush

composer require 'drupal/services:9.0.x-dev@dev' 'drupal/bee:^1.2'

drush en bee (this installs a bunch of stuff including bat and bee)

Then you get multiples of the warnings above.

I think this might be to do with bat rather than bee because of this issue:
https://www.drupal.org/project/bat/issues/3034236#comment-14075907

It doesnt appear to affect the functioning of bat or bee, but it is worrying... when you dont know what the error might mean...

🐛 Bug report
Status

Fixed

Version

1.3

Component

Code

Created by

🇬🇧United Kingdom benjarlett

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

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