Error 404 Not Found

GET https://imagina.run/.env/

Forwarded to ErrorController (4a329e)

Exceptions

Url not found

Exception

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

Show exception properties
Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#1105
  -statusCode: 404
  -headers: []
}
  1. *
  2. * throw $this->createNotFoundException('Page not found!');
  3. */
  4. protected function createNotFoundException(string $message = 'Not Found', ?\Throwable $previous = null): NotFoundHttpException
  5. {
  6. return new NotFoundHttpException($message, $previous);
  7. }
  8. /**
  9. * Returns an AccessDeniedException.
  10. *
AbstractController->createNotFoundException() in src/Controller/Site/DefaultController.php (line 3001)
  1. #[Route(path: '/{_locale}/', name: 'imagina', defaults: ['_locale' => '%default_locale%'])]
  2. public function index(Request $request, $_locale): Response
  3. {
  4. if($_locale != 'en' && $_locale != 'fr'){
  5. throw $this->createNotFoundException(
  6. 'Url not found'
  7. );
  8. }
  9. $getClientsLandingPage = $this->defaultManager->getClientsWithLandingPage($request->get('_route'), false, $_locale);
  1. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2. $controller = $event->getController();
  3. $arguments = $event->getArguments();
  4. // call controller
  5. $response = $controller(...$arguments);
  6. // view
  7. if (!$response instanceof Response) {
  8. $event = new ViewEvent($this, $request, $type, $response, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
Kernel->handle() in public/index.php (line 20)
  1. Debug::enable();
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request = Request::createFromGlobals();
  5. $response = $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request, $response);

Logs

No log messages

Stack Trace

NotFoundHttpException
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
Url not found

  at vendor/symfony/framework-bundle/Controller/AbstractController.php:331
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->createNotFoundException()
     (src/Controller/Site/DefaultController.php:3001)
  at App\Controller\Site\DefaultController->index()
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:193)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:20)