Site crashes after uninstalling module

Created on 13 November 2019, about 5 years ago
Updated 13 February 2024, 10 months ago

After installing Menu Token 8.x-1.0-alpha3 via composer, enabling it in admin panel and subsequent uninstallation (without any changes in settings) site immediately crashes with "unexpected error - try again later".
This occurs under Drupal core 8.7.9.

πŸ› Bug report
Status

Active

Version

9.1

Component

Code

Created by

πŸ‡·πŸ‡ΊRussia _kom__

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

Comments & Activities

Not all content is available!

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

  • πŸ‡ΊπŸ‡ΈUnited States eswiderski

    This module destroyed a bunch of my custom menus. STAY AWAY.

  • The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Symfony\Component\Routing\Exception\RouteNotFoundException</em>: Route &quot;menu_token.available_entities_configuration_form&quot; does not exist. in <em class="placeholder">Drupal\Core\Routing\RouteProvider-&gt;getRouteByName()</em> (line <em class="placeholder">201</em> of <em class="placeholder">core\lib\Drupal\Core\Routing\RouteProvider.php</em>).

    To resolve this error, go to your database and run the SQL query:
    SELECT * FROM menu_tree WHERE route_name="menu_token.available_entities_configuration_form";
    And delete that entry.

    Site should be working fine

  • πŸ‡ΊπŸ‡ΈUnited States rex.barkdoll

    Hi, I'm prepping a site for D10 and ran into this issue trying to uninstall 9.1.0-alpha1 from the site.

    Patch #5 from comment six on https://www.drupal.org/project/menu_token/issues/3047794#comment-13213420 β†’ did NOT work for me.

    I do want to thank gshreeGS for their database modification suggestion in #20 πŸ› Site crashes after uninstalling module Active . I unchecked the entity types on the menu token page and then removed that single entry from the menu tree table and the uninstall went fine.

    I'm not sure if there's anything the developers can do to clean up the install process, that would be massively helpful. I remember this module being a pain in the past.

  • πŸ‡ΈπŸ‡ͺSweden edward.peters

    Thank you gshreeGS and rex.barkdoll. This worked for me.

  • πŸ‡¦πŸ‡ΉAustria paper boy

    The solution in #20 is working well for me on Drupal 9.5.11 when performing the following steps:

    Uncheck all options from Menu Token config at /admin/config/menu_token

    Disable the module:

    drush -y pmu menu_token
    

    Remove the dead route:

    drush sql:query "DELETE from menu_tree WHERE route_name = 'menu_token.available_entities_configuration_form'"
    

    Rebuild cache:

    drush cr
    
Production build 0.71.5 2024