\Drupal::$container is not initialized yet

Created on 28 December 2024, 24 days ago

Problem/Motivation

I'm getting the following error when running drush cr on Drupal 11.1, gin_lb 1.0.0-rc8 and gin 3.0.0:

\Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a real container.

Steps to reproduce

This is caused by gin_lb_module_implements_alter and probably also the changes in Drupal 11 related to hooks.

Proposed resolution

Remove Drupal\gin_lb\HookHandler\ModuleImplementsAlter and move the code back to the hook.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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