Problem/Motivation
After Drupal 11.2 update, I got errors when trying to edit the Administration menu (/admin/structure/menu/manage/admin):
- Symfony\Component\Routing\Exception\RouteNotFoundException: Route "update.theme_update" does not exist.
- Symfony\Component\Routing\Exception\RouteNotFoundException: Route "update.module_update" does not exist.
Theses errors seem to come from the /admin_toolbar/admin_toolbar_tools/src/Plugin/Derivative/ExtraLinks.php file at lines 504+ and 516+
They seem related to changes in D11.2 regarding module and theme update pages being removed, see change record:
The UI for updating modules and themes via the admin interface has been removed
Proposed resolution
For testing purposes, commenting these blocks of code in the aforementioned file gives back access to the Admistration menu:
@line 504:
$links['update.module_update'] = [
'title' => $this->t('Update'),
'route_name' => 'update.module_update',
'parent' => 'system.modules_list',
] + $base_plugin_definition;@line 516:
$links['update.theme_update'] = [
'title' => $this->t('Update'),
'route_name' => 'update.theme_update',
'parent' => 'system.themes_page',
] + $base_plugin_definition;Should they be removed?
| Comment | File | Size | Author |
|---|---|---|---|
| #32 | link-to-patch.jpg | 27.17 KB | phily |
| #23 | 3532010-23-admin_toolbar-D10.3.14-install-update-routes1a.jpg | 97.52 KB | dydave |
| #17 | 3532010-162.patch | 3.53 KB | johnatas |
| #14 | SCR-20250630-ivaw.png | 13.96 KB | phily |
| #13 | 3532010-admin_toolbar-missing-routes.patch | 1.86 KB | uberhacker |
Issue fork admin_toolbar-3532010
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
philyComment #3
philyPatch attached for testing purposes
Comment #4
philyComment #6
philyMR for review
Comment #7
anybodyThanks!
Here's the core change record: https://www.drupal.org/node/3511861
Comment #8
benjifisherI am setting the status back to NW. See my comments on the MR.
Comment #9
phily@benjifisher: perfect thought but why checking for Drupal version? isn't verifying the route existence enough?
EDIT: makes sense with other
$links[]around edited code ;-)Comment #10
benjifisherJust for consistency. If I were writing it from the start, I would only check for whether the route exists.
Comment #11
philyComment #12
uv516 commentedDrupal 11.2:
The patch helped me.
Comment #13
uberhacker commentedMore elegant patch that should also work when the routes exist?
Comment #14
phily@uberhacker: MR162 has already been upatded in this way for backward compatibility.
When using a patch with MR, get it from here: (see attached capture).
Comment #15
johnatas commentedHey,
MR !162 tested successfully on Drupal 11.2.2 with Admin Toolbar 3.6.1.
Thanks,
Comment #16
mediameriquat commentedThe patch #3 works, I can edit my Admin Menu. Thanks!
However, it seems some other "legacy" menus (i.e. Main Navigation) need to be uninstalled from the theme to perform the database update from Drupal 11.2.1 to 11.2.2.
Comment #17
johnatas commentedHi @mediameriquat,
I believe the issue you're describing is the one that was reported in the thread of MR !162.
Patch #13 includes a conditional that should address it.
On my side, I created a patch based on MR !162 that works as expected — I'm attaching it to this comment.
Comment #19
dydave commentedThanks a lot everyone for reporting this issue and all the great help working on the code changes and testing.
Sorry for the late reply... But it's been a rough couple of weeks work-wise 😅
The changes from the merge request seem very reasonable and accurate to fix this bug.
I have just added a commit to refactor a bit the calls to version compare.
I have tested the changes locally on a D11.2 and a D10.5 sites and they seemed to work as expected 👌
I would greatly appreciate if you could please help testing and reviewing the merge request.
We don't currently have tests for this part of the module, so once we're good with these changes, we should be able to get them merged 👍
Any comments, reviews or testing feedback would be greatly appreciated.
Thanks in advance !
Comment #20
dydave commentedComment #21
dydave commentedNot sure why though .... But I'm not seeing the
update.module_installandupdate.theme_installlinks on D10.5...I wanted to check whether my last refactoring commit changed the display order of the menu items, but I was unable to find the links
Install new moduleorInstall new themeadded by the admin_toolbar module....Would anyone have any feedback on that ?
Otherwise, I'll take a bit more time later to look into this.
Thanks in advance!
Comment #22
dydave commentedOK, so I've checked these with a colleague and it would seem the install routes were dropped in D10.4 according to the change record The feature to install a new extension from a URL via the Drupal UI has been removed.
I understand better now, why I could not find the routes when testing with D10.4, D10.5 and D11.
So we should also probably update this compared version in the merge request as well.
I'll do a bit more tests to see if my latest commit changed the order of display of the links.
Comment #23
dydave commentedOK, I've tested this with D10.3.14 and the routes seem to be displaying in the same order before and after patch ✅
See screenshot below:
Upgraded to 10.4.8 and the install routes disappeared ✅
I didn't get any crash on the Edit admin menu page, since the existence of the routes is checked as well.
Therefore, I added an additional commit to update the version comparison for the install routes for 10.4, corresponding to change record The feature to install a new extension from a URL via the Drupal UI has been removed.
I've tested the changes locally myself with D10.3, D10.4, D11.2.2 and they seemed to work as expected 👌
At this point, the merge request should be pretty much ready to get merged, but let's get some more testing feedback and reviews, if possible, before effectively merging it.
Thanks in advance!
Comment #24
johnatas commentedHi @dydave,
The latest version of the MR works as expected on my D11.2.2 project ❤️
Thanks for the work!
Comment #26
dydave commentedThanks a lot Sylvain (@johnatas) for the prompt and positive feedback, it's greatly appreciated! 🙏
Following your confirmation, I did a few more manual tests locally and since all the jobs and automated tests for the merge request were passing 🟢 , I went ahead and merged the changes above at #25 🥳
Great job everyone! 👍
As a follow-up to this issue, I created feature request #3536457: Provide extra links for the Automatic Updates module as an attempt to provide an "equivalent" to these extra links, which should most likely be supported by the Automatic Updates contrib module from now on.
At this point, since I don't see anything else outstanding, this issue could probably be considered as Fixed for now.
Feel free to let us know if we missed anything or if you would encounter any issues with any of the latest code changes, we would surely be glad to hear your feedback.
Thanks again everyone for the great work and help on this issue! 🙂
Comment #28
dydave commentedCrediting my colleague @tYb for his help fixing the version compare for the
installroutes.Comment #29
marcelovaniThanks for fixing this, can you please cut a new release?
Comment #30
dydave commentedThanks Marcelo (@marcelovani)!
Is this super urgent, or could it wait a few weeks, around the 20th of August ? (Planned date for the next release)
Thanks in advance!
Comment #31
anybodyAnyone who needs it urgently may switch to 3.x-dev@dev (if project policy allows). Still I think this is an important fix justifying a release.
Comment #32
philyAnyone needing the fixed code before the next release can use MR!162 diff file as a patch file.

Available before the first comment.
Comment #33
dydave commentedOK, no problem at all 👌
Let's keep releasing more regularly and we'll just postpone the next scheduled release.
This will take off some pressure and give us a bit more time to get some more issues included in the next planned release 👍
Therefore, I went ahead and created the new admin_toolbar-3.6.2 stable release 🥳
Feel free to let us know if you spot anything else with recent core versions or some change records we may have missed, we would certainly be happy to take a look.
Thanks everyone once again for the great help keeping the module well maintained! 🙏