After upgrade to 2.4, Drupal 9.4.5 and PHP 8.0.21, \Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a real container.

Created on 5 August 2022, over 2 years ago
Updated 8 November 2024, 5 months ago

Problem/Motivation

I just upgraded to 2.4, and now I am getting the error:

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

Steps to reproduce

I have not yet determined the steps to consistently reproduce, therefore I am setting this to "support request" and not "bug report".

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇨🇦Canada alberto56

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