Error 500 Internal Server Error

GET https://app.connect-driver-solutions.fr/forgot-password

Forwarded to ErrorController (25bc3b)

Exceptions

The controller for URI "/forgot-password" is not callable: Environment variable not found: "MAILER_FROM".

Exceptions 2

InvalidArgumentException

  1. }
  2. try {
  3. $callable = $this->createController($controller);
  4. } catch (\InvalidArgumentException $e) {
  5. throw new \InvalidArgumentException(\sprintf('The controller for URI "%s" is not callable: ', $request->getPathInfo()).$e->getMessage(), 0, $e);
  6. }
  7. if (!\is_callable($callable)) {
  8. throw new \InvalidArgumentException(\sprintf('The controller for URI "%s" is not callable: ', $request->getPathInfo()).$this->getControllerError($callable));
  9. }
  1. public function getController(Request $request): callable|false
  2. {
  3. $e = $this->stopwatch->start('controller.get_callable');
  4. try {
  5. return $this->resolver->getController($request);
  6. } finally {
  7. $e->stop();
  8. }
  9. }
  10. }
in vendor/symfony/http-kernel/HttpKernel.php -> getController (line 166)
  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($event, KernelEvents::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. 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. }
  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 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/www/app.connect-driver-solutions.fr/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. };

Symfony\Component\DependencyInjection\Exception\ EnvNotFoundException

Environment variable not found: "MAILER_FROM".

  1. }
  2. }
  3. if (false === $env) {
  4. if (!$this->container->hasParameter("env($name)")) {
  5. throw new EnvNotFoundException(\sprintf('Environment variable not found: "%s".', $name));
  6. }
  7. $env = $this->container->getParameter("env($name)");
  8. }
  9. }
  1. $prefix = '';
  2. }
  3. $this->resolving[$envName] = true;
  4. try {
  5. return $this->envCache[$name] = $processor->getEnv($prefix, $localName, $this->getEnv);
  6. } finally {
  7. unset($this->resolving[$envName]);
  8. }
  9. }
  1. {
  2. include_once \dirname(__DIR__, 4).'/src/Service/DriverPasswordResetService.php';
  3. include_once \dirname(__DIR__, 4).'/vendor/symfony/mailer/MailerInterface.php';
  4. include_once \dirname(__DIR__, 4).'/vendor/symfony/mailer/Mailer.php';
  5. return $container->privates['App\\Service\\DriverPasswordResetService'] = new \App\Service\DriverPasswordResetService(($container->services['doctrine.orm.default_entity_manager'] ?? self::getDoctrine_Orm_DefaultEntityManagerService($container)), ($container->privates['App\\Repository\\DriversRepository'] ?? $container->load('getDriversRepositoryService')), ($container->privates['App\\Repository\\DriverOnboardingTokenRepository'] ?? $container->load('getDriverOnboardingTokenRepositoryService')), new \Symfony\Component\Mailer\Mailer(($container->privates['mailer.transports'] ?? $container->load('getMailer_TransportsService')), ($container->services['messenger.default_bus'] ?? self::getMessenger_DefaultBusService($container)), ($container->services['event_dispatcher'] ?? self::getEventDispatcherService($container))), ($container->privates['twig'] ?? self::getTwigService($container)), ($container->services['router'] ?? self::getRouterService($container)), ($container->privates['monolog.logger'] ?? $container->load('getMonolog_LoggerService')), ($container->services['translator'] ?? self::getTranslatorService($container)), ($container->privates['App\\Service\\DriverMobileAccessPolicy'] ?? self::getDriverMobileAccessPolicyService($container)), $container->getEnv('MAILER_FROM'));
  6. }
  7. }
  1. $file .= '.php';
  2. }
  3. $service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
  4. return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;
  5. }
  6. protected function createProxy($class, \Closure $factory)
  7. {
  8. class_exists($class, false) || require __DIR__.'/'.$class.'.php';
  1. public static function do($container, $lazyLoad = true)
  2. {
  3. include_once \dirname(__DIR__, 4).'/vendor/symfony/framework-bundle/Controller/AbstractController.php';
  4. include_once \dirname(__DIR__, 4).'/src/Controller/Web/PasswordResetController.php';
  5. $container->services['App\\Controller\\Web\\PasswordResetController'] = $instance = new \App\Controller\Web\PasswordResetController(($container->privates['App\\Service\\DriverPasswordResetService'] ?? $container->load('getDriverPasswordResetServiceService')), ($container->services['translator'] ?? self::getTranslatorService($container)));
  6. $instance->setContainer(($container->privates['.service_locator.ceLGQRI'] ?? $container->load('get_ServiceLocator_CeLGQRIService'))->withContext('App\\Controller\\Web\\PasswordResetController', $container));
  7. return $instance;
  8. }
  1. $file .= '.php';
  2. }
  3. $service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
  4. return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;
  5. }
  6. protected function createProxy($class, \Closure $factory)
  7. {
  8. class_exists($class, false) || require __DIR__.'/'.$class.'.php';
  1. $container->loading[$id] = true;
  2. try {
  3. if (isset($container->fileMap[$id])) {
  4. return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ 4 === $invalidBehavior ? null : $container->load($container->fileMap[$id]);
  5. } elseif (isset($container->methodMap[$id])) {
  6. return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ 4 === $invalidBehavior ? null : $container->{$container->methodMap[$id]}($container);
  7. }
  8. } catch (\Exception $e) {
  9. unset($container->services[$id]);
  1. */
  2. public function get(string $id, int $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 AbstractController) {
  8. if (null === $previousContainer = $controller->setContainer($this->container)) {
  9. throw new \LogicException(\sprintf('"%s" has no container set, did you forget to define it as a service subscriber?', $class));
  10. }
  1. }
  2. [$class, $method] = explode('::', $controller, 2);
  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)) {
  1. public function getController(Request $request): callable|false
  2. {
  3. $e = $this->stopwatch->start('controller.get_callable');
  4. try {
  5. return $this->resolver->getController($request);
  6. } finally {
  7. $e->stop();
  8. }
  9. }
  10. }
