Symfony Exception

ErrorException LogicException LogicException

HTTP 500 Internal Server Error

Cannot change the name of an active session.

Exceptions 3

LogicException

  1.      * @throws \LogicException
  2.      */
  3.     public function setName(string $name)
  4.     {
  5.         if ($this->isActive()) {
  6.             throw new \LogicException('Cannot change the name of an active session.');
  7.         }
  8.         session_name($name);
  9.     }
  10. }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function setName(string $name)
  5.     {
  6.         $this->saveHandler->setName($name);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function setName(string $name)
  5.     {
  6.         $this->storage->setName($name);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.         }
  2.         $session $master->getSession();
  3.         if (!$session->isStarted()) {
  4.             $session->setName('session-');
  5.             $session->start();
  6.             $session->set('sessionId'$session->getId());
  7.         }
  8.         $salesChannelId $master->attributes->get(PlatformRequest::ATTRIBUTE_SALES_CHANNEL_ID);
  1.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch($event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (!$event instanceof FlowEventAware) {
  8.             return $event;
  9.         }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch($event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS'false)) {
  8.             return $event;
  9.         }
  1.         $this->definitionRegistry $definitionRegistry;
  2.     }
  3.     public function dispatch($event, ?string $eventName null): object
  4.     {
  5.         $event $this->dispatcher->dispatch($event$eventName);
  6.         if (Feature::isActive('FEATURE_NEXT_17858')) {
  7.             return $event;
  8.         }
  1.                 }
  2.                 $this->dispatch($nested$name);
  3.             }
  4.         }
  5.         return $this->dispatcher->dispatch($event$eventName);
  6.     }
  7.     /**
  8.      * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9.      */
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  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.         $throwable $event->getThrowable();
  2.         $request $this->duplicateRequest($throwable$event->getRequest());
  3.         try {
  4.             $response $event->getKernel()->handle($requestHttpKernelInterface::SUB_REQUESTfalse);
  5.         } catch (\Exception $e) {
  6.             $f FlattenException::createFromThrowable($e);
  7.             $this->logException($esprintf('Exception thrown when handling an exception (%s: %s at %s line %s)'$f->getClass(), $f->getMessage(), $e->getFile(), $e->getLine()));
  1.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch($event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (!$event instanceof FlowEventAware) {
  8.             return $event;
  9.         }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch($event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS'false)) {
  8.             return $event;
  9.         }
  1.         $this->definitionRegistry $definitionRegistry;
  2.     }
  3.     public function dispatch($event, ?string $eventName null): object
  4.     {
  5.         $event $this->dispatcher->dispatch($event$eventName);
  6.         if (Feature::isActive('FEATURE_NEXT_17858')) {
  7.             return $event;
  8.         }
  1.                 }
  2.                 $this->dispatch($nested$name);
  3.             }
  4.         }
  5.         return $this->dispatcher->dispatch($event$eventName);
  6.     }
  7.     /**
  8.      * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9.      */
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.         if ($pop $request !== $this->requestStack->getMainRequest()) {
  2.             $this->requestStack->push($request);
  3.         }
  4.         try {
  5.             $response $this->handleThrowable($exception$requestself::MAIN_REQUEST);
  6.         } finally {
  7.             if ($pop) {
  8.                 $this->requestStack->pop();
  9.             }
  10.         }
  1.                         if ($hasRun) {
  2.                             throw $e;
  3.                         }
  4.                         $hasRun true;
  5.                         $kernel->terminateWithException($e$request);
  6.                     };
  7.                 }
  8.             } elseif ($event instanceof ConsoleEvent && $app $event->getCommand()->getApplication()) {
  9.                 $output $event->getOutput();
  10.                 if ($output instanceof ConsoleOutputInterface) {
in /srv/customers/komperdell/websites/default/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 607)
  1.             $this->exceptionHandler null;
  2.         }
  3.         try {
  4.             if (null !== $exceptionHandler) {
  5.                 return $exceptionHandler($exception);
  6.             }
  7.             $handlerException $handlerException ?: $exception;
  8.         } catch (\Throwable $handlerException) {
  9.         }
  10.         if ($exception === $handlerException && null === $this->exceptionHandler) {
ErrorHandler->handleException()

LogicException

Cannot change the name of an active session.

  1.      * @throws \LogicException
  2.      */
  3.     public function setName(string $name)
  4.     {
  5.         if ($this->isActive()) {
  6.             throw new \LogicException('Cannot change the name of an active session.');
  7.         }
  8.         session_name($name);
  9.     }
  10. }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function setName(string $name)
  5.     {
  6.         $this->saveHandler->setName($name);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function setName(string $name)
  5.     {
  6.         $this->storage->setName($name);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.         }
  2.         $session $master->getSession();
  3.         if (!$session->isStarted()) {
  4.             $session->setName('session-');
  5.             $session->start();
  6.             $session->set('sessionId'$session->getId());
  7.         }
  8.         $salesChannelId $master->attributes->get(PlatformRequest::ATTRIBUTE_SALES_CHANNEL_ID);
  1.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch($event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (!$event instanceof FlowEventAware) {
  8.             return $event;
  9.         }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch($event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS'false)) {
  8.             return $event;
  9.         }
  1.         $this->definitionRegistry $definitionRegistry;
  2.     }
  3.     public function dispatch($event, ?string $eventName null): object
  4.     {
  5.         $event $this->dispatcher->dispatch($event$eventName);
  6.         if (Feature::isActive('FEATURE_NEXT_17858')) {
  7.             return $event;
  8.         }
  1.                 }
  2.                 $this->dispatch($nested$name);
  3.             }
  4.         }
  5.         return $this->dispatcher->dispatch($event$eventName);
  6.     }
  7.     /**
  8.      * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9.      */
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  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.         $throwable $event->getThrowable();
  2.         $request $this->duplicateRequest($throwable$event->getRequest());
  3.         try {
  4.             $response $event->getKernel()->handle($requestHttpKernelInterface::SUB_REQUESTfalse);
  5.         } catch (\Exception $e) {
  6.             $f FlattenException::createFromThrowable($e);
  7.             $this->logException($esprintf('Exception thrown when handling an exception (%s: %s at %s line %s)'$f->getClass(), $f->getMessage(), $e->getFile(), $e->getLine()));
  1.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch($event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (!$event instanceof FlowEventAware) {
  8.             return $event;
  9.         }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch($event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS'false)) {
  8.             return $event;
  9.         }
  1.         $this->definitionRegistry $definitionRegistry;
  2.     }
  3.     public function dispatch($event, ?string $eventName null): object
  4.     {
  5.         $event $this->dispatcher->dispatch($event$eventName);
  6.         if (Feature::isActive('FEATURE_NEXT_17858')) {
  7.             return $event;
  8.         }
  1.                 }
  2.                 $this->dispatch($nested$name);
  3.             }
  4.         }
  5.         return $this->dispatcher->dispatch($event$eventName);
  6.     }
  7.     /**
  8.      * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9.      */
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.                 $this->finishRequest($request$type);
  2.                 throw $e;
  3.             }
  4.             return $this->handleThrowable($e$request$type);
  5.         } finally {
  6.             $this->requestStack->pop();
  7.         }
  8.     }
  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.     }
  1.         if (!IpUtils::checkIp('127.0.0.1'$trustedProxies)) {
  2.             Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3.         }
  4.         try {
  5.             return $kernel->handle($request$type$catch);
  6.         } finally {
  7.             // restore global state
  8.             Request::setTrustedProxies($trustedProxies$trustedHeaderSet);
  9.         }
  10.     }
  1.         if ($this->surrogate) {
  2.             $this->surrogate->addSurrogateCapability($request);
  3.         }
  4.         // always a "master" request (as the real master request can be in cache)
  5.         $response SubRequestHandler::handle($this->kernel$requestHttpKernelInterface::MAIN_REQUEST$catch);
  6.         /*
  7.          * Support stale-if-error given on Responses or as a config option.
  8.          * RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
  9.          * Cache-Control directives) that
  1.         // avoid that the backend sends no content
  2.         $subRequest->headers->remove('If-Modified-Since');
  3.         $subRequest->headers->remove('If-None-Match');
  4.         $response $this->forward($subRequest$catch);
  5.         if ($response->isCacheable()) {
  6.             $this->store($request$response);
  7.         }
  1.         }
  2.         if (null === $entry) {
  3.             $this->record($request'miss');
  4.             return $this->fetch($request$catch);
  5.         }
  6.         if (!$this->isFreshEnough($request$entry)) {
  7.             $this->record($request'stale');
  1.                 reload the cache by fetching a fresh response and caching it (if possible).
  2.             */
  3.             $this->record($request'reload');
  4.             $response $this->fetch($request$catch);
  5.         } else {
  6.             $response $this->lookup($request$catch);
  7.         }
  8.         $this->restoreResponseBody($request$response);
  9.         if (HttpKernelInterface::MAIN_REQUEST === $type) {
  1.             && $container->getParameter('shopware.http.cache.enabled');
  2.         if ($enabled && $container->has(CacheStore::class)) {
  3.             $kernel = new static::$httpCacheClass($kernel$container->get(CacheStore::class), null, ['debug' => $this->debug]);
  4.         }
  5.         $response $kernel->handle($transformed$type$catch);
  6.         // fire event to trigger runtime events like seo url headers
  7.         $event = new BeforeSendResponseEvent($transformed$response);
  8.         $container->get('event_dispatcher')->dispatch($event);
  1.         if (!\is_bool($catch)) {
  2.             Feature::triggerDeprecationOrThrow('v6.5.0.0''The third parameter `$catch` of `HttpKernel->handle()` will be typed to `bool`');
  3.         }
  4.         try {
  5.             return $this->doHandle($request, (int) $type, (bool) $catch);
  6.         } catch (Exception $e) {
  7.             /** @var Params|array{url?: string} $connectionParams */
  8.             $connectionParams self::getConnection()->getParams();
  9.             $message str_replace([$connectionParams['url'] ?? null$connectionParams['password'] ?? null$connectionParams['user'] ?? null], '******'$e->getMessage());
  1.     }
  2. } else {
  3.     $kernel = new InstallerKernel($appEnv$debug);
  4. }
  5. $result $kernel->handle($request);
  6. if ($result instanceof Response) {
  7.     $result->send();
  8.     $kernel->terminate($request$result);
  9. } else {

ErrorException

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

  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.      * {@inheritdoc}
  3.      */
  4.     public function start()
  5.     {
  6.         return $this->storage->start();
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.         $session $master->getSession();
  2.         if (!$session->isStarted()) {
  3.             $session->setName('session-');
  4.             $session->start();
  5.             $session->set('sessionId'$session->getId());
  6.         }
  7.         $salesChannelId $master->attributes->get(PlatformRequest::ATTRIBUTE_SALES_CHANNEL_ID);
  8.         if ($salesChannelId === null) {
  1.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch($event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (!$event instanceof FlowEventAware) {
  8.             return $event;
  9.         }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch($event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS'false)) {
  8.             return $event;
  9.         }
  1.         $this->definitionRegistry $definitionRegistry;
  2.     }
  3.     public function dispatch($event, ?string $eventName null): object
  4.     {
  5.         $event $this->dispatcher->dispatch($event$eventName);
  6.         if (Feature::isActive('FEATURE_NEXT_17858')) {
  7.             return $event;
  8.         }
  1.                 }
  2.                 $this->dispatch($nested$name);
  3.             }
  4.         }
  5.         return $this->dispatcher->dispatch($event$eventName);
  6.     }
  7.     /**
  8.      * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9.      */
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  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.     }
  1.         if (!IpUtils::checkIp('127.0.0.1'$trustedProxies)) {
  2.             Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3.         }
  4.         try {
  5.             return $kernel->handle($request$type$catch);
  6.         } finally {
  7.             // restore global state
  8.             Request::setTrustedProxies($trustedProxies$trustedHeaderSet);
  9.         }
  10.     }
  1.         if ($this->surrogate) {
  2.             $this->surrogate->addSurrogateCapability($request);
  3.         }
  4.         // always a "master" request (as the real master request can be in cache)
  5.         $response SubRequestHandler::handle($this->kernel$requestHttpKernelInterface::MAIN_REQUEST$catch);
  6.         /*
  7.          * Support stale-if-error given on Responses or as a config option.
  8.          * RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
  9.          * Cache-Control directives) that
  1.         // avoid that the backend sends no content
  2.         $subRequest->headers->remove('If-Modified-Since');
  3.         $subRequest->headers->remove('If-None-Match');
  4.         $response $this->forward($subRequest$catch);
  5.         if ($response->isCacheable()) {
  6.             $this->store($request$response);
  7.         }
  1.         }
  2.         if (null === $entry) {
  3.             $this->record($request'miss');
  4.             return $this->fetch($request$catch);
  5.         }
  6.         if (!$this->isFreshEnough($request$entry)) {
  7.             $this->record($request'stale');
  1.                 reload the cache by fetching a fresh response and caching it (if possible).
  2.             */
  3.             $this->record($request'reload');
  4.             $response $this->fetch($request$catch);
  5.         } else {
  6.             $response $this->lookup($request$catch);
  7.         }
  8.         $this->restoreResponseBody($request$response);
  9.         if (HttpKernelInterface::MAIN_REQUEST === $type) {
  1.             && $container->getParameter('shopware.http.cache.enabled');
  2.         if ($enabled && $container->has(CacheStore::class)) {
  3.             $kernel = new static::$httpCacheClass($kernel$container->get(CacheStore::class), null, ['debug' => $this->debug]);
  4.         }
  5.         $response $kernel->handle($transformed$type$catch);
  6.         // fire event to trigger runtime events like seo url headers
  7.         $event = new BeforeSendResponseEvent($transformed$response);
  8.         $container->get('event_dispatcher')->dispatch($event);
  1.         if (!\is_bool($catch)) {
  2.             Feature::triggerDeprecationOrThrow('v6.5.0.0''The third parameter `$catch` of `HttpKernel->handle()` will be typed to `bool`');
  3.         }
  4.         try {
  5.             return $this->doHandle($request, (int) $type, (bool) $catch);
  6.         } catch (Exception $e) {
  7.             /** @var Params|array{url?: string} $connectionParams */
  8.             $connectionParams self::getConnection()->getParams();
  9.             $message str_replace([$connectionParams['url'] ?? null$connectionParams['password'] ?? null$connectionParams['user'] ?? null], '******'$e->getMessage());
  1.     }
  2. } else {
  3.     $kernel = new InstallerKernel($appEnv$debug);
  4. }
  5. $result $kernel->handle($request);
  6. if ($result instanceof Response) {
  7.     $result->send();
  8.     $kernel->terminate($request$result);
  9. } else {

Stack Traces 3

[3/3] LogicException
LogicException:
Cannot change the name of an active session.

  at /srv/customers/komperdell/websites/default/vendor/symfony/http-foundation/Session/Storage/Proxy/AbstractProxy.php:113
  at Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy->setName()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:230)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->setName()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-foundation/Session/Session.php:232)
  at Symfony\Component\HttpFoundation\Session\Session->setName()
     (/srv/customers/komperdell/websites/default/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php:179)
  at Shopware\Storefront\Framework\Routing\StorefrontSubscriber->startSession()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:56)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:98)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Framework/Event/BusinessEventDispatcher.php:55)
  at Shopware\Core\Framework\Event\BusinessEventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:37)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpKernel.php:139)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/EventListener/ErrorListener.php:91)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:56)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:98)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Framework/Event/BusinessEventDispatcher.php:55)
  at Shopware\Core\Framework\Event\BusinessEventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:37)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpKernel.php:223)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpKernel.php:114)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:131)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}()
     (/srv/customers/komperdell/websites/default/vendor/symfony/error-handler/ErrorHandler.php:607)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException()                
