Command icon 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

estoclet created an issue. See original summary.

leroux_david’s picture

StatusFileSize
new1.05 KB

Patch to check for existing route before adding it to the menu.

leroux_david’s picture

StatusFileSize
new1.74 KB
paul_serval’s picture

StatusFileSize
new1.32 KB

Patch reroll for 3.5.1

niharika.s’s picture

Assigned: Unassigned » niharika.s
niharika.s’s picture

Assigned: niharika.s » Unassigned
Status: Active » Needs review
StatusFileSize
new1.44 KB

I’ve updated ExtraLinks.php to check for the update.theme_install route before adding it, resolving the RouteNotFoundException error in Drupal 11.0.x. Please review the changes.

sassafrass’s picture

I am experiencing this issue with Drupal 10.3 and 10.4, with Admin Toolbar 3.5.1.

alyaj2a’s picture

In my case, I have Admin Toolbar Tools version 3.0.5 and Drupal 11.0.1, but I don't have this problem.

leducdubleuet’s picture

Title: Compatibility issue: Route update.theme_install does not exist in Drupal 11.0.x » Compatibility issue: Route update.theme_install does not exist in Drupal 11.0.x & 10.4.x
Status: Needs review » Needs work

I can confirm the patch in comment #4 called admin_toolbar_3493798_4.patch is working well for version 3.5.1 of this module under Drupal 10.4.0.

And the one in comment #6 called compatibility-issue-update.3493798.patch does not fix the issue under Drupal 10.4.0.

I put this back to needs work since the right approach needs to be determined.

Thank you very much!

nikit’s picture

Confirming that #4 work for 3.5.1 Drupal 10.4.0.

joelseguin’s picture

I'm confirming that #4 worked as well (running D10.4.0 and Admin Toolbar 3.5.1). No luck with #6.

rjw’s picture

Also confirming that #4 work for Admin Toolbar 3.5.1 and Drupal 10.4.0.

Anonymous’s picture

Confirming: #4 work for Admin Toolbar 3.5.1 and Drupal 10.4.0.
#6 didnt work for me

shivam_tiwari made their first commit to this issue’s fork.

shivam_tiwari’s picture

Issue tags: +Needs tests

According to the right way, we are using MRs. So I created MR 110. Need to work here for resolve test failure issue.

sk_10’s picture

The #4 is working for Admin Toolbar 3.5.1 and Drupal 10.4.0. #6 is not working. When navigating to `/admin/structure/menu/manage/admin the same error was coming. I followed these steps:

  1. Disabled the deprecated Admin Toolbar Links Access Filter and Admin Toolbar Extra Tools
  2. I upgraded the admin toolbar from 3.4.0 to 3.5.1
  3. Applied #4 admin_toolbar_3493798_4.patch
  4. Reenabled the Admin Toolbar Extra Tools module, this worked!

Post drupal core update 10.4.0, few of the admin navigation menus were missing, these were migrated ones might be due to that, readding them fixed it.

aangel’s picture

For my composer-based install, I think in my situation there was something lingering (a block from admin_toolbar_tools? see the backtrace below) that referenced the update.links.action.yml file because I did everything I could think of before the final step below. (I had restored the Upgrade Manager module thinking that would help but it turned out to make things worse.)

In any case, I:

  • removed the update module entry by editing the config table
  • cleared every cache I could think of
  • reviewed the menu_tree table
  • reviewed router table
  • reviewed the plugin definitions
  • applied both patch #4 and #6 from Compatibility issue: Route update.theme_install does not exist in Drupal 11.0.x & 10.4.x
  • and likely other things I'm not remembering.

It wasn't until I completely erased the contents of update.links.action.yml that that I could pull up /admin/modules—even though the module was uninstalled (but present on the filesystem).

Perhaps this will help someone who painted themselves into the same corner I did.

Below is the backtrace from the failure in RouteProvider.php ("Route "update.module_install" does not exist."):

