On: /admin/people/roles
Role -> Add own registration page
Result: The website encountered an unexpected error. Please try again later.
TypeError: Argument 3 passed to Drupal\multiple_registration\Controller\MultipleRegistrationController::__construct() must be an instance of Drupal\path_alias\AliasManager, instance of Drupal\Core\Path\AliasManager given, called in /code/core/lib/Drupal/Component/DependencyInjection/Container.php on line 285 in Drupal\multiple_registration\Controller\MultipleRegistrationController->__construct() (line 89 of /code/modules/multiple_registration/src/Controller/MultipleRegistrationController.php)
What does this error mean?
How do I fix it?
Comments
Comment #2
jtor commentedgetting same error. only on ver 2.9.1, no issue on 2.9
Comment #3
ramya balasubramanian commentedComment #4
ramya balasubramanian commentedHi @jtor, etr68,
I have added the patch and screenshot. Please have a look.
Comment #5
etr68 commentedRamya,
Thank you very much for your help on this issue.
I was not able to apply the patch automatically. I did manually edit the file. From there I did get to the next screen.
But the next screen gave the dread "The website encountered an unexpected error. Please try again later."
With the log saying:
Error: Class 'Drupal\path_alias\AliasStorage' not found in Drupal\multiple_registration\Controller\MultipleRegistrationController->getRegisterAliasStorage() (line 299 of /code/modules/multiple_registration/src/Controller/MultipleRegistrationController.php)
Comment #6
ramya balasubramanian commentedHi @etr68,
Ok. I will upload the patch again.we have a separate issue link for that error https://www.drupal.org/project/multiple_registration/issues/3136529. Please have a look
Comment #7
ramya balasubramanian commentedPlease try this one, I have checked locally I can able to apply the patch. Please let me know if you are facing any issues.
Comment #8
pradeepjha commentedPatch looks good to me. After applying patch, multiple registration form is opening for roles. Please check attached screenshot.

Comment #9
pradeepjha commentedComment #10
littlepixiez commentedHi there. This looks like it's an issue with the service being passed in being the wrong one - it should be "@path_alias.manager", not the deprecated "@path.alias_manager" - looks like it has been fixed in the controller but not in services.yml. The attached patch should fix it and still keep using the correct service, we probably don't want to remove the type in the constructor and keep it strict. :)
Comment #11
ysamoylenko commentedHello everyone,
Thank you for the report and reviewers efforts.
The patch will be committed soon.
Comment #13
ysamoylenko commentedThe patch was committed.
Comment #14
nikolas.tatianenko commented