Exceptions
Exception
ErrorException
/**
* {@inheritdoc}
*/
protected function doRead(string $sessionId)
{
return $this->handler->read($sessionId);
}
/**
* @return bool
*/
in
vendor/symfony/http-foundation/Session/Storage/Handler/AbstractSessionHandler.php
->
doRead
(line 99)
return $prefetchData;
}
}
$data = $this->doRead($sessionId);
$this->newSessionId = '' === $data ? $sessionId : null;
return $data;
}
in
vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php
->
read
(line 64)
* @return string|false
*/
#[\ReturnTypeWillChange]
public function read($sessionId)
{
return $this->handler->read($sessionId);
}
/**
* @return bool
*/
SessionHandlerProxy->read()
in
vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php
session_start
(line 185)
// the session ID in the header is invalid, create a new one
session_id(session_create_id());
}
// 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 352)
}
if (!$this->started && $this->saveHandler->isActive()) {
$this->loadSession();
} elseif (!$this->started) {
$this->start();
}
return $this->bags[$name];
}
in
vendor/symfony/http-foundation/Session/Session.php
->
getBag
(line 261)
/**
* {@inheritdoc}
*/
public function getBag(string $name)
{
$bag = $this->storage->getBag($name);
return method_exists($bag, 'getBag') ? $bag->getBag() : $bag;
}
/**
in
vendor/symfony/http-foundation/Session/Session.php
->
getBag
(line 283)
*
* Note that this method was added to help with IDE autocompletion.
*/
private function getAttributeBag(): AttributeBagInterface
{
return $this->getBag($this->attributeName);
}
}
in
vendor/symfony/http-foundation/Session/Session.php
->
getAttributeBag
(line 85)
/**
* {@inheritdoc}
*/
public function set(string $name, $value)
{
$this->getAttributeBag()->set($name, $value);
}
/**
* {@inheritdoc}
*/
in
vendor/symfony/security-http/Util/TargetPathTrait.php
->
set
(line 28)
*
* Usually, you do not need to set this directly.
*/
private function saveTargetPath(SessionInterface $session, string $firewallName, string $uri)
{
$session->set('_security.'.$firewallName.'.target_path', $uri);
}
/**
* Returns the URL (if any) the user visited that forced them to login.
*/
in
vendor/symfony/security-http/Firewall/ExceptionListener.php
->
saveTargetPath
(line 238)
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->firewallName, $request->getUri());
}
}
private function throwUnauthorizedException(AuthenticationException $authException)
{
in
vendor/symfony/security-http/Firewall/ExceptionListener.php
->
setTargetPath
(line 207)
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 152)
$insufficientAuthenticationException = new InsufficientAuthenticationException('Full authentication is required to access this resource.', 0, $exception);
if (null !== $token) {
$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 103)
return;
}
if ($exception instanceof AccessDeniedException) {
$this->handleAccessDeniedException($event, $exception);
return;
}
if ($exception instanceof LazyResponseException) {
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelException
(line 118)
$this->priority = $dispatcher->getListenerPriority($eventName, $this->listener);
$e = $this->stopwatch->start($this->name, 'event_listener');
try {
($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 230)
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 59)
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 154)
try {
$this->beforeDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
$this->dispatcher->dispatch($event, $eventName);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 223)
* @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 86)
$this->finishRequest($request, $type);
throw $e;
}
return $this->handleThrowable($e, $request, $type);
} finally {
$this->requestStack->pop();
}
}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$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)
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
in
vendor/autoload_runtime.php
->
run
(line 35)
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
<?php
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']);
};
Stack Trace
ErrorException
|
---|
ErrorException: Warning: SessionHandler::read(): open(/var/lib/php/mod_php/session/sess_8na4nko94oej1avad4f7d212rv, O_RDWR) failed: No space left on device (28) at vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php:59 at Symfony\Component\HttpFoundation\Session\Storage\Handler\StrictSessionHandler->doRead() (vendor/symfony/http-foundation/Session/Storage/Handler/AbstractSessionHandler.php:99) at Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler->read() (vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php:64) at Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy->read() at session_start() (vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:185) at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:352) at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag() (vendor/symfony/http-foundation/Session/Session.php:261) at Symfony\Component\HttpFoundation\Session\Session->getBag() (vendor/symfony/http-foundation/Session/Session.php:283) at Symfony\Component\HttpFoundation\Session\Session->getAttributeBag() (vendor/symfony/http-foundation/Session/Session.php:85) 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:238) at Symfony\Component\Security\Http\Firewall\ExceptionListener->setTargetPath() (vendor/symfony/security-http/Firewall/ExceptionListener.php:207) at Symfony\Component\Security\Http\Firewall\ExceptionListener->startAuthentication() (vendor/symfony/security-http/Firewall/ExceptionListener.php:152) at Symfony\Component\Security\Http\Firewall\ExceptionListener->handleAccessDeniedException() (vendor/symfony/security-http/Firewall/ExceptionListener.php:103) at Symfony\Component\Security\Http\Firewall\ExceptionListener->onKernelException() (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke() (vendor/symfony/event-dispatcher/EventDispatcher.php:230) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (vendor/symfony/http-kernel/HttpKernel.php:223) at Symfony\Component\HttpKernel\HttpKernel->handleThrowable() (vendor/symfony/http-kernel/HttpKernel.php:86) 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:35) at require_once('/home/projects/pms/vendor/autoload_runtime.php') (public/index.php:5) |