Error 500 Internal Server Error

GET https://imobiliare.n46.net/ro/account-recovery/forgot-password

Forwarded to ErrorController (690185)

Exceptions

Controller "App\Controller\User\UserAccountRecoveryController::sendRecoveryCode" requires the "$recaptcha" argument that could not be resolved. Cannot resolve argument $recaptcha of "App\Controller\User\UserAccountRecoveryController::sendRecoveryCode()": Cannot determine controller argument for "App\Controller\User\UserAccountRecoveryController::sendRecoveryCode()": the $recaptcha argument is type-hinted with the non-existent class or interface: "ReCaptcha\ReCaptcha".

Exception

RuntimeException

  1. $reasons[$i] = $reasonCounter.') '.$reason;
  2. ++$reasonCounter;
  3. }
  4. }
  5. throw new \RuntimeException(\sprintf('Controller "%s" requires the "$%s" argument that could not be resolved. '.($reasonCounter > 1 ? 'Possible reasons: ' : '').'%s', $metadata->getControllerName(), $metadata->getName(), implode(' ', $reasons)));
  6. }
  7. return $arguments;
  8. }
  1. public function getArguments(Request $request, callable $controller, ?\ReflectionFunctionAbstract $reflector = null): array
  2. {
  3. $e = $this->stopwatch->start('controller.get_arguments');
  4. try {
  5. return $this->resolver->getArguments($request, $controller, $reflector);
  6. } finally {
  7. $e->stop();
  8. }
  9. }
  10. }
in vendor/symfony/http-kernel/HttpKernel.php -> getArguments (line 175)
  1. $event = new ControllerEvent($this, $controller, $request, $type);
  2. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);
  3. $controller = $event->getController();
  4. // controller arguments
  5. $arguments = $this->argumentResolver->getArguments($request, $controller, $event->getControllerReflector());
  6. $event = new ControllerArgumentsEvent($this, $event, $arguments, $request, $type);
  7. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  8. $controller = $event->getController();
  9. $arguments = $event->getArguments();
  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/vhosts/1007/domains/n46.net/imobiliare/vendor/autoload_runtime.php') in public_html/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 19:36:33 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "ca7402"
    },
    "request_uri": "https://imobiliare.n46.net/_profiler/ca7402",
    "method": "GET"
}

Stack Trace

RuntimeException
RuntimeException:
Controller "App\Controller\User\UserAccountRecoveryController::sendRecoveryCode" requires the "$recaptcha" argument that could not be resolved. Cannot resolve argument $recaptcha of "App\Controller\User\UserAccountRecoveryController::sendRecoveryCode()": Cannot determine controller argument for "App\Controller\User\UserAccountRecoveryController::sendRecoveryCode()": the $recaptcha argument is type-hinted with the non-existent class or interface: "ReCaptcha\ReCaptcha".

  at vendor/symfony/http-kernel/Controller/ArgumentResolver.php:122
  at Symfony\Component\HttpKernel\Controller\ArgumentResolver->getArguments()
     (vendor/symfony/http-kernel/Controller/TraceableArgumentResolver.php:33)
  at Symfony\Component\HttpKernel\Controller\TraceableArgumentResolver->getArguments()
     (vendor/symfony/http-kernel/HttpKernel.php:175)
  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:191)
  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/vhosts/1007/domains/n46.net/imobiliare/vendor/autoload_runtime.php')
     (public_html/index.php:5)