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)
}
public function onKernelRequest(RequestEvent $event)
{
$idiomas=array('es', 'us', 'de', 'fr', 'it', 'ru', 'nl');
$this->sesssion->set('idiomas',$idiomas);
if($idiom=$event->getRequest()->get('idioma')){
$this->sesssion->set('idiom',($idiom=='us')?'en':$idiom);
}elseif(!$this->sesssion->get('idiom')){
$this->sesssion->set('idiom','es');
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelRequest
(line 117)
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 230)
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 59)
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 151)
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 133)
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 79)
public function handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) 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) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 191)
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() (src/EventSubscriber/ListenerSuscriberSubscriber.php:24) at App\EventSubscriber\ListenerSuscriberSubscriber->onKernelRequest() (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:117) 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:151) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (vendor/symfony/http-kernel/HttpKernel.php:133) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:79) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:191) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:25) |