NotFoundHttpException: No route found for "GET /"

Created on 31 March 2021, over 3 years ago
Updated 23 March 2023, over 1 year ago

I frankly dont know what happened, but one day, my website www.vshiksha.com suddenly started giving error

The website encountered an unexpected error. Please try again later.

I added following line to my settings.php

$config['system.logging']['error_level']='verbose';

Now following error message is being shown:

The website encountered an unexpected error. Please try again later.

Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /" in Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest() (line 136 of vendor\symfony\http-kernel\EventListener\RouterListener.php).
Drupal\Core\Routing\AccessAwareRouter->matchRequest(Object) (Line: 112)
Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest(Object, 'kernel.request', Object)
call_user_func(Array, Object, 'kernel.request', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.request') (Line: 134)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 706)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

This appears to be some unhandeled exception and needs to be fixed.

💬 Support request
Status

Closed: works as designed

Version

9.1

Component
Other 

Last updated 19 minutes ago

Created by

🇮🇳India shuklasp

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 lquessenberry

    I am experiencing the same error. There isn't anything specific about it. It just says the route isn't there. Same as post 1. Drupal 9.4.3 on PHP 7.4

  • 🇷🇺Russia kretch

    It's very likely that the error is related to database access, specifically to the 'router' table.
    I just had an incident with this problem and was able to fix it by fixing table permissions. The database access works fine, but Symfony cannot read its routes from the tables, so it thinks that there is none

Production build 0.71.5 2024