Exceptions
Exception
ErrorException
in
vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php
->
gc
(line 83)
SessionHandlerProxy->gc()
in
vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php
session_start
(line 156)
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 session
if (!session_start()) {
throw new \RuntimeException('Failed to start the session.');
}
if (null !== $this->emulateSameSite) {
$originalCookie = SessionUtils::popSessionCookie(session_name(), session_id());
in
vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php
->
start
(line 323)
in
vendor/symfony/http-foundation/Session/Session.php
->
getBag
(line 249)
in
vendor/symfony/http-foundation/Session/Session.php
->
getBag
(line 271)
in
vendor/symfony/http-foundation/Session/Session.php
->
getAttributeBag
(line 81)
in
vendor/symfony/security-http/Util/TargetPathTrait.php
->
set
(line 28)
in
vendor/symfony/security-http/Firewall/ExceptionListener.php
->
saveTargetPath
(line 231)
protected function setTargetPath(Request $request)
{
// session isn't required when using HTTP basic authentication mechanism for example
if ($request->hasSession() && $request->isMethodSafe() && !$request->isXmlHttpRequest()) {
$this->saveTargetPath($request->getSession(), $this->providerKey, $request->getUri());
}
}
}
in
vendor/symfony/security-http/Firewall/ExceptionListener.php
->
setTargetPath
(line 204)
if (null !== $this->logger) {
$this->logger->debug('Calling Authentication entry point.');
}
if (!$this->stateless) {
$this->setTargetPath($request);
}
if ($authException instanceof AccountStatusException) {
// remove the security token to prevent infinite redirect loops
$this->tokenStorage->setToken(null);
in
vendor/symfony/security-http/Firewall/ExceptionListener.php
->
startAuthentication
(line 149)
try {
$insufficientAuthenticationException = new InsufficientAuthenticationException('Full authentication is required to access this resource.', 0, $exception);
$insufficientAuthenticationException->setToken($token);
$event->setResponse($this->startAuthentication($event->getRequest(), $insufficientAuthenticationException));
} catch (\Exception $e) {
$event->setThrowable($e);
}
return;
in
vendor/symfony/security-http/Firewall/ExceptionListener.php
->
handleAccessDeniedException
(line 102)
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelException
(line 126)
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 264)
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
doDispatch
(line 239)
* @param object $event The event object to pass to the event handlers/listeners
*/
protected function callListeners(iterable $listeners, string $eventName, $event)
{
if ($event instanceof Event) {
$this->doDispatch($listeners, $eventName, $event);
return;
}
$stoppable = $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 73)
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 168)
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 219)
* @throws \Exception
*/
private function handleThrowable(\Throwable $e, Request $request, int $type): Response
{
$event = new ExceptionEvent($this, $request, $type, $e);
$this->dispatcher->dispatch($event, KernelEvents::EXCEPTION);
// a listener might have replaced the exception
$e = $event->getThrowable();
if (!$event->hasResponse()) {
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleThrowable
(line 91)
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 201)
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:156) at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:323) at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag() (vendor/symfony/http-foundation/Session/Session.php:249) at Symfony\Component\HttpFoundation\Session\Session->getBag() (vendor/symfony/http-foundation/Session/Session.php:271) at Symfony\Component\HttpFoundation\Session\Session->getAttributeBag() (vendor/symfony/http-foundation/Session/Session.php:81) at Symfony\Component\HttpFoundation\Session\Session->set() (vendor/symfony/security-http/Util/TargetPathTrait.php:28) at Symfony\Component\Security\Http\Firewall\ExceptionListener->saveTargetPath() (vendor/symfony/security-http/Firewall/ExceptionListener.php:231) at Symfony\Component\Security\Http\Firewall\ExceptionListener->setTargetPath() (vendor/symfony/security-http/Firewall/ExceptionListener.php:204) at Symfony\Component\Security\Http\Firewall\ExceptionListener->startAuthentication() (vendor/symfony/security-http/Firewall/ExceptionListener.php:149) at Symfony\Component\Security\Http\Firewall\ExceptionListener->handleAccessDeniedException() (vendor/symfony/security-http/Firewall/ExceptionListener.php:102) at Symfony\Component\Security\Http\Firewall\ExceptionListener->onKernelException() (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke() (vendor/symfony/event-dispatcher/EventDispatcher.php:264) at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() (vendor/symfony/event-dispatcher/EventDispatcher.php:239) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (vendor/symfony/event-dispatcher/EventDispatcher.php:73) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (vendor/symfony/http-kernel/HttpKernel.php:219) at Symfony\Component\HttpKernel\HttpKernel->handleThrowable() (vendor/symfony/http-kernel/HttpKernel.php:91) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:25) |