Problem/Motivation
I am encountering the following error after enabling Rules on Drupal 10.6.3. The module worked correctly on Drupal 10.5.x, but I had to remove and reinstall it for 10.6.3. On a clean install, I am still receiving this error. Any suggestions would be appreciated.
In Drupal.php line 169:
[Drupal\Core\DependencyInjection\ContainerNotInitializedException]
\Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a real container.
Exception trace:
at /app/web/core/lib/Drupal.php:169
Drupal::getContainer() at /app/web/core/lib/Drupal.php:479
Drupal::state() at /app/web/modules/contrib/rules/src/EventSubscriber/GenericEventSubscriber.php:91
Drupal\rules\EventSubscriber\GenericEventSubscriber::getSubscribedEvents() at /app/web/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php:37
Drupal\Core\DependencyInjection\Compiler\RegisterEventSubscribersPass->process() at /app/vendor/symfony/dependency-injection/Compiler/Compiler.php:80
Symfony\Component\DependencyInjection\Compiler\Compiler->compile() at /app/vendor/symfony/dependency-injection/ContainerBuilder.php:768
Symfony\Component\DependencyInjection\ContainerBuilder->compile() at /app/web/core/lib/Drupal/Core/DrupalKernel.php:1449
Drupal\Core\DrupalKernel->compileContainer() at /app/web/core/lib/Drupal/Core/DrupalKernel.php:972
Drupal\Core\DrupalKernel->initializeContainer() at /app/web/core/lib/Drupal/Core/DrupalKernel.php:515
Drupal\Core\DrupalKernel->boot() at /app/web/core/includes/utility.inc:34
drupal_rebuild() at /app/vendor/drush/drush/src/Commands/core/CacheRebuildCommands.php:65
Comments
Comment #2
perlgal commentedComment #3
perlgal commentedComment #4
perlgal commentedUpdate: I downgraded Drupal to 10.5.6 on my local machine. Rules 4.0 works fine but upgrading to 4.0.1 gives the same error.