- Issue created by @Peter Haight
- πΈπͺSweden thomjjames Sweden
Hi,
Also getting this during a Drupal 9 -> 10 upgrade process. I tried the patch but I still get 404s on the frontend and these log errors:
ArgumentCountError: Too few arguments to function Drupal\decoupled_router\EventSubscriber\RouterPathTranslatorSubscriber::__construct(), 6 passed in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 and exactly 8 expected in Drupal\decoupled_router\EventSubscriber\RouterPathTranslatorSubscriber->__construct() (line 92 of /var/www/html/web/modules/contrib/decoupled_router/src/EventSubscriber/RouterPathTranslatorSubscriber.php).
The original
Error: Call to a member function isMultilingual()
is gone however :)I'm using next-drupal as well so will check the issue queue there too, not had much time to look into this yet.
Thanks
Tom - πΈπͺSweden thomjjames Sweden
Hello again,
Ok turned out a pretty simple fix :)
The patches in the next-drupal docs (https://next-drupal.org/learn/quick-start/apply-patches) stopped applying so I assumed they were fixed and removed both, turns out only the subrequest patch is merged ( https://www.drupal.org/project/subrequests/issues/3049395 π Page Cache causes different subrequests to return the same responses Fixed ) not the decoupled router patch ( https://www.drupal.org/project/decoupled_router/issues/3111456 π Unable to resolve path on node in other language than default Needs work ). Updated to the patch in https://www.drupal.org/project/decoupled_router/issues/3111456#comment-1... π Unable to resolve path on node in other language than default Needs work and everything seems to be working again.
So you need this in your composer.json
"patches": { "drupal/decoupled_router": { "Unable to resolve path on node in other language than default": "https://www.drupal.org/files/issues/2024-08-05/decouple_router-3111456-resolve-language-issue-63--get-translation-re-rolled-and-good-redirect.patch" } }
Running:
Drupal core 10.3.5
Subrequests 3.0.12 (if that matters)
Next.js 1.6.3
Decoupled Router 2.0.5Hope that helps
Tom