Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293784

Drupal 11.1.2 upgrade causes \Drupal::$container is not initialized yet error

$
0
0

Problem/Motivation

Developed a local site in 11.0. Went to deploy by copying DB over and was getting the error below. Tried moving via backup & migrate, same error. Updated local to 11.1.2, now I am getting that same error locally. I am utilizing ddev.

ERROR:

The website encountered an unexpected error. Try again later.
Drupal\Core\DependencyInjection\ContainerNotInitializedException: \Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a real container. in Drupal::getContainer() (line 169 of core/lib/Drupal.php).
Drupal::getContainer() (Line: 414)
Drupal::config() (Line: 56)
include_once() (Line: 184)
Drupal\Core\Hook\HookCollectorPass->collectModuleHookImplementations() (Line: 147)
Drupal\Core\Hook\HookCollectorPass::collectAllHookImplementations() (Line: 78)
Drupal\Core\Hook\HookCollectorPass->process() (Line: 73)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile() (Line: 814)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1380)
Drupal\Core\DrupalKernel->compileContainer() (Line: 899)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 505)
Drupal\Core\DrupalKernel->boot() (Line: 707)
Drupal\Core\DrupalKernel->handle() (Line: 19)

New site install does still work.

Composer required:

"composer/installers": "^2.3",
        "drupal/admin_toolbar": "^3.5",
        "drupal/backup_migrate": "^5.1",
        "drupal/core-composer-scaffold": "^11.1",
        "drupal/core-project-message": "^11.1",
        "drupal/core-recommended": "^11.1",
        "drupal/devel": "^5.3",
        "drupal/field_group": "^4.0@alpha",
        "drupal/flmngr": "^2.14",
        "drupal/kint-kint": "^2.0",
        "drupal/metatag": "^2.1",
        "drupal/pathauto": "^1.13",
        "drupal/recaptcha": "^3.4",
        "drupal/smart_trim": "^2.2",
        "drupal/starrating": "^4.1@alpha",
        "drupal/zuvi": "^11.0",
        "drush/drush": "^13.3"

Custom code: One custom module with a form and a block plugin, no .module file or code.


Viewing all articles
Browse latest Browse all 293784

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>