Exceptions
Exception
Symfony\Component\Form\Exception\ InvalidArgumentException
in
vendor/symfony/form/FormRegistry.php
(line 72)
}if (!$type) {// Support fully-qualified class namesif (!class_exists($name)) {throw new InvalidArgumentException(\sprintf('Could not load type "%s": class does not exist.', $name));}if (!is_subclass_of($name, FormTypeInterface::class)) {throw new InvalidArgumentException(\sprintf('Could not load type "%s": class does not implement "Symfony\Component\Form\FormTypeInterface".', $name));}
in
vendor/symfony/form/FormFactory.php
->
getType
(line 53)
/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowBuilderInterface : FormBuilderInterface)*/public function createBuilder(string $type = FormType::class, mixed $data = null, array $options = []): FormBuilderInterface{return $this->createNamedBuilder($this->registry->getType($type)->getBlockPrefix(), $type, $data, $options);}/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowBuilderInterface : FormBuilderInterface)*/
in
vendor/symfony/form/FormFactory.php
->
createBuilder
(line 32)
/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/public function create(string $type = FormType::class, mixed $data = null, array $options = []): FormInterface{return $this->createBuilder($type, $data, $options)->getForm();}/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
create
(line 354)
** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/protected function createForm(string $type, mixed $data = null, array $options = []): FormInterface{return $this->container->get('form.factory')->create($type, $data, $options);}/*** Creates and returns a form builder instance.*/
$string = (string)$int;$md5 = md5($string);$unconfirmedUser->setConfirmationToken($md5);$unconfirmedUser->setIpAddress($request->getClientIp());$form = $this->createForm(UnconfirmedUserType::class, $unconfirmedUser);$form->handleRequest($request);if ($form->isSubmitted() && $form->isValid()) {$email = $unconfirmedUser->getEmail();$normalizedEmail = EmailNormalizer::normalize($email);
in
vendor/symfony/http-kernel/HttpKernel.php
->
create
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 191)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
require_once('/var/www/vhosts/1007/domains/n46.net/rent/vendor/autoload_runtime.php')
in
public_html/index.php
(line 5)
<?php declare(strict_types=1);use App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 18:30:23 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "f51e62"
},
"request_uri": "https://rent.n46.net/_profiler/f51e62?panel=exception&type=request",
"method": "GET"
}
|
Stack Trace
|
InvalidArgumentException
|
|---|
Symfony\Component\Form\Exception\InvalidArgumentException:
Could not load type "App\Form\UnconfirmedUserType": class does not exist.
at vendor/symfony/form/FormRegistry.php:72
at Symfony\Component\Form\FormRegistry->getType()
(vendor/symfony/form/FormFactory.php:53)
at Symfony\Component\Form\FormFactory->createBuilder()
(vendor/symfony/form/FormFactory.php:32)
at Symfony\Component\Form\FormFactory->create()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:354)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->createForm()
(src/Controller/UnconfirmedUserController.php:60)
at App\Controller\UnconfirmedUserController->create()
(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: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/rent/vendor/autoload_runtime.php')
(public_html/index.php:5)
|