Deprecated: Constant E_STRICT is deprecated in /var/www/PixelForce/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /var/www/PixelForce/vendor/symfony/error-handler/ErrorHandler.php on line 76

Deprecated: App\Services\ConfigSecteurService::findFraisLivraison(): Implicitly marking parameter $secteur as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/src/Services/ConfigSecteurService.php on line 26

Deprecated: App\Services\ConfigSecteurService::findPrixMinFraisLivraisonGratuit(): Implicitly marking parameter $secteur as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/src/Services/ConfigSecteurService.php on line 31

Deprecated: App\Services\ConfigSecteurService::calculerFraisDeLivraison(): Implicitly marking parameter $secteur as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/src/Services/ConfigSecteurService.php on line 36

Deprecated: Monolog\Logger::addRecord(): Implicitly marking parameter $datetime as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/monolog/monolog/src/Monolog/Logger.php on line 312

Deprecated: Symfony\WebpackEncoreBundle\Asset\EntrypointLookupCollectionInterface::getEntrypointLookup(): Implicitly marking parameter $buildName as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/symfony/webpack-encore-bundle/src/Asset/EntrypointLookupCollectionInterface.php on line 21

Deprecated: Symfony\WebpackEncoreBundle\Asset\EntrypointLookupCollection::__construct(): Implicitly marking parameter $defaultBuildName as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/symfony/webpack-encore-bundle/src/Asset/EntrypointLookupCollection.php on line 28

Deprecated: Symfony\WebpackEncoreBundle\Asset\EntrypointLookupCollection::getEntrypointLookup(): Implicitly marking parameter $buildName as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/symfony/webpack-encore-bundle/src/Asset/EntrypointLookupCollection.php on line 34

Deprecated: Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct(): Implicitly marking parameter $registry as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php on line 46

Deprecated: Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct(): Implicitly marking parameter $expressionLanguage as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php on line 46

Deprecated: Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::__construct(): Implicitly marking parameter $twig as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/EventListener/TemplateListener.php on line 39

Deprecated: Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $language as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43

Deprecated: Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $trustResolver as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43

Deprecated: Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $roleHierarchy as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43

Deprecated: Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $tokenStorage as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43

Deprecated: Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $authChecker as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43