[2/3] LogicException
LogicException:
Cannot change the name of an active session.

  at /srv/customers/komperdell/websites/default/vendor/symfony/http-foundation/Session/Storage/Proxy/AbstractProxy.php:113
  at Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy->setName()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:230)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->setName()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-foundation/Session/Session.php:232)
  at Symfony\Component\HttpFoundation\Session\Session->setName()
     (/srv/customers/komperdell/websites/default/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php:179)
  at Shopware\Storefront\Framework\Routing\StorefrontSubscriber->startSession()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:56)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:98)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Framework/Event/BusinessEventDispatcher.php:55)
  at Shopware\Core\Framework\Event\BusinessEventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:37)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpKernel.php:139)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/EventListener/ErrorListener.php:91)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:56)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:98)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Framework/Event/BusinessEventDispatcher.php:55)
  at Shopware\Core\Framework\Event\BusinessEventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:37)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpKernel.php:223)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpKernel.php:86)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:86)
  at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpCache/HttpCache.php:479)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpCache/HttpCache.php:452)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpCache/HttpCache.php:346)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpCache/HttpCache.php:224)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/HttpKernel.php:156)
  at Shopware\Core\HttpKernel->doHandle()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/HttpKernel.php:81)
  at Shopware\Core\HttpKernel->handle()
     (/srv/customers/komperdell/websites/default/public/index.php:85)                
