By srd1 on
I've just finished uploading Drupal 8.5.3.
I visit example.com/user/login and receive the error:
The website encountered an unexpected error. Please try again later.
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "access_check.contact_personal" has a dependency on a non-existent service "user.data". in Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue() (line 32 of /home2/website/public_html/dynamic-keyword-module-drupal8/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php).
Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue(Object, ) (Line: 60)
Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue(Array, ) (Line: 29)
Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue(Array) (Line: 67)
Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue(Object, 1) (Line: 29)
Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue(Object, 1) (Line: 60)
Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue(Array, 1) (Line: 29)
Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue(Array, 1) (Line: 39)
Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->process(Object) (Line: 141)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object) (Line: 757)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1314)
Drupal\Core\DrupalKernel->compileContainer() (Line: 891)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 467)
Drupal\Core\DrupalKernel->boot() (Line: 663)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)Help appreciated.
Comments
same error here
i have the same error but in drush console. with execute drush cc for example, i dont found nothing about this error.
Drush Launcher Version: 0.6.0
Drush Commandline Tool 9.3.0
Drupal 8.5.5
Is the service there?
./core/modules/user/user.services.yml:23: user.data:
has a dependency on a non-existent service "user.data"
I've just finished upgrading Drupal 8.5.6
The website encountered an unexpected error. Please try again later.
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "plugin.manager.tfa.login" has a dependency on a non-existent service "user.data". in Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue() (line 31 of /vagrant/apps/sites/account/app/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php).
Faulty Extraction
I had this issue when I was manually updating my D9 site from 9.5.3 to 9.5.8. I did some digging and found that when I had downloaded and extracted the compressed 9.5.8 folder, that the user module in /core/modules/ was missing due to issues with the extraction even though my windows desktop didn't tell me there were.
If this isn't the case for you, then look in user.services.yml file of the core user module and see if you can find 'user.data' services was present.
Features
Adding a comment here in case anybody has an edge case like mine and finds themselves here.
I am working on a D10 site that still uses features, as part of troubleshooting a different issue I had exported a load of features. Some had problematic module names (eg. a custom module called 'user' had been created).
I then started receiving " The service X has a dependency on a non-existent service Y.Z." messages when running Drush commands.
I deleted these unwanted new feature modules I had unintentionally created to sort this out.