in vendor/symfony/http-kernel/HttpKernel.php -> getController (line 166)
  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($event, KernelEvents::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. 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. }
  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 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/www/app.connect-driver-solutions.fr/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 18:32:10 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "ade528"
    },
    "request_uri": "https://app.connect-driver-solutions.fr/_profiler/ade528",
    "method": "GET"
}

Stack Traces 2

[2/2] InvalidArgumentException
InvalidArgumentException:
The controller for URI "/forgot-password" is not callable: Environment variable not found: "MAILER_FROM".

  at vendor/symfony/http-kernel/Controller/ControllerResolver.php:97
  at Symfony\Component\HttpKernel\Controller\ControllerResolver->getController()
     (vendor/symfony/http-kernel/Controller/TraceableControllerResolver.php:33)
  at Symfony\Component\HttpKernel\Controller\TraceableControllerResolver->getController()
     (vendor/symfony/http-kernel/HttpKernel.php:166)
  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()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/var/www/app.connect-driver-solutions.fr/vendor/autoload_runtime.php')
     (public/index.php:5)                
[1/2] EnvNotFoundException
Symfony\Component\DependencyInjection\Exception\EnvNotFoundException:
Environment variable not found: "MAILER_FROM".

  at vendor/symfony/dependency-injection/EnvVarProcessor.php:221
  at Symfony\Component\DependencyInjection\EnvVarProcessor->getEnv()
     (vendor/symfony/dependency-injection/Container.php:378)
  at Symfony\Component\DependencyInjection\Container->getEnv()
     (var/cache/dev/ContainerIVe49Jg/getDriverPasswordResetServiceService.php:25)
  at ContainerIVe49Jg\getDriverPasswordResetServiceService::do()
     (var/cache/dev/ContainerIVe49Jg/App_KernelDevDebugContainer.php:587)
  at ContainerIVe49Jg\App_KernelDevDebugContainer->load()
     (var/cache/dev/ContainerIVe49Jg/getPasswordResetControllerService.php:24)
  at ContainerIVe49Jg\getPasswordResetControllerService::do()
     (var/cache/dev/ContainerIVe49Jg/App_KernelDevDebugContainer.php:587)
  at ContainerIVe49Jg\App_KernelDevDebugContainer->load()
     (vendor/symfony/dependency-injection/Container.php:221)
  at Symfony\Component\DependencyInjection\Container::make()
     (vendor/symfony/dependency-injection/Container.php:203)
  at Symfony\Component\DependencyInjection\Container->get()
     (vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php:38)
  at Symfony\Component\HttpKernel\Controller\ContainerControllerResolver->instantiateController()
     (vendor/symfony/framework-bundle/Controller/ControllerResolver.php:25)
  at Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver->instantiateController()
     (vendor/symfony/http-kernel/Controller/ControllerResolver.php:127)
  at Symfony\Component\HttpKernel\Controller\ControllerResolver->createController()
     (vendor/symfony/http-kernel/Controller/ControllerResolver.php:95)
  at Symfony\Component\HttpKernel\Controller\ControllerResolver->getController()
     (vendor/symfony/http-kernel/Controller/TraceableControllerResolver.php:33)
  at Symfony\Component\HttpKernel\Controller\TraceableControllerResolver->getController()
     (vendor/symfony/http-kernel/HttpKernel.php:166)
  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()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/var/www/app.connect-driver-solutions.fr/vendor/autoload_runtime.php')
     (public/index.php:5)