Zum Hauptinhalt springen
Großes Lagersortiment Schneller Versand ab 1.500 € Versandkostenfrei
Mo-Fr: 09-19 Uhr
Sa: 09-15 Uhr
Loading...
Dateien werden hochgeladen, bitte warten...
Loading…
Loading the web debug toolbar…
Attempt #

Fatal error: Out of memory (allocated 989962240 bytes) (tried to allocate 8392704 bytes) in /home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 164

Warning: session_name(): Session name cannot be changed after headers have already been sent in /home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/http-foundation/Session/Storage/Proxy/AbstractProxy.php on line 96
Failed to start the session because headers have already been sent by "/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/http-foundation/Response.php" at line 380. (500 Internal Server Error)

Symfony Exception

OutOfMemoryError RuntimeException

HTTP 500 Internal Server Error

Failed to start the session because headers have already been sent by "/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/http-foundation/Response.php" at line 380.

Exceptions 2

RuntimeException

  1.         if (\PHP_SESSION_ACTIVE === session_status()) {
  2.             throw new \RuntimeException('Failed to start the session: already started by PHP.');
  3.         }
  4.         if (filter_var(\ini_get('session.use_cookies'), \FILTER_VALIDATE_BOOL) && headers_sent($file$line)) {
  5.             throw new \RuntimeException(sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.'$file$line));
  6.         }
  7.         $sessionId $_COOKIE[session_name()] ?? null;
  8.         /*
  9.          * Explanation of the session ID regular expression: `/^[a-zA-Z0-9,-]{22,250}$/`.
  1.         $this->registerBag($flashes);
  2.     }
  3.     public function start(): bool
  4.     {
  5.         return $this->storage->start();
  6.     }
  7.     public function has(string $name): bool
  8.     {
  9.         return $this->getAttributeBag()->has($name);
  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.         if (!$eventName) {
  2.             $eventName $event::class;
  3.         }
  4.         if (!$event instanceof ShopwareSalesChannelEvent) {
  5.             return $this->decorated->dispatch($event$eventName);
  6.         }
  7.         if (!$event->getSalesChannelContext()->hasExtension(SubscriptionContextStruct::SUBSCRIPTION_EXTENSION)) {
  8.             return $this->decorated->dispatch($event$eventName);
  9.         }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch(object $event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (!$event instanceof FlowEventAware) {
  8.             return $event;
  9.         }
  1.     ) {
  2.     }
  3.     public function dispatch(object $event, ?string $eventName null): object
  4.     {
  5.         $event $this->dispatcher->dispatch($event$eventName);
  6.         if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS'false)) {
  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.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.     }
  2.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true): Response
  3.     {
  4.         if ($request->attributes->get('exception') !== null) {
  5.             return parent::handle($request$type$catch);
  6.         }
  7.         if (!$request->attributes->has('sw-skip-transformer')) {
  8.             try {
  9.                 $request $this->requestTransformer->transform($request);
  1.         }
  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(), basename($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.         if (!$eventName) {
  2.             $eventName $event::class;
  3.         }
  4.         if (!$event instanceof ShopwareSalesChannelEvent) {
  5.             return $this->decorated->dispatch($event$eventName);
  6.         }
  7.         if (!$event->getSalesChannelContext()->hasExtension(SubscriptionContextStruct::SUBSCRIPTION_EXTENSION)) {
  8.             return $this->decorated->dispatch($event$eventName);
  9.         }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch(object $event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (!$event instanceof FlowEventAware) {
  8.             return $event;
  9.         }
  1.     ) {
  2.     }
  3.     public function dispatch(object $event, ?string $eventName null): object
  4.     {
  5.         $event $this->dispatcher->dispatch($event$eventName);
  6.         if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS'false)) {
  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.      * Handles a throwable by trying to convert it to a Response.
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$eisKernelTerminating$this->terminating);
  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 /home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 538)
  1.             $this->exceptionHandler null;
  2.         }
  3.         try {
  4.             if (null !== $exceptionHandler) {
  5.                 $exceptionHandler($exception);
  6.                 return;
  7.             }
  8.             $handlerException ??= $exception;
  9.         } catch (\Throwable $handlerException) {
  1.         }
  2.         try {
  3.             if (null !== $fatalError) {
  4.                 self::$exitCode 255;
  5.                 $handler->handleException($fatalError);
  6.             }
  7.         } catch (FatalError) {
  8.             // Ignore this re-throw
  9.         }
ErrorHandler::handleFatalError()

Symfony\Component\ErrorHandler\Error\ OutOfMemoryError

Error: Out of memory (allocated 989962240 bytes) (tried to allocate 8392704 bytes)

  1.             'time' => $profile->getTime(),
  2.             'status_code' => $profile->getStatusCode(),
  3.             'virtual_type' => $profile->getVirtualType() ?? 'request',
  4.         ];
  5.         $data serialize($data);
  6.         if (\function_exists('gzencode')) {
  7.             $data gzencode($data3);
  8.         }

Stack Traces 2

[2/2] RuntimeException
RuntimeException:
Failed to start the session because headers have already been sent by "/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/http-foundation/Response.php" at line 380.

  at /home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:116
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/http-foundation/Session/Session.php:59)
  at Symfony\Component\HttpFoundation\Session\Session->start()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php:106)
  at Shopware\Storefront\Framework\Routing\StorefrontSubscriber->startSession()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/custom/plugins/SwagCommercial/src/Subscription/Framework/Event/SubscriptionEventDispatcher.php:35)
  at Shopware\Commercial\Subscription\Framework\Event\SubscriptionEventDispatcher->dispatch()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:50)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:70)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:31)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:122)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/http-kernel/HttpKernel.php:159)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/shopware/core/Framework/Adapter/Kernel/HttpKernel.php:43)
  at Shopware\Core\Framework\Adapter\Kernel\HttpKernel->handle()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/http-kernel/EventListener/ErrorListener.php:97)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/custom/plugins/SwagCommercial/src/Subscription/Framework/Event/SubscriptionEventDispatcher.php:35)
  at Shopware\Commercial\Subscription\Framework\Event\SubscriptionEventDispatcher->dispatch()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:50)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:70)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:31)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:122)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/http-kernel/HttpKernel.php:241)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/http-kernel/HttpKernel.php:134)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:84)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/error-handler/ErrorHandler.php:538)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException()
     (/home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/error-handler/ErrorHandler.php:634)
  at Symfony\Component\ErrorHandler\ErrorHandler::handleFatalError()                
[1/2] OutOfMemoryError
Symfony\Component\ErrorHandler\Error\OutOfMemoryError:
Error: Out of memory (allocated 989962240 bytes) (tried to allocate 8392704 bytes)

  at /home/holdykoj/www.holzzentrum.de/devsw6/shopware6/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php:164