Score:0

The service "redirect.request_subscriber" has a dependency on a non-existent service "path_alias.manager"

ar flag

We have inherited a Multisite Drupal setup and are managing the migration for a client. We have the codebase set up locally and have two of the sites up and running. We are hitting an error on the third though:

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "redirect.request_subscriber" has a dependency on a non-existent service "path_alias.manager". in Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue() (line 86 of /Users/{hidden}/Sites/{hidden}/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php).

We're not sure why this error is displaying on this one site and not on the others. Can anyone help please? Drupal core is up to date - running 9.3.12.

cn flag
Is the `path_alias` module enabled? https://www.drupal.org/node/3092086
Tom Aston avatar
ar flag
I cannot access this particular site's admin (the whole site is erroring), but running `drush pm-list --type=Module --status=enabled` tells me that the module is enabled.
Tom Aston avatar
ar flag
... however, the fact that the `path_alias` and `path_alias_revision` database tables do not exist for this site suggests otherwise!
4uk4 avatar
cn flag
Then the database is not in syn with the codebase. You can try if update.php can fix this, but if there is such a big gap I doubt it works. If you can't log in anymore you can grant access to update.php in settings.php
Alfred Armstrong avatar
cn flag
I'd uninstall the module in question and then enable it so it goes through the installation process properly. I've seen this happen before but never worked out why, but turning it off and on again :) seems to do the trick.
Tom Aston avatar
ar flag
Thank you all. @4uk4 accessing update.php revealed what appears to have happened. The previous development team went through an exercise of updating all the sites to Drupal 9 before handing them over to us. It would appear that they missed a couple!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.