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->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  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.         $this->requestStack->push($request);
  3.         // request
  4.         $event = new RequestEvent($this$request$type);
  5.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  6.         if ($event->hasResponse()) {
  7.             return $this->filterResponse($event->getResponse(), $request$type);
  8.         }
  1.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  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->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  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.     {
  2.         if (!$request $request ?: $this->requestStack->getMainRequest()) {
  3.             throw $exception;
  4.         }
  5.         $response $this->handleThrowable($exception$requestself::MAIN_REQUEST);
  6.         $response->sendHeaders();
  7.         $response->sendContent();
  8.         $this->terminate($request$response);
  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 /var/mosafil/shopware/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->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  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.         $this->requestStack->push($request);
  3.         // request
  4.         $event = new RequestEvent($this$request$type);
  5.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  6.         if ($event->hasResponse()) {
  7.             return $this->filterResponse($event->getResponse(), $request$type);
  8.         }
  1.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  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->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  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.         }
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  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.             && $container->getParameter('shopware.http.cache.enabled');
  2.         if ($enabled && $container->has(CacheStore::class)) {
  3.             $kernel = new HttpCache($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.     }
  2.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true): HttpKernelResult
  3.     {
  4.         try {
  5.             return $this->doHandle($request, (int) $type, (bool) $catch);
  6.         } catch (DBALException $e) {
  7.             $connectionParams self::getConnection()->getParams();
  8.             $message str_replace([$connectionParams['url'], $connectionParams['password'], $connectionParams['user']], '******'$e->getMessage());
HttpKernel->handle() in /var/mosafil/shopware/public/index.php (line 74)
  1. if ($_SERVER['COMPOSER_PLUGIN_LOADER'] ?? $_SERVER['DISABLE_EXTENSIONS'] ?? false) {
  2.     $kernel->setPluginLoader(new \Shopware\Core\Framework\Plugin\KernelPluginLoader\ComposerPluginLoader($classLoader));
  3. }
  4. $result $kernel->handle($request);
  5. $result->getResponse()->send();
  6. $kernel->terminate($result->getRequest(), $result->getResponse());

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->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  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.         $this->requestStack->push($request);
  3.         // request
  4.         $event = new RequestEvent($this$request$type);
  5.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  6.         if ($event->hasResponse()) {
  7.             return $this->filterResponse($event->getResponse(), $request$type);
  8.         }
  1.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  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.             && $container->getParameter('shopware.http.cache.enabled');
  2.         if ($enabled && $container->has(CacheStore::class)) {
  3.             $kernel = new HttpCache($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.     }
  2.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true): HttpKernelResult
  3.     {
  4.         try {
  5.             return $this->doHandle($request, (int) $type, (bool) $catch);
  6.         } catch (DBALException $e) {
  7.             $connectionParams self::getConnection()->getParams();
  8.             $message str_replace([$connectionParams['url'], $connectionParams['password'], $connectionParams['user']], '******'$e->getMessage());
HttpKernel->handle() in /var/mosafil/shopware/public/index.php (line 74)
  1. if ($_SERVER['COMPOSER_PLUGIN_LOADER'] ?? $_SERVER['DISABLE_EXTENSIONS'] ?? false) {
  2.     $kernel->setPluginLoader(new \Shopware\Core\Framework\Plugin\KernelPluginLoader\ComposerPluginLoader($classLoader));
  3. }
  4. $result $kernel->handle($request);
  5. $result->getResponse()->send();
  6. $kernel->terminate($result->getRequest(), $result->getResponse());

Stack Traces 3

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

  at /var/mosafil/shopware/vendor/symfony/http-foundation/Session/Storage/Proxy/AbstractProxy.php:113
  at Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy->setName()
     (/var/mosafil/shopware/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:200)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->setName()
     (/var/mosafil/shopware/vendor/symfony/http-foundation/Session/Session.php:232)
  at Symfony\Component\HttpFoundation\Session\Session->setName()
     (/var/mosafil/shopware/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php:150)
  at Shopware\Storefront\Framework\Routing\StorefrontSubscriber->startSession()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:117)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:51)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:96)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Framework/Event/BusinessEventDispatcher.php:53)
  at Shopware\Core\Framework\Event\BusinessEventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:35)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/symfony/http-kernel/HttpKernel.php:128)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/var/mosafil/shopware/vendor/symfony/http-kernel/HttpKernel.php:74)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/var/mosafil/shopware/vendor/symfony/http-kernel/EventListener/ErrorListener.php:85)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:117)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:51)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:96)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Framework/Event/BusinessEventDispatcher.php:53)
  at Shopware\Core\Framework\Event\BusinessEventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:35)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/symfony/http-kernel/HttpKernel.php:213)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/var/mosafil/shopware/vendor/symfony/http-kernel/HttpKernel.php:106)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException()
     (/var/mosafil/shopware/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:131)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}()
     (/var/mosafil/shopware/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 /var/mosafil/shopware/vendor/symfony/http-foundation/Session/Storage/Proxy/AbstractProxy.php:113
  at Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy->setName()
     (/var/mosafil/shopware/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:200)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->setName()
     (/var/mosafil/shopware/vendor/symfony/http-foundation/Session/Session.php:232)
  at Symfony\Component\HttpFoundation\Session\Session->setName()
     (/var/mosafil/shopware/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php:150)
  at Shopware\Storefront\Framework\Routing\StorefrontSubscriber->startSession()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:117)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:51)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:96)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Framework/Event/BusinessEventDispatcher.php:53)
  at Shopware\Core\Framework\Event\BusinessEventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:35)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/symfony/http-kernel/HttpKernel.php:128)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/var/mosafil/shopware/vendor/symfony/http-kernel/HttpKernel.php:74)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/var/mosafil/shopware/vendor/symfony/http-kernel/EventListener/ErrorListener.php:85)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:117)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:51)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:96)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Framework/Event/BusinessEventDispatcher.php:53)
  at Shopware\Core\Framework\Event\BusinessEventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:35)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/symfony/http-kernel/HttpKernel.php:213)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/var/mosafil/shopware/vendor/symfony/http-kernel/HttpKernel.php:85)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/var/mosafil/shopware/vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/var/mosafil/shopware/vendor/shopware/core/HttpKernel.php:153)
  at Shopware\Core\HttpKernel->doHandle()
     (/var/mosafil/shopware/vendor/shopware/core/HttpKernel.php:79)
  at Shopware\Core\HttpKernel->handle()
     (/var/mosafil/shopware/public/index.php:74)                
