Overview
When clearing the cache in Drupal, the following error sometimes occurred.
./vendor/bin/drush cr
In CheckExceptionOnInvalidReferenceBehaviorPass.php line 88:
The service "access_check.contact_personal" has a dependency on a non-exist
ent service "user.data".
Here are my notes on how to resolve this error.
References
The following was helpful.
After upgrade to 8.5.3: The service "access_check.contact_personal" has a dependency on a non-existent service "user.data"
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".
Solution
A module named user had been created by the Features module.
/modules/custom/user
Deleting this resolved the error.
Additional Note
Similarly, a module named comment was also causing issues. Deleting it likewise resolved the error.
Summary
I hope this helps others experiencing the same error.




Comments
…