Error 404 Not Found

GET https://schulung.foss.academy/mapbender/index.php/user/password

Exceptions

Sender mail not configured. See UserBundle/CONFIGURATION.md (this message is only display in debug mode)

Exception

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

Show exception properties
Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#580
  -statusCode: 404
  -headers: []
}
  1.      */
  2.     protected function debug404($message)
  3.     {
  4.         if ($this->isDebug && $message) {
  5.             $message $message ' (this message is only display in debug mode)';
  6.             throw new NotFoundHttpException($message);
  7.         } else {
  8.             throw new NotFoundHttpException();
  9.         }
  10.     }
AbstractEmailProcessController->debug404() in mapbender/src/FOM/UserBundle/Controller/AbstractEmailProcessController.php (line 32)
  1.                                 protected $isDebug)
  2.     {
  3.         parent::__construct($userEntityClass$doctrine);
  4.         $this->emailFromName $emailFromName ?: $emailFromAddress;
  5.         if (!$this->emailFromAddress) {
  6.             $this->debug404("Sender mail not configured. See UserBundle/CONFIGURATION.md");
  7.         }
  8.     }
  9.     /**
  10.      * Throws a 404, displaying the given $message only in debug mode
AbstractEmailProcessController->__construct() in mapbender/src/FOM/UserBundle/Controller/PasswordController.php (line 55)
  1.                                 $emailFromAddress,
  2.                                 $enableReset,
  3.                                 $maxTokenAge,
  4.                                 $isDebug)
  5.     {
  6.         parent::__construct($mailer$translator$doctrine$userEntityClass$emailFromName$emailFromAddress$isDebug);
  7.         $this->enableReset $enableReset;
  8.         $this->maxTokenAge $maxTokenAge;
  9.         if (!$this->enableReset) {
  10.             $this->debug404("Password reset disabled by configuration");
  11.         }
  1.     {
  2.         include_once \dirname(__DIR__4).'/mapbender/src/FOM/UserBundle/Controller/UserControllerBase.php';
  3.         include_once \dirname(__DIR__4).'/mapbender/src/FOM/UserBundle/Controller/AbstractEmailProcessController.php';
  4.         include_once \dirname(__DIR__4).'/mapbender/src/FOM/UserBundle/Controller/PasswordController.php';
  5.         $container->services['FOM\\UserBundle\\Controller\\PasswordController'] = $instance = new \FOM\UserBundle\Controller\PasswordController(($container->privates['mailer.mailer'] ?? self::getMailer_MailerService($container)), ($container->services['translator'] ?? self::getTranslatorService($container)), ($container->services['doctrine'] ?? self::getDoctrineService($container)), ($container->privates['monolog.logger'] ?? self::getMonolog_LoggerService($container)), 'FOM\\UserBundle\\Entity\\User'NULLNULLtrue1true);
  6.         $instance->setContainer(($container->privates['.service_locator.O2p6Lk7'] ?? self::get_ServiceLocator_O2p6Lk7Service($container))->withContext('FOM\\UserBundle\\Controller\\PasswordController'$container));
  7.         return $instance;
  8.     }
in vendor/symfony/dependency-injection/Container.php :: getPasswordControllerService (line 231)
  1.         try {
  2.             if (isset($container->fileMap[$id])) {
  3.                 return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ === $invalidBehavior null $container->load($container->fileMap[$id]);
  4.             } elseif (isset($container->methodMap[$id])) {
  5.                 return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ === $invalidBehavior null $container->{$container->methodMap[$id]}($container);
  6.             }
  7.         } catch (\Exception $e) {
  8.             unset($container->services[$id]);
  9.             throw $e;
  1.      */
  2.     public function get(string $idint $invalidBehavior self::EXCEPTION_ON_INVALID_REFERENCE): ?object
  3.     {
  4.         return $this->services[$id]
  5.             ?? $this->services[$id $this->aliases[$id] ?? $id]
  6.             ?? ('service_container' === $id $this : ($this->factories[$id] ?? self::$make ??= self::make(...))($this$id$invalidBehavior));
  7.     }
  8.     /**
  9.      * Creates a service.
  10.      *
  1.     protected function instantiateController(string $class): object
  2.     {
  3.         $class ltrim($class'\\');
  4.         if ($this->container->has($class)) {
  5.             return $this->container->get($class);
  6.         }
  7.         try {
  8.             return parent::instantiateController($class);
  9.         } catch (\Error $e) {
  1.  */
  2. class ControllerResolver extends ContainerControllerResolver
  3. {
  4.     protected function instantiateController(string $class): object
  5.     {
  6.         $controller parent::instantiateController($class);
  7.         if ($controller instanceof ContainerAwareInterface) {
  8.             trigger_deprecation('symfony/dependency-injection''6.4''Relying on "%s" to get the container in "%s" is deprecated, register the controller as a service and use dependency injection instead.'ContainerAwareInterface::class, get_debug_type($controller));
  9.             $controller->setContainer($this->container);
  10.         }
  1.         }
  2.         [$class$method] = explode('::'$controller2);
  3.         try {
  4.             $controller = [$this->instantiateController($class), $method];
  5.         } catch (\Error|\LogicException $e) {
  6.             try {
  7.                 if ((new \ReflectionMethod($class$method))->isStatic()) {
  8.                     return $class.'::'.$method;
  9.                 }
  1.         if (\function_exists($controller)) {
  2.             return $this->checkController($request$controller);
  3.         }
  4.         try {
  5.             $callable $this->createController($controller);
  6.         } catch (\InvalidArgumentException $e) {
  7.             throw new \InvalidArgumentException(\sprintf('The controller for URI "%s" is not callable: '$request->getPathInfo()).$e->getMessage(), 0$e);
  8.         }
  9.         if (!\is_callable($callable)) {
in vendor/symfony/http-kernel/HttpKernel.php -> getController (line 164)
  1.         if ($event->hasResponse()) {
  2.             return $this->filterResponse($event->getResponse(), $request$type);
  3.         }
  4.         // load controller
  5.         if (false === $controller $this->resolver->getController($request)) {
  6.             throw new NotFoundHttpException(\sprintf('Unable to find the controller for path "%s". The route is wrongly configured.'$request->getPathInfo()));
  7.         }
  8.         $event = new ControllerEvent($this$controller$request$type);
  9.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER);
  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.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/data/mapbender/application/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs

Level Channel Message
INFO 07:03:38 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "35f4d4"
    },
    "request_uri": "https://schulung.foss.academy/mapbender/_profiler/35f4d4",
    "method": "GET"
}

Stack Trace

NotFoundHttpException
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
Sender mail not configured. See UserBundle/CONFIGURATION.md (this message is only display in debug mode)

  at mapbender/src/FOM/UserBundle/Controller/AbstractEmailProcessController.php:46
  at FOM\UserBundle\Controller\AbstractEmailProcessController->debug404()
     (mapbender/src/FOM/UserBundle/Controller/AbstractEmailProcessController.php:32)
  at FOM\UserBundle\Controller\AbstractEmailProcessController->__construct()
     (mapbender/src/FOM/UserBundle/Controller/PasswordController.php:55)
  at FOM\UserBundle\Controller\PasswordController->__construct()
     (var/cache/dev/ContainerUFD9mKG/App_KernelDevDebugContainer.php:807)
  at ContainerUFD9mKG\App_KernelDevDebugContainer::getPasswordControllerService()
     (vendor/symfony/dependency-injection/Container.php:231)
  at Symfony\Component\DependencyInjection\Container::make()
     (vendor/symfony/dependency-injection/Container.php:211)
  at Symfony\Component\DependencyInjection\Container->get()
     (vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php:40)
  at Symfony\Component\HttpKernel\Controller\ContainerControllerResolver->instantiateController()
     (vendor/symfony/framework-bundle/Controller/ControllerResolver.php:26)
  at Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver->instantiateController()
     (vendor/symfony/http-kernel/Controller/ControllerResolver.php:128)
  at Symfony\Component\HttpKernel\Controller\ControllerResolver->createController()
     (vendor/symfony/http-kernel/Controller/ControllerResolver.php:96)
  at Symfony\Component\HttpKernel\Controller\ControllerResolver->getController()
     (vendor/symfony/http-kernel/HttpKernel.php:164)
  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:197)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/data/mapbender/application/vendor/autoload_runtime.php')
     (public/index.php:5)