- 🇮🇳India Kumar Ashutosh
I used to upgrade core from 10.2.4 to 10.2.5 and getting this error.
You have requested a non-existent service "token.module_provider". Did you mean this: "router.route_provider"? in Drupal\Component\DependencyInjection\Container->get() (line 157 of core\lib\Drupal\Component\DependencyInjection\Container.php).
So, I have downgraded the core version from 10.2.5 to 10.2.4 and it works like a charm for me.
I updated token to 1.14.0, diff to 1.3.0, search_api to 1.34.0, and search_api_solr to 4.3.3 on my main site which is working normally. On all my multisites, I see this message in Terminal.
ID Date Type Severity Message
------- -------------- -------------------- ---------- -------------------------------------------------------------------------------
18676 16/Apr 07:54 php Error Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You
have requested a non-existent service "token.module_provider". Did you mean
this: "router.route_provider"? in
18675 16/Apr 07:54 access denied Warning Path: /cehe/admin/reports/dblog?severity%5B%5D=3&severity%5B%5D=4.
Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: The 'access
site reports' permission is required. in Drupa
18674 15/Apr 18:56 php Error Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You
have requested a non-existent service "token.module_provider". Did you mean
this: "router.route_provider"? inI tried rolling back to the previous version of the modules as well as restoring the database and nothing is working yet.
- 🇺🇸United States natefollmer
@kumar-ashutosh I had the same error. You may want to check if you have any database updates pending. Search API had a pending DB update. After I ran drush updb, then the error you are seeing was resolved.
- 🇦🇪United Arab Emirates ThirstySix
Yeah it's working after database updates.
- drush cr
- drush updb
- drush cr