A non-existent route breaks the site

Created on 23 January 2018, over 7 years ago
Updated 16 April 2025, 13 days ago

After upgrading from core 8.3.x, I can no longer get the Drupal-icon shortcut links in the admin_toolbar to work (includes clear-cache and run cron), uninstalling the tools module results in an error:

$ drush pm-uninstall admin_toolbar_tools
The following extensions will be uninstalled: admin_toolbar_tools
Do you really want to continue? (y/n): y
admin_toolbar_tools was successfully uninstalled.                                                                                                                     [ok]
Symfony\Component\Routing\Exception\ResourceNotFoundException: No routes found for "/". in Drupal\Core\Routing\Router->matchRequest() (line 159 of                    [error]
.../docroot/core/lib/Drupal/Core/Routing/Router.php).
Symfony\Component\Routing\Exception\ResourceNotFoundException: No routes found for "/". in Drupal\Core\Routing\Router->matchRequest() (line 159 of                    [error]
.../docroot/core/lib/Drupal/Core/Routing/Router.php).

re-installing the admin_toolbar_tools does nothing, and uninstalling seems to always throw the above error.

Before upgrading to 8.4.x, I had to uninstall all of admin_toolbar for a similar reason, because without doing so and upgrading resulted in similar errors, however, these errors would kill the site with a WSOD, these are the errors if I tried to upgrade Drupal core without first uninstalling the module:

Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "Route "admin_toolbar_tools.drupalorg" does not exist." at .../docroot/core/lib/Drupal/Core/Routing/RouteProvider.php line 190
Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "Route "admin_toolbar_tools.flush" does not exist." at .../docroot/core/lib/Drupal/Core/Routing/RouteProvider.php line 190
🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States bdanin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024