Exceptions
Exception
ErrorException
SessionHandlerProxy->gc()
if (filter_var(ini_get('session.use_cookies'), FILTER_VALIDATE_BOOLEAN) && headers_sent($file, $line)) {throw new \RuntimeException(sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.', $file, $line));}// ok to try and start the sessionif (!session_start()) {throw new \RuntimeException('Failed to start the session');}if (null !== $this->emulateSameSite) {$originalCookie = SessionUtils::popSessionCookie(session_name(), session_id());
$session = $request->getSession();$authenticationException = null;if ($request->attributes->has(Security::AUTHENTICATION_ERROR)) {$authenticationException = $request->attributes->get(Security::AUTHENTICATION_ERROR);} elseif (null !== $session && $session->has(Security::AUTHENTICATION_ERROR)) {$authenticationException = $session->get(Security::AUTHENTICATION_ERROR);if ($clearSession) {$session->remove(Security::AUTHENTICATION_ERROR);}
// if ($this->getUser()) {// return $this->redirectToRoute('target_path');// }// get the login error if there is one$error = $authenticationUtils->getLastAuthenticationError();// last username entered by the user$lastUsername = $authenticationUtils->getLastUsername();return $this->render('security/login.html.twig', ['last_username' => $lastUsername, 'error' => $error]);}
$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);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true){$request->headers->set('X-Php-Ob-Level', ob_get_level());try {return $this->handleRaw($request, $type);} catch (\Exception $e) {if ($e instanceof RequestExceptionInterface) {$e = new BadRequestHttpException($e->getMessage(), $e);}if (false === $catch) {
Stack Trace
ErrorException |
|---|
ErrorException:
Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13)
at vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php:101
at Symfony\Component\HttpFoundation\Session\Storage\Handler\StrictSessionHandler->gc()
(vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php:83)
at Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy->gc()
at session_start()
(vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:153)
at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
(vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:322)
at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag()
(vendor/symfony/http-foundation/Session/Session.php:256)
at Symfony\Component\HttpFoundation\Session\Session->getBag()
(vendor/symfony/http-foundation/Session/Session.php:280)
at Symfony\Component\HttpFoundation\Session\Session->getAttributeBag()
(vendor/symfony/http-foundation/Session/Session.php:65)
at Symfony\Component\HttpFoundation\Session\Session->has()
(vendor/symfony/security-http/Authentication/AuthenticationUtils.php:46)
at Symfony\Component\Security\Http\Authentication\AuthenticationUtils->getLastAuthenticationError()
(src/Controller/LoginController.php:22)
at App\Controller\LoginController->login()
(vendor/symfony/http-kernel/HttpKernel.php:151)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:68)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:198)
at Symfony\Component\HttpKernel\Kernel->handle()
(public/index.php:25)
|