Problem/Motivation

Routes to add a theme or module where removed in #3417136: Remove adding an extension via a URL. This code is now live with Drupal 11 and causes a whitepage when navigating to the /admin/structure/menu/manage/admin page.

This affects menu items added by the ExtraLinks class:

  • update.module_install
  • update.theme_install

Steps to reproduce

On a Drupal 11 site, navigate to /admin/structure/menu/manage/admin to receive the error message:

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "update.theme_install" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 208 of core/lib/Drupal/Core/Routing/RouteProvider.php).

Proposed resolution

Remove the now defunct menu items for Drupal 11 sites.

Remaining tasks

Write a patch and review.

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

ckaotik created an issue. See original summary.

ckaotik’s picture

Issue summary: View changes

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

hswong3i’s picture

Version: 3.4.2 » 3.x-dev
Status: Active » Needs review
hswong3i’s picture

Title: Error due to routes removed in Drupal 11 » Remove the now defunct menu items for Drupal 11 sites
zaurav’s picture

Edit: I had to enable admin_toolbar_extras and admin_toolbar_search to hit the error message. I can confirm the MR solves the issue.

On version 3.x of this module with fresh install of Drupal 11. I cannot reproduce error when going to page /admin/structure/menu/manage/admin

zaurav changed the visibility of the branch 3474908-ExtraLinks-drupal-11 to hidden.

zaurav changed the visibility of the branch 3474908-ExtraLinks-drupal-11 to active.

lfersoy’s picture

MR100 worked for me also, thanks!

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

japerry’s picture

Status: Needs review » Needs work

This removes the item from ALL versions of Drupal, so the current MR won't work... fixing.....

  • japerry committed a25d54fe on 3.x authored by hswong3i
    Issue #3474908 by japerry, hswong3i: Remove the now defunct menu items...
japerry’s picture

Status: Needs work » Fixed

Added checks to only add to versions of drupal less than 11.

Status: Fixed » Closed (fixed)

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