https://preprod.happycandy.fr/_profiler/7b605f

Exceptions

Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13)

Exception

ErrorException

  1.      * @return int|false
  2.      */
  3.     #[\ReturnTypeWillChange]
  4.     public function gc($maxlifetime)
  5.     {
  6.         return $this->handler->gc($maxlifetime);
  7.     }
  8. }
  1.      * @return int|false
  2.      */
  3.     #[\ReturnTypeWillChange]
  4.     public function gc($maxlifetime)
  5.     {
  6.         return $this->handler->gc($maxlifetime);
  7.     }
  8.     /**
  9.      * @return bool
  10.      */
SessionHandlerProxy->gc()
  1.             // the session ID in the header is invalid, create a new one
  2.             session_id(session_create_id());
  3.         }
  4.         // ok to try and start the session
  5.         if (!session_start()) {
  6.             throw new \RuntimeException('Failed to start the session.');
  7.         }
  8.         if (null !== $this->emulateSameSite) {
  9.             $originalCookie SessionUtils::popSessionCookie(session_name(), session_id());
  1.         }
  2.         if (!$this->started && $this->saveHandler->isActive()) {
  3.             $this->loadSession();
  4.         } elseif (!$this->started) {
  5.             $this->start();
  6.         }
  7.         return $this->bags[$name];
  8.     }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getBag(string $name)
  5.     {
  6.         $bag $this->storage->getBag($name);
  7.         return method_exists($bag'getBag') ? $bag->getBag() : $bag;
  8.     }
  9.     /**
  1.      *
  2.      * @return FlashBagInterface
  3.      */
  4.     public function getFlashBag()
  5.     {
  6.         return $this->getBag($this->flashName);
  7.     }
  8.     /**
  9.      * Gets the attributebag interface.
  10.      *
  1.      */
  2.     public static function do($container$lazyLoad true)
  3.     {
  4.         trigger_deprecation('symfony/framework-bundle''5.1''The "session.flash_bag" service is deprecated, use "$session->getFlashBag()" instead.');
  5.         return $container->privates['session.flash_bag'] = ($container->services['.container.private.session'] ?? $container->get_Container_Private_SessionService())->getFlashBag();
  6.     }
  7. }
  1.             $file .= '.php';
  2.         }
  3.         $service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
  4.         return class_exists($classfalse) ? $class::do($this$lazyLoad) : $service;
  5.     }
  6.     protected function createProxy($class\Closure $factory)
  7.     {
  8.         class_exists($classfalse) || require __DIR__.'/'.$class.'.php';
  1.      *
  2.      * @return \App\EventListener\GtmRouteListener
  3.      */
  4.     protected function getGtmRouteListenerService()
  5.     {
  6.         return $this->privates['App\\EventListener\\GtmRouteListener'] = new \App\EventListener\GtmRouteListener(($this->services['Sylius\\Component\\Channel\\Context\\ChannelContextInterface'] ?? $this->getChannelContextInterfaceService()), ($this->services['Sylius\\Component\\Locale\\Context\\LocaleContextInterface'] ?? $this->getLocaleContextInterfaceService()), ($this->services['google_tag_manager'] ?? $this->getGoogleTagManagerService()), ($this->services['bitbag_sylius_cms_plugin.repository.page'] ?? $this->getBitbagSyliusCmsPlugin_Repository_PageService()), ($this->services['sylius.repository.taxon'] ?? $this->getSylius_Repository_TaxonService()), ($this->services['sylius.repository.product'] ?? $this->getSylius_Repository_ProductService()), ($this->privates['session.flash_bag'] ?? $this->load('getSession_FlashBagService')), ($this->services['.container.private.security.authorization_checker'] ?? $this->get_Container_Private_Security_AuthorizationCheckerService()), ($this->services['request_stack'] ?? ($this->services['request_stack'] = new \Symfony\Component\HttpFoundation\RequestStack())));
  7.     }
  8.     /**
  9.      * Gets the private 'App\Provider\ShippingDateProvider' shared autowired service.
  10.      *
in var/cache/dev/ContainerSbZhA9x/App_KernelDevDebugContainer.php -> getGtmRouteListenerService (line 4419)
  1.         }, => 'preCreate'], 0);
  2.         $instance->addListener('sylius.channel.pre_update', [=> function () {
  3.             return ($this->privates['App\\EventListener\\ChannelListener'] ?? $this->load('getChannelListenerService'));
  4.         }, => 'preUpdate'], 0);
  5.         $instance->addListener('kernel.request', [=> function () {
  6.             return ($this->privates['App\\EventListener\\GtmRouteListener'] ?? $this->getGtmRouteListenerService());
  7.         }, => 'onKernelRequest'], 0);
  8.         $instance->addListener('sylius.user.password_reset.request.pin', [=> function () {
  9.             return ($this->privates['App\\EventListener\\MailerListener'] ?? $this->load('getMailerListenerService'));
  10.         }, => 'sendResetPasswordPinEmail'], 0);
  11.         $instance->addListener('sylius.user.password_reset.request.token', [=> function () {
in vendor/symfony/event-dispatcher/EventDispatcher.php -> ContainerSbZhA9x\{closure} (line 245)
  1.         $this->sorted[$eventName] = [];
  2.         foreach ($this->listeners[$eventName] as &$listeners) {
  3.             foreach ($listeners as $k => &$listener) {
  4.                 if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure && >= \count($listener)) {
  5.                     $listener[0] = $listener[0]();
  6.                     $listener[1] = $listener[1] ?? '__invoke';
  7.                 }
  8.                 $this->sorted[$eventName][] = $listener;
  9.             }
  10.         }
  1.             if (empty($this->listeners[$eventName])) {
  2.                 return [];
  3.             }
  4.             if (!isset($this->sorted[$eventName])) {
  5.                 $this->sortListeners($eventName);
  6.             }
  7.             return $this->sorted[$eventName];
  8.         }
  1.             $this->orphanedEvents[$this->currentRequestHash][] = $eventName;
  2.             return;
  3.         }
  4.         foreach ($this->dispatcher->getListeners($eventName) as $listener) {
  5.             $priority $this->getListenerPriority($eventName$listener);
  6.             $wrappedListener = new WrappedListener($listener instanceof WrappedListener $listener->getWrappedListener() : $listenernull$this->stopwatch$this);
  7.             $this->wrappedListeners[$eventName][] = $wrappedListener;
  8.             $this->dispatcher->removeListener($eventName$listener);
  9.             $this->dispatcher->addListener($eventName$wrappedListener$priority);
  1.         if (null !== $this->logger && $event instanceof StoppableEventInterface && $event->isPropagationStopped()) {
  2.             $this->logger->debug(sprintf('The "%s" event is already stopped. No listeners have been called.'$eventName));
  3.         }
  4.         $this->preProcess($eventName);
  5.         try {
  6.             $this->beforeDispatch($eventName$event);
  7.             try {
  8.                 $e $this->stopwatch->start($eventName'section');
  9.                 try {
  1.      */
  2.     private function handleRaw(Request $requestint $type self::MAIN_REQUEST): Response
  3.     {
  4.         // request
  5.         $event = new RequestEvent($this$request$type);
  6.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  7.         if ($event->hasResponse()) {
  8.             return $this->filterResponse($event->getResponse(), $request$type);
  9.         }
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in public/index.php (line 30)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Logs

No log messages

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:116
  at Symfony\Component\HttpFoundation\Session\Storage\Handler\StrictSessionHandler->gc()
     (vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php:91)
  at Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy->gc()
  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:273)
  at Symfony\Component\HttpFoundation\Session\Session->getFlashBag()
     (var/cache/dev/ContainerSbZhA9x/getSession_FlashBagService.php:24)
  at ContainerSbZhA9x\getSession_FlashBagService::do()
     (var/cache/dev/ContainerSbZhA9x/App_KernelDevDebugContainer.php:3028)
  at ContainerSbZhA9x\App_KernelDevDebugContainer->load()
     (var/cache/dev/ContainerSbZhA9x/App_KernelDevDebugContainer.php:7511)
  at ContainerSbZhA9x\App_KernelDevDebugContainer->getGtmRouteListenerService()
     (var/cache/dev/ContainerSbZhA9x/App_KernelDevDebugContainer.php:4419)
  at ContainerSbZhA9x\App_KernelDevDebugContainer->ContainerSbZhA9x\{closure}()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:245)
  at Symfony\Component\EventDispatcher\EventDispatcher->sortListeners()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:76)
  at Symfony\Component\EventDispatcher\EventDispatcher->getListeners()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:293)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->preProcess()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:148)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (vendor/symfony/http-kernel/HttpKernel.php:129)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:30)