https://app.istammergh.org/success?username=Y64EIEOE

Exceptions

Invalid Request! Something went wrong and could not process your request

Exception

Doctrine\Common\Cache\Psr6\ InvalidArgument

  1.     private function getUserByUsername(string $username): UserInterface
  2.     {
  3.         $user $this->userRepository->findOneBy(['username'=>$username]);
  4.         if (!$user) {
  5.             throw new InvalidArgument('Invalid Request! Something went wrong and could not process your request');
  6.         }
  7.         return $user;        
  8.     }
  9.     private function getUserEntity(array $data)
RegisterController->getUserByUsername() in src/Controller/RegisterController.php (line 79)
  1.     {
  2.         $username $request->get('username');
  3.         if(!$username){
  4.             throw new AppException(400'Invalid Request! The resource you are accessing is invalid');
  5.         }
  6.         $user $this->getUserByUsername($username);
  7.         //dump($user);
  8.         return $this->render('app/register_success.html.twig',[
  9.             'email' =>  $user->getEmail(),
  10.             'pageTitle' => "Thank you for registring"
  11.         ]);
  1.         $this->dispatcher->dispatch($eventKernelEvents::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);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  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.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/vhosts/istammergh.org/consoleFiles/vendor/autoload_runtime.php') in /var/www/vhosts/istammergh.org/app.istammergh.org/index.php (line 6)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/consoleFiles/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Stack Trace

InvalidArgument
Doctrine\Common\Cache\Psr6\InvalidArgument:
Invalid Request! Something went wrong and could not process your request

  at src/Controller/RegisterController.php:157
  at App\Controller\RegisterController->getUserByUsername()
     (src/Controller/RegisterController.php:79)
  at App\Controller\RegisterController->success()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  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('/var/www/vhosts/istammergh.org/consoleFiles/vendor/autoload_runtime.php')
     (/var/www/vhosts/istammergh.org/app.istammergh.org/index.php:6)