Loading

With pompons

Cupiditate dolorem aut eius nulla eius. Dolorum id molestias tempore deleniti blanditiis quasi. Repellat quis quo magnam nostrum. Quo et quis voluptate rerum sed dolor facere. Facilis quia quasi atque unde voluptatem.

Cart

Your cart is empty.
Loading…
Loading the web debug toolbar…
Attempt #
Failed to start the session because headers have already been sent by "/home/web/sitios/felinux.co/sylius/vendor/symfony/http-foundation/Response.php" at line 388. (500 Internal Server Error)

Symfony Exception

ErrorException RuntimeException

HTTP 500 Internal Server Error

Failed to start the session because headers have already been sent by "/home/web/sitios/felinux.co/sylius/vendor/symfony/http-foundation/Response.php" at line 388.

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. }
  2. if (!$this->started && $this->saveHandler->isActive()) {
  3. $this->loadSession();
  4. } elseif (!$this->started) {
  5. $this->start();
  6. }
  7. return $this->bags[$name];
  8. }
  1. $this->storage->registerBag(new SessionBagProxy($bag, $this->data, $this->usageIndex, $this->usageReporter));
  2. }
  3. public function getBag(string $name): SessionBagInterface
  4. {
  5. $bag = $this->storage->getBag($name);
  6. return method_exists($bag, 'getBag') ? $bag->getBag() : $bag;
  7. }
  8. /**
  1. *
  2. * Note that this method was added to help with IDE autocompletion.
  3. */
  4. private function getAttributeBag(): AttributeBagInterface
  5. {
  6. return $this->getBag($this->attributeName);
  7. }
  8. }
  1. return $this->storage->start();
  2. }
  3. public function has(string $name): bool
  4. {
  5. return $this->getAttributeBag()->has($name);
  6. }
  7. public function get(string $name, mixed $default = null): mixed
  8. {
  9. return $this->getAttributeBag()->get($name, $default);
  1. }
  2. public function hasForChannel(ChannelInterface $channel): bool
  3. {
  4. try {
  5. return $this->requestStack->getSession()->has($this->getCartKeyName($channel));
  6. } catch (SessionNotFoundException) {
  7. return false;
  8. }
  9. }
  1. } catch (ChannelNotFoundException $exception) {
  2. throw new CartNotFoundException(null, $exception);
  3. }
  4. Assert::isInstanceOf($channel, ChannelInterface::class);
  5. if (!$this->cartStorage->hasForChannel($channel)) {
  6. throw new CartNotFoundException('Sylius was not able to find the cart in session');
  7. }
  8. $cart = $this->cartStorage->getForChannel($channel);
  9. if (null === $cart) {
  1. public function getCart(): OrderInterface
  2. {
  3. foreach ($this->cartContexts as $cartContext) {
  4. try {
  5. return $cartContext->getCart();
  6. } catch (CartNotFoundException) {
  7. continue;
  8. }
  9. }
  1. return;
  2. }
  3. try {
  4. /** @var OrderInterface $cart */
  5. $cart = $this->cartContext->getCart();
  6. $itemsData = $cart->getItems()->map(static function (OrderItemInterface $item): array {
  7. $variant = $item->getVariant();
  8. $product = $variant->getProduct();
  1. }
  2. $response->headers->set('X-Debug-Token', $profile->getToken());
  3. foreach ($this->collectors as $collector) {
  4. $collector->collect($request, $response, $exception);
  5. // we need to clone for sub-requests
  6. $profile->addCollector(clone $collector);
  7. }
  1. $usageIndexValue = $usageIndexReference = &$session->getUsageIndex();
  2. $usageIndexReference = \PHP_INT_MIN;
  3. }
  4. try {
  5. if (!$profile = $this->profiler->collect($request, $event->getResponse(), $exception)) {
  6. return;
  7. }
  8. } finally {
  9. if ($session instanceof Session) {
  10. $usageIndexReference = $usageIndexValue;
  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. 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 filterResponse(Response $response, Request $request, int $type): Response
  3. {
  4. $event = new ResponseEvent($this, $request, $type, $response);
  5. $this->dispatcher->dispatch($event, KernelEvents::RESPONSE);
  6. $this->finishRequest($request, $type);
  7. return $event->getResponse();
  8. }
  1. throw new ControllerDoesNotReturnResponseException($msg, $controller, __FILE__, __LINE__ - 17);
  2. }
  3. }
  4. return $this->filterResponse($response, $request, $type);
  5. }
  6. /**
  7. * Filters a response object.
  8. *
  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. $request = $this->duplicateRequest($throwable, $event->getRequest());
  3. try {
  4. $response = $event->getKernel()->handle($request, HttpKernelInterface::SUB_REQUEST, false);
  5. } catch (\Exception $e) {
  6. $f = FlattenException::createFromThrowable($e);
  7. $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()));
  1. }
  2. public function onKernelException(ExceptionEvent $event): void
  3. {
  4. try {
  5. $this->decoratedListener->onKernelException($event);
  6. } catch (\Throwable $throwable) {
  7. $this->breakCircularDependency($throwable);
  8. throw $throwable;
  9. }
  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. 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 $e, Request $request, int $type): Response
  4. {
  5. $event = new ExceptionEvent($this, $request, $type, $e, isKernelTerminating: $this->terminating);
  6. $this->dispatcher->dispatch($event, KernelEvents::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, $request, self::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/web/sitios/felinux.co/sylius/vendor/symfony/error-handler/ErrorHandler.php :: {closure:Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure():71} (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) {
ErrorHandler->handleException(object(ErrorException))

ErrorException

Warning: file_put_contents(/home/web/sitios/felinux.co/sylius/var/cache/dev/profiler/cf/56/c256cf): Failed to open stream: No such file or directory

  1. if (\function_exists('gzencode')) {
  2. $data = gzencode($data, 3);
  3. }
  4. if (false === file_put_contents($file, $data, \LOCK_EX)) {
  5. return false;
  6. }
  7. if (!$profileIndexed) {
  8. // Add to index
  1. if ($collector instanceof LateDataCollectorInterface) {
  2. $collector->lateCollect();
  3. }
  4. }
  5. if (!($ret = $this->storage->write($profile)) && null !== $this->logger) {
  6. $this->logger->warning('Unable to store the profiler information.', ['configured_storage' => $this->storage::class]);
  7. }
  8. return $ret;
  9. }
  1. }
  2. }
  3. // save profiles
  4. foreach ($this->profiles as $request) {
  5. $this->profiler->saveProfile($this->profiles[$request]);
  6. }
  7. $this->reset();
  8. }
  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. 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. public function terminate(Request $request, Response $response): void
  2. {
  3. try {
  4. $this->terminating = true;
  5. $this->dispatcher->dispatch(new TerminateEvent($this, $request, $response), KernelEvents::TERMINATE);
  6. } finally {
  7. $this->terminating = false;
  8. }
  9. }
  1. if (!$this->booted) {
  2. return;
  3. }
  4. if ($this->getHttpKernel() instanceof TerminableInterface) {
  5. $this->getHttpKernel()->terminate($request, $response);
  6. }
  7. }
  8. public function shutdown(): void
  9. {
  1. } else {
  2. $response->send();
  3. }
  4. if ($this->kernel instanceof TerminableInterface) {
  5. $this->kernel->terminate($this->request, $response);
  6. }
  7. return 0;
  8. }
  9. }
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/home/web/sitios/felinux.co/sylius/vendor/autoload_runtime.php') in /home/web/sitios/felinux.co/sylius/public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5. return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Stack Traces 2

[2/2] RuntimeException
RuntimeException:
Failed to start the session because headers have already been sent by "/home/web/sitios/felinux.co/sylius/vendor/symfony/http-foundation/Response.php" at line 388.

  at /home/web/sitios/felinux.co/sylius/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:116
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:282)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('attributes')
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-foundation/Session/Session.php:201)
  at Symfony\Component\HttpFoundation\Session\Session->getBag('attributes')
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-foundation/Session/Session.php:221)
  at Symfony\Component\HttpFoundation\Session\Session->getAttributeBag()
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-foundation/Session/Session.php:64)
  at Symfony\Component\HttpFoundation\Session\Session->has('_sylius.cart.FASHION_WEB')
     (/home/web/sitios/felinux.co/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Storage/CartSessionStorage.php:35)
  at Sylius\Bundle\CoreBundle\Storage\CartSessionStorage->hasForChannel(object(Channel))
     (/home/web/sitios/felinux.co/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Context/SessionAndChannelBasedCartContext.php:40)
  at Sylius\Bundle\CoreBundle\Context\SessionAndChannelBasedCartContext->getCart()
     (/home/web/sitios/felinux.co/sylius/vendor/sylius/sylius/src/Sylius/Component/Order/Context/CompositeCartContext.php:38)
  at Sylius\Component\Order\Context\CompositeCartContext->getCart()
     (/home/web/sitios/felinux.co/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Collector/CartCollector.php:89)
  at Sylius\Bundle\CoreBundle\Collector\CartCollector->collect(object(Request), object(Response), object(ErrorException))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-kernel/Profiler/Profiler.php:158)
  at Symfony\Component\HttpKernel\Profiler\Profiler->collect(object(Request), object(Response), object(ErrorException))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-kernel/EventListener/ProfilerListener.php:102)
  at Symfony\Component\HttpKernel\EventListener\ProfilerListener->onKernelResponse(object(ResponseEvent), 'kernel.response', object(TraceableEventDispatcher))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ResponseEvent), 'kernel.response', object(TraceableEventDispatcher))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.response', object(ResponseEvent))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ResponseEvent), 'kernel.response')
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:129)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ResponseEvent), 'kernel.response')
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-kernel/HttpKernel.php:216)
  at Symfony\Component\HttpKernel\HttpKernel->filterResponse(object(Response), object(Request), 2)
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-kernel/HttpKernel.php:204)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 2)
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 2, false)
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-kernel/EventListener/ErrorListener.php:99)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException(object(ExceptionEvent))
     (/home/web/sitios/felinux.co/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/EventListener/CircularDependencyBreakingErrorListener.php:65)
  at Sylius\Bundle\CoreBundle\EventListener\CircularDependencyBreakingErrorListener->onKernelException(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(ExceptionEvent))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:129)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-kernel/HttpKernel.php:241)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable(object(ErrorException), object(Request), 1)
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-kernel/HttpKernel.php:134)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException(object(ErrorException), object(Request))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:77)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::{closure:Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure():71}(object(ErrorException))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/error-handler/ErrorHandler.php:538)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException(object(ErrorException))                
[1/2] ErrorException
ErrorException:
Warning: file_put_contents(/home/web/sitios/felinux.co/sylius/var/cache/dev/profiler/cf/56/c256cf): Failed to open stream: No such file or directory

  at /home/web/sitios/felinux.co/sylius/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php:170
  at Symfony\Component\HttpKernel\Profiler\FileProfilerStorage->write(object(Profile))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-kernel/Profiler/Profiler.php:97)
  at Symfony\Component\HttpKernel\Profiler\Profiler->saveProfile(object(Profile))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-kernel/EventListener/ProfilerListener.php:129)
  at Symfony\Component\HttpKernel\EventListener\ProfilerListener->onKernelTerminate(object(TerminateEvent), 'kernel.terminate', object(TraceableEventDispatcher))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(TerminateEvent), 'kernel.terminate', object(TraceableEventDispatcher))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener)), 'kernel.terminate', object(TerminateEvent))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(TerminateEvent), 'kernel.terminate')
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:129)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(TerminateEvent), 'kernel.terminate')
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-kernel/HttpKernel.php:114)
  at Symfony\Component\HttpKernel\HttpKernel->terminate(object(Request), object(Response))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/http-kernel/Kernel.php:147)
  at Symfony\Component\HttpKernel\Kernel->terminate(object(Request), object(Response))
     (/home/web/sitios/felinux.co/sylius/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:53)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (/home/web/sitios/felinux.co/sylius/vendor/autoload_runtime.php:32)
  at require_once('/home/web/sitios/felinux.co/sylius/vendor/autoload_runtime.php')
     (/home/web/sitios/felinux.co/sylius/public/index.php:5)