RouteNotFoundException after install / enable

Created on 1 March 2016, almost 9 years ago
Updated 9 March 2016, almost 9 years ago

As soon as I enable module, this error appears in log

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

πŸ› Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Slurpee

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.

  • πŸ‡·πŸ‡ΊRussia andrewlab

    The same error after upgrade to drupal 10. Problem has gone after addding access check to faq_uninstall() and reinstalling the module.

    function faq_uninstall(){
      $info = NodeType::load('faq');
      if ($info) {
        $info->delete();
        field_purge_batch(500);
        $nids = \Drupal::entityQuery('node')
          ->accessCheck(false)
          ->condition('type', 'faq')
          ->execute();
        foreach ($nids as $nid) {
          $faqNode = Node::load($nid);
          $faqNode->delete();
        }
      }
    }
    
    
Production build 0.71.5 2024