[1/3] ErrorException
ErrorException:
Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13)

  at /var/mosafil/shopware/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php:106
  at Symfony\Component\HttpFoundation\Session\Storage\Handler\StrictSessionHandler->gc()
     (/var/mosafil/shopware/vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php:89)
  at Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy->gc()
  at session_start()
     (/var/mosafil/shopware/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:155)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (/var/mosafil/shopware/vendor/symfony/http-foundation/Session/Session.php:61)
  at Symfony\Component\HttpFoundation\Session\Session->start()
     (/var/mosafil/shopware/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php:151)
  at Shopware\Storefront\Framework\Routing\StorefrontSubscriber->startSession()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:117)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:51)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:96)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Framework/Event/BusinessEventDispatcher.php:53)
  at Shopware\Core\Framework\Event\BusinessEventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:35)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/var/mosafil/shopware/vendor/symfony/http-kernel/HttpKernel.php:128)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/var/mosafil/shopware/vendor/symfony/http-kernel/HttpKernel.php:74)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/var/mosafil/shopware/vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/var/mosafil/shopware/vendor/shopware/core/HttpKernel.php:153)
  at Shopware\Core\HttpKernel->doHandle()
     (/var/mosafil/shopware/vendor/shopware/core/HttpKernel.php:79)
  at Shopware\Core\HttpKernel->handle()
     (/var/mosafil/shopware/public/index.php:74)