Deprecated: Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::__construct(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php on line 43

Deprecated: Sensio\Bundle\FrameworkExtraBundle\EventListener\IsGrantedListener::__construct(): Implicitly marking parameter $authChecker as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/EventListener/IsGrantedListener.php on line 33

Deprecated: Nucleos\DompdfBundle\Wrapper\DompdfWrapper::__construct(): Implicitly marking parameter $eventDispatcher as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/nucleos/dompdf-bundle/src/Wrapper/DompdfWrapper.php on line 34

Deprecated: Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension::renderWebpackScriptTags(): Implicitly marking parameter $packageName as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/symfony/webpack-encore-bundle/src/Twig/EntryFilesTwigExtension.php on line 51

Deprecated: Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension::renderWebpackLinkTags(): Implicitly marking parameter $packageName as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/symfony/webpack-encore-bundle/src/Twig/EntryFilesTwigExtension.php on line 57

Deprecated: Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension::renderStimulusAction(): Implicitly marking parameter $actionName as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/symfony/webpack-encore-bundle/src/Twig/StimulusTwigExtension.php on line 76

Deprecated: Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension::renderStimulusAction(): Implicitly marking parameter $eventName as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/symfony/webpack-encore-bundle/src/Twig/StimulusTwigExtension.php on line 76

Deprecated: Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension::appendStimulusAction(): Implicitly marking parameter $eventName as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/symfony/webpack-encore-bundle/src/Twig/StimulusTwigExtension.php on line 124

Deprecated: Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension::renderStimulusTarget(): Implicitly marking parameter $targetNames as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/symfony/webpack-encore-bundle/src/Twig/StimulusTwigExtension.php on line 135

Deprecated: Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension::appendStimulusTarget(): Implicitly marking parameter $targetNames as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/symfony/webpack-encore-bundle/src/Twig/StimulusTwigExtension.php on line 163

Deprecated: FOS\CKEditorBundle\Builder\JsonBuilder::setValues(): Implicitly marking parameter $pathPrefix as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/friendsofsymfony/ckeditor-bundle/src/Builder/JsonBuilder.php on line 71

Deprecated: Cocur\Slugify\Slugify::__construct(): Implicitly marking parameter $provider as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/cocur/slugify/src/Slugify.php on line 82

Deprecated: Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter::__construct(): Implicitly marking parameter $class as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/Configuration/ParamConverter.php on line 61

Deprecated: Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter::__construct(): Implicitly marking parameter $converter as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/Configuration/ParamConverter.php on line 61

Deprecated: Symfony\WebpackEncoreBundle\Asset\EntrypointLookup::__construct(): Implicitly marking parameter $cache as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/symfony/webpack-encore-bundle/src/Asset/EntrypointLookup.php on line 36

Deprecated: Symfony\WebpackEncoreBundle\Asset\EntrypointLookup::__construct(): Implicitly marking parameter $cacheKey as nullable is deprecated, the explicit nullable type must be used instead in /var/www/PixelForce/vendor/symfony/webpack-encore-bundle/src/Asset/EntrypointLookup.php on line 36
An exception has been thrown during the rendering of a template ("Failed to start the session because headers have already been sent by "/var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php" at line 43."). (500 Internal Server Error)

Symfony Exception

RuntimeException RuntimeError

HTTP 500 Internal Server Error

An exception has been thrown during the rendering of a template ("Failed to start the session because headers have already been sent by "/var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php" at line 43.").

Exceptions 2

Twig\Error\ RuntimeError

  1.                         <a class="sf-toggle btn btn-sm" data-toggle-selector="#sidebar-search" {% if tokens is defined or about is defined %}data-toggle-initial="display"{% endif %}>
  2.                             {{ include('@WebProfiler/Icon/search.svg') }} <span class="hidden-small">Search</span>
  3.                         </a>
  4.                         {{ render(controller('web_profiler.controller.profiler::searchBarAction', query=request.query.all)) }}
  5.                     </div>
  6.                 </div>
  7.                 {% if templates is defined %}
  8.                     <ul id="menu-profiler">
  1.             document.body.classList.add(localStorage.getItem('symfony/profiler/width') || 'width-normal');
  2.         </script>
  3.         ";
  4.         // line 32
  5.         yield from $this->unwrap()->yieldBlock('body'$context$blocks);
  6.         // line 33
  7.         yield "    </body>
  8. </html>
  9. ";
  10.         
  1.             }
  2.             $level ob_get_level();
  3.             ob_start();
  4.             foreach ($this->doDisplay($context$blocks) as $data) {
  5.                 if (ob_get_length()) {
  6.                     $data ob_get_clean().$data;
  7.                     ob_start();
  8.                 }
  1.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@WebProfiler/Profiler/layout.html.twig"));
  3.         $this->parent $this->loadTemplate("@WebProfiler/Profiler/base.html.twig""@WebProfiler/Profiler/layout.html.twig"1);
  4.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  7.         
  8.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1.             }
  2.             $level ob_get_level();
  3.             ob_start();
  4.             foreach ($this->doDisplay($context$blocks) as $data) {
  5.                 if (ob_get_length()) {
  6.                     $data ob_get_clean().$data;
  7.                     ob_start();
  8.                 }
  1.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@WebProfiler/Collector/cache.html.twig"));
  3.         $this->parent $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig""@WebProfiler/Collector/cache.html.twig"1);
  4.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  7.         
  8.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1.             }
  2.             $level ob_get_level();
  3.             ob_start();
  4.             foreach ($this->doDisplay($context$blocks) as $data) {
  5.                 if (ob_get_length()) {
  6.                     $data ob_get_clean().$data;
  7.                     ob_start();
  8.                 }
  1.     }
  2.     public function render(array $context): string
  3.     {
  4.         $content '';
  5.         foreach ($this->yield($context) as $data) {
  6.             $content .= $data;
  7.         }
  8.         return $content;
  9.     }
  1.         $this->template $template;
  2.     }
  3.     public function render(array $context = []): string
  4.     {
  5.         return $this->template->render($context);
  6.     }
  7.     public function display(array $context = [])
  8.     {
  9.         // using func_get_args() allows to not expose the blocks argument
  1.      * @throws SyntaxError  When an error occurred during compilation
  2.      * @throws RuntimeError When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = []): string
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.         $nonces $this->cspHandler $this->cspHandler->getNonces($request$response) : [];
  2.         $variables['csp_script_nonce'] = $nonces['csp_script_nonce'] ?? null;
  3.         $variables['csp_style_nonce'] = $nonces['csp_style_nonce'] ?? null;
  4.         $response->setContent($this->twig->render($template$variables));
  5.         return $response;
  6.     }
  7. }
  1.         if (!$profile->hasCollector($panel)) {
  2.             throw new NotFoundHttpException(sprintf('Panel "%s" is not available for token "%s".'$panel$token));
  3.         }
  4.         return $this->renderWithCspNonces($request$this->getTemplateManager()->getName($profile$panel), [
  5.             'token' => $token,
  6.             'profile' => $profile,
  7.             'collector' => $profile->getCollector($panel),
  8.             'panel' => $panel,
  9.             'page' => $page,
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/PixelForce/vendor/autoload_runtime.php') in /var/www/PixelForce/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. };

RuntimeException

Failed to start the session because headers have already been sent by "/var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php" at line 43.

  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_BOOLEAN) && 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.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getBag(string $name)
  5.     {
  6.         $bag $this->storage->getBag($name);
  7.         return method_exists($bag'getBag') ? $bag->getBag() : $bag;
  8.     }
  9.     /**
  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.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function get(string $name$default null)
  5.     {
  6.         return $this->getAttributeBag()->get($name$default);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.             $limit =
  2.             $token null;
  3.         } else {
  4.             $session $request->getSession();
  5.             $ip $request->query->get('ip'$session->get('_profiler_search_ip'));
  6.             $method $request->query->get('method'$session->get('_profiler_search_method'));
  7.             $statusCode $request->query->get('status_code'$session->get('_profiler_search_status_code'));
  8.             $url $request->query->get('url'$session->get('_profiler_search_url'));
  9.             $start $request->query->get('start'$session->get('_profiler_search_start'));
  10.             $end $request->query->get('end'$session->get('_profiler_search_end'));
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         if (!IpUtils::checkIp('127.0.0.1'$trustedProxies)) {
  2.             Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3.         }
  4.         try {
  5.             return $kernel->handle($request$type$catch);
  6.         } finally {
  7.             // restore global state
  8.             Request::setTrustedProxies($trustedProxies$trustedHeaderSet);
  9.         }
  10.     }
  1.             $subRequest->attributes->add($reference->attributes);
  2.         }
  3.         $level ob_get_level();
  4.         try {
  5.             return SubRequestHandler::handle($this->kernel$subRequestHttpKernelInterface::SUB_REQUESTfalse);
  6.         } catch (\Exception $e) {
  7.             // we dispatch the exception event to trigger the logging
  8.             // the response that comes back is ignored
  9.             if (isset($options['ignore_errors']) && $options['ignore_errors'] && $this->dispatcher) {
  10.                 $event = new ExceptionEvent($this->kernel$requestHttpKernelInterface::SUB_REQUEST$e);
  1.         if (!$request $this->requestStack->getCurrentRequest()) {
  2.             throw new \LogicException('Rendering a fragment can only be done when handling a Request.');
  3.         }
  4.         return $this->deliver($this->renderers[$renderer]->render($uri$request$options));
  5.     }
  6.     /**
  7.      * Delivers the Response as a string.
  8.      *
  1.         if (!isset($this->initialized[$renderer]) && $this->container->has($renderer)) {
  2.             $this->addRenderer($this->container->get($renderer));
  3.             $this->initialized[$renderer] = true;
  4.         }
  5.         return parent::render($uri$renderer$options);
  6.     }
  7. }
  1.     public function renderFragment($uri, array $options = []): string
  2.     {
  3.         $strategy $options['strategy'] ?? 'inline';
  4.         unset($options['strategy']);
  5.         return $this->handler->render($uri$strategy$options);
  6.     }
  7.     /**
  8.      * Renders a fragment.
  9.      *
  1.         yield " <span class=\"hidden-small\">Search</span>
  2.                         </a>
  3.                         ";
  4.         // line 111
  5.         yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("web_profiler.controller.profiler::searchBarAction", array(), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["request"]) || array_key_exists("request"$context) ? $context["request"] : (function () { throw new RuntimeError('Variable "request" does not exist.'111$this->source); })()), "query", [], "any"falsefalsefalse111), "all", [], "any"falsefalsefalse111)));
  6.         yield "
  7.                     </div>
  8.                 </div>
  9.                 ";
  1.                 }
  2.                 $level ob_get_level();
  3.                 ob_start();
  4.                 foreach ($template->$block($context$blocks) as $data) {
  5.                     if (ob_get_length()) {
  6.                         $data ob_get_clean().$data;
  7.                         ob_start();
  8.                     }
  1.             document.body.classList.add(localStorage.getItem('symfony/profiler/width') || 'width-normal');
  2.         </script>
  3.         ";
  4.         // line 32
  5.         yield from $this->unwrap()->yieldBlock('body'$context$blocks);
  6.         // line 33
  7.         yield "    </body>
  8. </html>
  9. ";
  10.         
  1.             }
  2.             $level ob_get_level();
  3.             ob_start();
  4.             foreach ($this->doDisplay($context$blocks) as $data) {
  5.                 if (ob_get_length()) {
  6.                     $data ob_get_clean().$data;
  7.                     ob_start();
  8.                 }
  1.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@WebProfiler/Profiler/layout.html.twig"));
  3.         $this->parent $this->loadTemplate("@WebProfiler/Profiler/base.html.twig""@WebProfiler/Profiler/layout.html.twig"1);
  4.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  7.         
  8.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1.             }
  2.             $level ob_get_level();
  3.             ob_start();
  4.             foreach ($this->doDisplay($context$blocks) as $data) {
  5.                 if (ob_get_length()) {
  6.                     $data ob_get_clean().$data;
  7.                     ob_start();
  8.                 }
  1.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@WebProfiler/Collector/cache.html.twig"));
  3.         $this->parent $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig""@WebProfiler/Collector/cache.html.twig"1);
  4.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  7.         
  8.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1.             }
  2.             $level ob_get_level();
  3.             ob_start();
  4.             foreach ($this->doDisplay($context$blocks) as $data) {
  5.                 if (ob_get_length()) {
  6.                     $data ob_get_clean().$data;
  7.                     ob_start();
  8.                 }
  1.     }
  2.     public function render(array $context): string
  3.     {
  4.         $content '';
  5.         foreach ($this->yield($context) as $data) {
  6.             $content .= $data;
  7.         }
  8.         return $content;
  9.     }
  1.         $this->template $template;
  2.     }
  3.     public function render(array $context = []): string
  4.     {
  5.         return $this->template->render($context);
  6.     }
  7.     public function display(array $context = [])
  8.     {
  9.         // using func_get_args() allows to not expose the blocks argument
  1.      * @throws SyntaxError  When an error occurred during compilation
  2.      * @throws RuntimeError When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = []): string
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.         $nonces $this->cspHandler $this->cspHandler->getNonces($request$response) : [];
  2.         $variables['csp_script_nonce'] = $nonces['csp_script_nonce'] ?? null;
  3.         $variables['csp_style_nonce'] = $nonces['csp_style_nonce'] ?? null;
  4.         $response->setContent($this->twig->render($template$variables));
  5.         return $response;
  6.     }
  7. }
  1.         if (!$profile->hasCollector($panel)) {
  2.             throw new NotFoundHttpException(sprintf('Panel "%s" is not available for token "%s".'$panel$token));
  3.         }
  4.         return $this->renderWithCspNonces($request$this->getTemplateManager()->getName($profile$panel), [
  5.             'token' => $token,
  6.             'profile' => $profile,
  7.             'collector' => $profile->getCollector($panel),
  8.             'panel' => $panel,
  9.             'page' => $page,
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/PixelForce/vendor/autoload_runtime.php') in /var/www/PixelForce/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] RuntimeError
Twig\Error\RuntimeError:
An exception has been thrown during the rendering of a template ("Failed to start the session because headers have already been sent by "/var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php" at line 43.").

  at /var/www/PixelForce/vendor/symfony/web-profiler-bundle/Resources/views/Profiler/layout.html.twig:111
  at Twig\Template->yieldBlock()
     (/var/www/PixelForce/var/cache/dev/twig/c0/c0c8f712a8334ff25a078a6516c061fc.php:92)
  at __TwigTemplate_e3a70247d98f4c510ee6e0cf7e12f797->doDisplay()
     (/var/www/PixelForce/vendor/twig/twig/src/Template.php:360)
  at Twig\Template->yield()
     (/var/www/PixelForce/var/cache/dev/twig/cc/cc78739b685cfcee7594e37d309f9b4f.php:51)
  at __TwigTemplate_b5bb263a324f00c062cc21ca0daee532->doDisplay()
     (/var/www/PixelForce/vendor/twig/twig/src/Template.php:360)
  at Twig\Template->yield()
     (/var/www/PixelForce/var/cache/dev/twig/f1/f10689dc58489d97da498167b11eb6a0.php:51)
  at __TwigTemplate_f4432a00e2ce139a3c87dfb1e6eb79f6->doDisplay()
     (/var/www/PixelForce/vendor/twig/twig/src/Template.php:360)
  at Twig\Template->yield()
     (/var/www/PixelForce/vendor/twig/twig/src/Template.php:335)
  at Twig\Template->render()
     (/var/www/PixelForce/vendor/twig/twig/src/TemplateWrapper.php:38)
  at Twig\TemplateWrapper->render()
     (/var/www/PixelForce/vendor/twig/twig/src/Environment.php:307)
  at Twig\Environment->render()
     (/var/www/PixelForce/vendor/symfony/web-profiler-bundle/Controller/ProfilerController.php:387)
  at Symfony\Bundle\WebProfilerBundle\Controller\ProfilerController->renderWithCspNonces()
     (/var/www/PixelForce/vendor/symfony/web-profiler-bundle/Controller/ProfilerController.php:109)
  at Symfony\Bundle\WebProfilerBundle\Controller\ProfilerController->panelAction()
     (/var/www/PixelForce/vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/var/www/PixelForce/vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/var/www/PixelForce/vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/var/www/PixelForce/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (/var/www/PixelForce/vendor/autoload_runtime.php:35)
  at require_once('/var/www/PixelForce/vendor/autoload_runtime.php')
     (/var/www/PixelForce/public/index.php:5)                
[1/2] RuntimeException
RuntimeException:
Failed to start the session because headers have already been sent by "/var/www/PixelForce/vendor/sensio/framework-extra-bundle/src/EventListener/SecurityListener.php" at line 43.

  at /var/www/PixelForce/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:145
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (/var/www/PixelForce/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:352)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag()
     (/var/www/PixelForce/vendor/symfony/http-foundation/Session/Session.php:261)
  at Symfony\Component\HttpFoundation\Session\Session->getBag()
     (/var/www/PixelForce/vendor/symfony/http-foundation/Session/Session.php:283)
  at Symfony\Component\HttpFoundation\Session\Session->getAttributeBag()
     (/var/www/PixelForce/vendor/symfony/http-foundation/Session/Session.php:77)
  at Symfony\Component\HttpFoundation\Session\Session->get()
     (/var/www/PixelForce/vendor/symfony/web-profiler-bundle/Controller/ProfilerController.php:191)
  at Symfony\Bundle\WebProfilerBundle\Controller\ProfilerController->searchBarAction()
     (/var/www/PixelForce/vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/var/www/PixelForce/vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/var/www/PixelForce/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:86)
  at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle()
     (/var/www/PixelForce/vendor/symfony/http-kernel/Fragment/InlineFragmentRenderer.php:80)
  at Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer->render()
     (/var/www/PixelForce/vendor/symfony/http-kernel/Fragment/FragmentHandler.php:85)
  at Symfony\Component\HttpKernel\Fragment\FragmentHandler->render()
     (/var/www/PixelForce/vendor/symfony/http-kernel/DependencyInjection/LazyLoadingFragmentHandler.php:49)
  at Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler->render()
     (/var/www/PixelForce/vendor/symfony/twig-bridge/Extension/HttpKernelRuntime.php:46)
  at Symfony\Bridge\Twig\Extension\HttpKernelRuntime->renderFragment()
     (/var/www/PixelForce/var/cache/dev/twig/cc/cc78739b685cfcee7594e37d309f9b4f.php:117)
  at __TwigTemplate_b5bb263a324f00c062cc21ca0daee532->block_body()
     (/var/www/PixelForce/vendor/twig/twig/src/Template.php:430)
  at Twig\Template->yieldBlock()
     (/var/www/PixelForce/var/cache/dev/twig/c0/c0c8f712a8334ff25a078a6516c061fc.php:92)
  at __TwigTemplate_e3a70247d98f4c510ee6e0cf7e12f797->doDisplay()
     (/var/www/PixelForce/vendor/twig/twig/src/Template.php:360)
  at Twig\Template->yield()
     (/var/www/PixelForce/var/cache/dev/twig/cc/cc78739b685cfcee7594e37d309f9b4f.php:51)
  at __TwigTemplate_b5bb263a324f00c062cc21ca0daee532->doDisplay()
     (/var/www/PixelForce/vendor/twig/twig/src/Template.php:360)
  at Twig\Template->yield()
     (/var/www/PixelForce/var/cache/dev/twig/f1/f10689dc58489d97da498167b11eb6a0.php:51)
  at __TwigTemplate_f4432a00e2ce139a3c87dfb1e6eb79f6->doDisplay()
     (/var/www/PixelForce/vendor/twig/twig/src/Template.php:360)
  at Twig\Template->yield()
     (/var/www/PixelForce/vendor/twig/twig/src/Template.php:335)
  at Twig\Template->render()
     (/var/www/PixelForce/vendor/twig/twig/src/TemplateWrapper.php:38)
  at Twig\TemplateWrapper->render()
     (/var/www/PixelForce/vendor/twig/twig/src/Environment.php:307)
  at Twig\Environment->render()
     (/var/www/PixelForce/vendor/symfony/web-profiler-bundle/Controller/ProfilerController.php:387)
  at Symfony\Bundle\WebProfilerBundle\Controller\ProfilerController->renderWithCspNonces()
     (/var/www/PixelForce/vendor/symfony/web-profiler-bundle/Controller/ProfilerController.php:109)
  at Symfony\Bundle\WebProfilerBundle\Controller\ProfilerController->panelAction()
     (/var/www/PixelForce/vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/var/www/PixelForce/vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/var/www/PixelForce/vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/var/www/PixelForce/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (/var/www/PixelForce/vendor/autoload_runtime.php:35)
  at require_once('/var/www/PixelForce/vendor/autoload_runtime.php')
     (/var/www/PixelForce/public/index.php:5)