ErrorException {#20357 #severity: E_WARNING }
{ if ($this->isActive()) { throw new \LogicException('Cannot change the name of an active session.'); } session_name($name); }} return $this->saveHandler->getName(); } public function setName(string $name): void { $this->saveHandler->setName($name); } public function regenerate(bool $destroy = false, ?int $lifetime = null): bool { // Cannot regenerate the session ID for non-active sessions. return $this->storage->getName(); } public function setName(string $name): void { $this->storage->setName($name); } public function getMetadataBag(): MetadataBag { ++$this->usageIndex; } $session = $master->getSession(); if (!$session->isStarted()) { $session->setName('session-'); $session->start(); $session->set('sessionId', $session->getId()); } $salesChannelId = $master->attributes->get(PlatformRequest::ATTRIBUTE_SALES_CHANNEL_ID); $this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener); $e = $this->stopwatch->start($this->name, 'event_listener'); try { ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher); } finally { if ($e->isStarted()) { $e->stop(); } } foreach ($listeners as $listener) { if ($stoppable && $event->isPropagationStopped()) { break; } $listener($event, $eventName, $this); } } /** * Sorts the internal list of listeners for the given event by priority. } else { $listeners = $this->getListeners($eventName); } if ($listeners) { $this->callListeners($listeners, $eventName, $event); } return $event; } * * @return TEvent */ public function dispatch(object $event, ?string $eventName = null): object { $event = $this->dispatcher->dispatch($event, $eventName); if (!$event instanceof FlowEventAware) { return $event; } ) { } public function dispatch(object $event, ?string $eventName = null): object { $event = $this->dispatcher->dispatch($event, $eventName); if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS', false)) { return $event; } } $this->dispatch($nested, $name); } } return $this->dispatcher->dispatch($event, $eventName); } /** * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283 */ try { $this->beforeDispatch($eventName, $event); try { $e = $this->stopwatch->start($eventName, 'section'); try { $this->dispatcher->dispatch($event, $eventName); } finally { if ($e->isStarted()) { $e->stop(); } } */ private function handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response { // request $event = new RequestEvent($this, $request, $type); $this->dispatcher->dispatch($event, KernelEvents::REQUEST); if ($event->hasResponse()) { return $this->filterResponse($event->getResponse(), $request, $type); } $request->headers->set('X-Php-Ob-Level', (string) ob_get_level()); $this->requestStack->push($request); $response = null; try { return $response = $this->handleRaw($request, $type); } catch (\Throwable $e) { if ($e instanceof \Error && !$this->handleAllThrowables) { throw $e; } } public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response { if ($request->attributes->get('exception') !== null) { return parent::handle($request, $type, $catch); } $request = $this->requestTransformer->transform($request); $redirect = $this->canonicalRedirectService->getRedirect($request); } $request = $this->duplicateRequest($throwable, $event->getRequest()); try { $response = $event->getKernel()->handle($request, HttpKernelInterface::SUB_REQUEST, false); } catch (\Exception $e) { $f = FlattenException::createFromThrowable($e); $this->logException($e, sprintf('Exception thrown when handling an exception (%s: %s at %s line %s)', $f->getClass(), $f->getMessage(), basename($e->getFile()), $e->getLine())); $this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener); $e = $this->stopwatch->start($this->name, 'event_listener'); try { ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher); } finally { if ($e->isStarted()) { $e->stop(); } } foreach ($listeners as $listener) { if ($stoppable && $event->isPropagationStopped()) { break; } $listener($event, $eventName, $this); } } /** * Sorts the internal list of listeners for the given event by priority. } else { $listeners = $this->getListeners($eventName); } if ($listeners) { $this->callListeners($listeners, $eventName, $event); } return $event; } * * @return TEvent */ public function dispatch(object $event, ?string $eventName = null): object { $event = $this->dispatcher->dispatch($event, $eventName); if (!$event instanceof FlowEventAware) { return $event; } ) { } public function dispatch(object $event, ?string $eventName = null): object { $event = $this->dispatcher->dispatch($event, $eventName); if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS', false)) { return $event; } } $this->dispatch($nested, $name); } } return $this->dispatcher->dispatch($event, $eventName); } /** * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283 */ try { $this->beforeDispatch($eventName, $event); try { $e = $this->stopwatch->start($eventName, 'section'); try { $this->dispatcher->dispatch($event, $eventName); } finally { if ($e->isStarted()) { $e->stop(); } } * Handles a throwable by trying to convert it to a Response. */ private function handleThrowable(\Throwable $e, Request $request, int $type): Response { $event = new ExceptionEvent($this, $request, $type, $e); $this->dispatcher->dispatch($event, KernelEvents::EXCEPTION); // a listener might have replaced the exception $e = $event->getThrowable(); if (!$event->hasResponse()) { if ($pop = $request !== $this->requestStack->getMainRequest()) { $this->requestStack->push($request); } try { $response = $this->handleThrowable($exception, $request, self::MAIN_REQUEST); } finally { if ($pop) { $this->requestStack->pop(); } } if ($hasRun) { throw $e; } $hasRun = true; $kernel->terminateWithException($e, $request); }; } } elseif ($event instanceof ConsoleEvent && $app = $event->getCommand()->getApplication()) { $output = $event->getOutput(); if ($output instanceof ConsoleOutputInterface) { $this->exceptionHandler = null; } try { if (null !== $exceptionHandler) { $exceptionHandler($exception); return; } $handlerException ??= $exception; } catch (\Throwable $handlerException) { if ($csvTime >= $minimalProfileTimestamp) { break; } @unlink($this->getFilename($csvToken)); $offset += \strlen($line); } fclose($handle); file_put_contents($file.'.offset', $offset); if ($csvTime >= $minimalProfileTimestamp) { break; } @unlink($this->getFilename($csvToken)); $offset += \strlen($line); } fclose($handle); file_put_contents($file.'.offset', $offset); $profile->getVirtualType() ?? 'request', ]); fclose($file); if (1 === mt_rand(1, 10)) { $this->removeExpiredProfiles(); } } return true; } if ($collector instanceof LateDataCollectorInterface) { $collector->lateCollect(); } } if (!($ret = $this->storage->write($profile)) && null !== $this->logger) { $this->logger->warning('Unable to store the profiler information.', ['configured_storage' => $this->storage::class]); } return $ret; } } } // save profiles foreach ($this->profiles as $request) { $this->profiler->saveProfile($this->profiles[$request]); } $this->profiles = new \SplObjectStorage(); $this->parents = new \SplObjectStorage(); } $this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener); $e = $this->stopwatch->start($this->name, 'event_listener'); try { ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher); } finally { if ($e->isStarted()) { $e->stop(); } } foreach ($listeners as $listener) { if ($stoppable && $event->isPropagationStopped()) { break; } $listener($event, $eventName, $this); } } /** * Sorts the internal list of listeners for the given event by priority. } else { $listeners = $this->getListeners($eventName); } if ($listeners) { $this->callListeners($listeners, $eventName, $event); } return $event; } * * @return TEvent */ public function dispatch(object $event, ?string $eventName = null): object { $event = $this->dispatcher->dispatch($event, $eventName); if (!$event instanceof FlowEventAware) { return $event; } ) { } public function dispatch(object $event, ?string $eventName = null): object { $event = $this->dispatcher->dispatch($event, $eventName); if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS', false)) { return $event; } } $this->dispatch($nested, $name); } } return $this->dispatcher->dispatch($event, $eventName); } /** * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283 */ try { $this->beforeDispatch($eventName, $event); try { $e = $this->stopwatch->start($eventName, 'section'); try { $this->dispatcher->dispatch($event, $eventName); } finally { if ($e->isStarted()) { $e->stop(); } } } } public function terminate(Request $request, Response $response): void { $this->dispatcher->dispatch(new TerminateEvent($this, $request, $response), KernelEvents::TERMINATE); } /** * @internal */ if (\in_array('fresh', $this->traces[$this->getTraceKey($request)] ?? [], true)) { return; } if ($this->getKernel() instanceof TerminableInterface) { $this->getKernel()->terminate($request, $response); } } /** * Forwards the Request to the backend without storing the Response in the cache. if (false === $this->booted) { return; } if ($this->getHttpKernel() instanceof TerminableInterface) { $this->getHttpKernel()->terminate($request, $response); } } public function shutdown(): void { } else { $response->send(); } if ($this->kernel instanceof TerminableInterface) { $this->kernel->terminate($this->request, $response); } return 0; }}$app = $app(...$args);exit( $runtime ->getRunner($app) ->run());use Shopware\Core\Framework\Adapter\Kernel\KernelFactory;use Symfony\Component\HttpFoundation\Response;$_SERVER['SCRIPT_FILENAME'] = __FILE__;require_once __DIR__ . '/../vendor/autoload_runtime.php';if (!file_exists(__DIR__ . '/../.env') && !file_exists(__DIR__ . '/../.env.dist') && !file_exists(__DIR__ . '/../.env.local.php')) { $_SERVER['APP_RUNTIME_OPTIONS']['disable_dotenv'] = true;}|
[2/2]
ErrorException
|
|---|
ErrorException:
Warning: session_name(): Session name cannot be changed after headers have already been sent
at /data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-foundation/Session/Storage/Proxy/AbstractProxy.php:96
at Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy->setName()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:182)
at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->setName()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-foundation/Session/Session.php:181)
at Symfony\Component\HttpFoundation\Session\Session->setName()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php:109)
at Shopware\Storefront\Framework\Routing\StorefrontSubscriber->startSession()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:116)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/event-dispatcher/EventDispatcher.php:206)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:50)
at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:70)
at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:31)
at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:127)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-kernel/HttpKernel.php:154)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/shopware/core/Framework/Adapter/Kernel/HttpKernel.php:41)
at Shopware\Core\Framework\Adapter\Kernel\HttpKernel->handle()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-kernel/EventListener/ErrorListener.php:111)
at Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:116)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/event-dispatcher/EventDispatcher.php:206)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:50)
at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:70)
at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:31)
at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:127)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-kernel/HttpKernel.php:236)
at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-kernel/HttpKernel.php:129)
at Symfony\Component\HttpKernel\HttpKernel->terminateWithException()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:82)
at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::{closure:Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure():76}()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/error-handler/ErrorHandler.php:535)
at Symfony\Component\ErrorHandler\ErrorHandler->handleException()
|
|
[1/2]
ValueError
|
|---|
ValueError:
unlink(): Argument #1 ($filename) must not contain any null bytes
at /data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php:341
at unlink()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php:341)
at Symfony\Component\HttpKernel\Profiler\FileProfilerStorage->removeExpiredProfiles()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php:193)
at Symfony\Component\HttpKernel\Profiler\FileProfilerStorage->write()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-kernel/Profiler/Profiler.php:100)
at Symfony\Component\HttpKernel\Profiler\Profiler->saveProfile()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-kernel/EventListener/ProfilerListener.php:135)
at Symfony\Component\HttpKernel\EventListener\ProfilerListener->onKernelTerminate()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:116)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/event-dispatcher/EventDispatcher.php:206)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:50)
at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:70)
at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:31)
at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:127)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-kernel/HttpKernel.php:112)
at Symfony\Component\HttpKernel\HttpKernel->terminate()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-kernel/HttpCache/HttpCache.php:249)
at Symfony\Component\HttpKernel\HttpCache\HttpCache->terminate()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/http-kernel/Kernel.php:148)
at Symfony\Component\HttpKernel\Kernel->terminate()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:53)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/autoload_runtime.php:29)
at require_once('/data/web/1/000/083/659/342542/htdocs/shopware6/vendor/autoload_runtime.php')
(/data/web/1/000/083/659/342542/htdocs/shopware6/public/index.php:11)
|