#0 /code/web/core/lib/Drupal/Core/Menu/LocalActionDefault.php(87): Drupal\Core\Routing\RouteProvider->getRouteByName('update.module_i...')
#1 /code/web/core/lib/Drupal/Core/Menu/LocalActionManager.php(192): Drupal\Core\Menu\LocalActionDefault->getRouteParameters(Object(Drupal\Core\Routing\CurrentRouteMatch))
#2 /code/web/core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php(81): Drupal\Core\Menu\LocalActionManager->getActionsForRoute('system.modules_...')
#3 /code/web/core/modules/block/src/BlockViewBuilder.php(171): Drupal\Core\Menu\Plugin\Block\LocalActionsBlock->build()
#4 [internal function]: Drupal\block\BlockViewBuilder::preRender(Array)
#5 /code/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(113): call_user_func_array('Drupal\\block\\Bl...', Array)
#6 /code/web/core/lib/Drupal/Core/Render/Renderer.php(870): Drupal\Core\Render\Renderer->doTrustedCallback('Drupal\\block\\Bl...', Array, 'Render #pre_ren...', 'exception', 'Drupal\\Core\\Ren...')
#7 /code/web/core/lib/Drupal/Core/Render/Renderer.php(432): Drupal\Core\Render\Renderer->doCallback('#pre_render', 'Drupal\\block\\Bl...', Array)
#8 /code/web/core/lib/Drupal/Core/Render/Renderer.php(504): Drupal\Core\Render\Renderer->doRender(Array)
#9 /code/web/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender(Array, false)
#10 /code/web/core/lib/Drupal/Core/Template/TwigExtension.php(484): Drupal\Core\Render\Renderer->render(Array)
#11 /files/php/twig/678ecf147c807_page.html.twig_CiIyKlwi1CiiVfhMLJjmz4BX0/98gFkY9cIZo0bQJ1_QGhaX98smPe7gsMtSAC39cdu-Y.php(90): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#12 /code/vendor/twig/twig/src/Template.php(387): __TwigTemplate_0e19dbed70a1ef5fd668bdace6bdbdce->doDisplay(Array, Array)
#13 /code/vendor/twig/twig/src/Template.php(343): Twig\Template->yield(Array, Array)
#14 /code/vendor/twig/twig/src/Template.php(358): Twig\Template->display(Array)
#15 /code/vendor/twig/twig/src/TemplateWrapper.php(35): Twig\Template->render(Array)
#16 /code/web/core/themes/engines/twig/twig.engine(33): Twig\TemplateWrapper->render(Array)
#17 /code/web/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template('core/themes/cla...', Array)
#18 /code/web/core/lib/Drupal/Core/Render/Renderer.php(491): Drupal\Core\Theme\ThemeManager->render('page', Array)
#19 /code/web/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender(Array, false)
#20 /code/web/core/lib/Drupal/Core/Template/TwigExtension.php(484): Drupal\Core\Render\Renderer->render(Array)
#21 /files/php/twig/678ecf147c807_html.html.twig_5PuhOBihR5J2SomMX1OHMMKUe/aFbEDfVcpSz7WS-gVUQnxHFhmcE3cKm5zGMfYZWptOI.php(91): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#22 /code/vendor/twig/twig/src/Template.php(387): __TwigTemplate_28dda737252b4ec9e62e7e0f81eef67e->doDisplay(Array, Array)
#23 /code/vendor/twig/twig/src/Template.php(343): Twig\Template->yield(Array, Array)
#24 /code/vendor/twig/twig/src/Template.php(358): Twig\Template->display(Array)
#25 /code/vendor/twig/twig/src/TemplateWrapper.php(35): Twig\Template->render(Array)
#26 /code/web/core/themes/engines/twig/twig.engine(33): Twig\TemplateWrapper->render(Array)
#27 /code/web/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template('core/themes/cla...', Array)
<snip>
rolodmonkey’s picture

lmoeni’s picture

I can also confirm that patch #4 and the MR solves the problem with Drupal 10.4.1 and Admin Toolbar 3.5.1.

martygraphie’s picture

Hi,
Patch #4 works fine !
Thanks !

adrianm6254’s picture

I was able to apply #4 successfully.

ankitjhakal’s picture

tonytheferg’s picture

patch 4 worked as well

solimanharkas’s picture

I can reproduce the issue and Patch 4 fixed the issue.

anybody’s picture

Priority: Normal » Major

I can confirm this issue and think we should set the priority to major, as it results in a WSOD for site managers.

ressa’s picture

Issue summary: View changes

I agree @anybody, it would be great to get this fixed ... To get Admin Toolbar commits done faster, you could consider becoming co-maintainer?