[1/3] ErrorException
ErrorException:
Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13)

  at /srv/customers/komperdell/websites/default/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php:116
  at Symfony\Component\HttpFoundation\Session\Storage\Handler\StrictSessionHandler->gc()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php:91)
  at Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy->gc()
  at session_start()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:185)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-foundation/Session/Session.php:61)
  at Symfony\Component\HttpFoundation\Session\Session->start()
     (/srv/customers/komperdell/websites/default/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php:180)
  at Shopware\Storefront\Framework\Routing\StorefrontSubscriber->startSession()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:56)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:98)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Framework/Event/BusinessEventDispatcher.php:55)
  at Shopware\Core\Framework\Event\BusinessEventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:37)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpKernel.php:139)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:86)
  at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpCache/HttpCache.php:479)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpCache/HttpCache.php:452)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpCache/HttpCache.php:346)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup()
     (/srv/customers/komperdell/websites/default/vendor/symfony/http-kernel/HttpCache/HttpCache.php:224)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/HttpKernel.php:156)
  at Shopware\Core\HttpKernel->doHandle()
     (/srv/customers/komperdell/websites/default/vendor/shopware/core/HttpKernel.php:81)
  at Shopware\Core\HttpKernel->handle()
     (/srv/customers/komperdell/websites/default/public/index.php:85)