non-existent service "dbal_connection"

Created on 19 March 2025, 17 days ago

Problem/Motivation

After upgrading with composer to version 3.3.12 I got this error:

Got error 'PHP message: Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException: The service "entity_hierarchy.nested_set_storage_factory" has a dependency on a non-existent service "dbal_connection". in /xxx/drupal/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php on line 119 #0 /xxx/drupal/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(126): Symfony\\Component\\DependencyInjection\\Compiler\\AbstractRecursivePass@anonymous->processValue()\n#1 /xxx/drupal/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(86): Symfony\\Component\\DependencyInjection\\Compiler\\CheckExceptionOnInvalidReferenceBehaviorPass->throwServiceNotFoundException()\n#2 /xxx/drupal/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php(90): Symfony\\Component\\Depend...', referer: xxx/admin/reports/dblog

πŸ› Bug report
Status

Active

Version

3.0

Component

Code (module)

Created by

πŸ‡³πŸ‡±Netherlands promes

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

Comments & Activities

  • Issue created by @promes
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    Can you confirm you have the dbal module enabled?

  • πŸ‡³πŸ‡±Netherlands promes

    It's not possible to check. After running composer, I ran update. Then the only messgae I got is: The website encountered an unexpected error. Try again later.
    But:
    I restored the backup. Then I installed dbal. Ran Drupal Update. Next: update to version 3.3.12. Ran Drupal Update. Clear cache. Now the site works OK.

  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    I'm not sure how that would be possible as this module has always required the dbal module for the 3.x branch
    Any chance you accidentally downgraded from 5.x to 3.x?

  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10
Production build 0.71.5 2024