Reformatting the Issue Summary, since all mark up was missing.

ressa’s picture

And by the way, the failing test for this MR is a false positive, it's the dev-tests themselves that are failing, see #3494654: FIXED broken tests.

It looks like they have been failing since 13 November 2024, if you look under https://git.drupalcode.org/project/admin_toolbar/-/pipelines.

ressa’s picture

Version: 3.5.0 » 3.x-dev
ressa’s picture

Status: Needs work » Needs review

Current MR110 based on the patch from #4 seems to work for a lot of users, so changing status.

dydave’s picture

Status: Needs review » Fixed

Thanks a lot everyone for the great help and @ressa in particular for pushing forward this issue.

I haven't had the time to test this myself, but looking at all the comments above, it seemed safe enough to assume these changes have been tested successfully with D9.5+, D10 and D11, by many users.

I've taken a quick look at MR!110 and it looked good, so I went ahead and got it merged above at #31.

Marking this issue Fixed for now.

Thanks in advance for your comments, replies and feedback!
Cheers!

anybody’s picture

@dydave thanks! Could you maybe tag a new release to get the WSOD away on production? :)

dydave’s picture

Thanks @anybody for the prompt and positive feedback!

@ressa and @anybody:

Any other tickets in the issue queue that should be processed before creating a new release?

I've taken a quick look yesterday, but couldn't find anything significant or RTBC: it's mostly feature requests or work in progress, still, at this point.

Please let me know if you would see anything else that should be addressed in priority, I would be glad to take a look before creating a new release.

Thanks in advance!

anybody’s picture

No I think one could discuss the other major ones, but better release often :)
This is most important to fix.

dydave’s picture

Thanks @anybody!

Let's see if @ressa or anyone else have anything else they would like to see addressed in priority ....

Otherwise, I will most likely use drupalorg-cli, at the end of the day to generate the release notes and create a new release.

Thanks again!

ressa’s picture

Thanks for looking at this @anybody and @dydave. I don't have any other issues that I think need to be addressed right now, so feel free to go ahead and tag a release. And I do agree that releasing small and often is usually a good approach :)

dydave’s picture

Sounds good! Thanks everyone!

Not to be included in the release, but, while I've got some attention, quick question:

Would anybody know why the CSPELL checks are failing, see last build:
https://git.drupalcode.org/project/admin_toolbar/-/pipelines/426926

CSPELL job: https://git.drupalcode.org/project/admin_toolbar/-/jobs/4387582

I thought this had been addressed in #3463378: GitlabCI: Fix CSPELL validation errors and we've got the file .cspell-project-words.txt which seems to be correct in the repo:
https://git.drupalcode.org/project/admin_toolbar/-/blob/3.x/.cspell-proj...

I haven't looked any further than that, but would anybody be aware of any changes on the infras/CI side?
I don't understand why the file is not picked up by the job in the build....

It's really just a side note... We'll most likely have to create specific tickets to look into the remaining build warnings.

But, if anyone has any idea or advice, it would be greatly appreciated.

Otherwise: no problem for the release, it will be taken care of at the end of the day.
Thanks everyone!

dydave’s picture

As requested: the new release admin_toolbar-3.5.2 was created.

Feel free to let us know if you encounter any issues or have any questions, we would greatly appreciate your feedback.

Thanks again everyone for the great help!

anybody’s picture

Thank you @dydave!! :)

ressa’s picture

Awesome, thanks @dydave!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

stephenplatz’s picture

I'm using admin_toolbar 3.6.1 and Drupal 10.5.1 and this issue is still affecting my sites after upgrading.

dydave’s picture

Thanks a lot Stephen,

Indeed, I've been wondering the same thing here: #3532010-21: D11.2: update.theme_update and update.module_update routes no more exist and found yesterday the change record:
The feature to install a new extension from a URL via the Drupal UI has been removed
in which the routes have been removed, introduced in 10.4.x and 11.x.
In other words, we should be comparing with 10.4 and not 11.

We will most likely make this correction in the related issue.

Thanks again for reporting back.

yonas.legesse’s picture

Issue summary: View changes
StatusFileSize
new2.09 KB

In the meantime, here is a working patch that adds the conditions to the rest of the routes: update.module_update and update.theme_update