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());
if ((($this->container->getParameter('instance')['object']['type_id'] != '' && $this->container->getParameter('instance')['object']['type_id'] != $object->getType()->getId())) or (($this->container->getParameter('instance')['group']['id'] != '' && ! in_array($this->container->getParameter('instance')['group']['id'], $object->getGroupesIds()))))
return $this->redirect($this->generateUrl('homepage'));
$session = $request->getSession();
$session->getFlashBag()->add('achievement', array(
'title' => 'Amateur',
'description' => 'Voir 1 notice'
));
if (! $this->get('security.authorization_checker')->isGranted('ROLE_USER') && $object->getStatus() != ObjectBibale::STATUS_VALID)
$this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = \call_user_func_array($controller, $arguments);
// view
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $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) {
No log messages
ContextErrorException |
---|
Symfony\Component\Debug\Exception\ContextErrorException: Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) at vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php:101 at Symfony\Component\HttpFoundation\Session\Storage\Handler\StrictSessionHandler->gc(3600) (vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/SessionHandlerProxy.php:83) at Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy->gc(3600) at session_start() (vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php:154) at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php:321) at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('flashes') (vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Session.php:256) at Symfony\Component\HttpFoundation\Session\Session->getBag('flashes') (vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Session.php:268) at Symfony\Component\HttpFoundation\Session\Session->getFlashBag() (src/FrontBundle/Controller/DisplayController.php:250) at FrontBundle\Controller\DisplayController->viewAction(object(Request), object(ObjectBibale), null) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (web/personne.php:29) |