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 /home/v0-dev/public_html/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 /home/v0-dev/public_html/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 /home/v0-dev/public_html/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 /home/v0-dev/public_html/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 /home/v0-dev/public_html/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 /home/v0-dev/public_html/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 /home/v0-dev/public_html/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 /home/v0-dev/public_html/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 /home/v0-dev/public_html/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 /home/v0-dev/public_html/vendor/sensio/framework-extra-bundle/src/EventListener/IsGrantedListener.php on line 33

Deprecated: Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension::renderWebpackScriptTags(): Implicitly marking parameter $packageName as nullable is deprecated, the explicit nullable type must be used instead in /home/v0-dev/public_html/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 /home/v0-dev/public_html/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 /home/v0-dev/public_html/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 /home/v0-dev/public_html/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 /home/v0-dev/public_html/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 /home/v0-dev/public_html/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 /home/v0-dev/public_html/vendor/symfony/webpack-encore-bundle/src/Twig/StimulusTwigExtension.php on line 163

Deprecated: Symfony\WebpackEncoreBundle\Asset\EntrypointLookupCollectionInterface::getEntrypointLookup(): Implicitly marking parameter $buildName as nullable is deprecated, the explicit nullable type must be used instead in /home/v0-dev/public_html/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 /home/v0-dev/public_html/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 /home/v0-dev/public_html/vendor/symfony/webpack-encore-bundle/src/Asset/EntrypointLookupCollection.php on line 34

Deprecated: Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter::__construct(): Implicitly marking parameter $class as nullable is deprecated, the explicit nullable type must be used instead in /home/v0-dev/public_html/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 /home/v0-dev/public_html/vendor/sensio/framework-extra-bundle/src/Configuration/ParamConverter.php on line 61
An exception has been thrown during the rendering of a template ("Failed to start the session because headers have already been sent by "/home/v0-dev/public_html/vendor/symfony/webpack-encore-bundle/src/Twig/EntryFilesTwigExtension.php" at line 57."). (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 "/home/v0-dev/public_html/vendor/symfony/webpack-encore-bundle/src/Twig/EntryFilesTwigExtension.php" at line 57.").

Exceptions 2

Twig\Error\ RuntimeError

Show exception properties
Twig\Error\RuntimeError {#1309
  -lineno: 1
  -name: "_common/flashes.html.twig"
  -rawMessage: "An exception has been thrown during the rendering of a template ("Failed to start the session because headers have already been sent by "/home/v0-dev/public_html/vendor/symfony/webpack-encore-bundle/src/Twig/EntryFilesTwigExtension.php" at line 57.")."
  -sourcePath: "/home/v0-dev/public_html/templates/_common/flashes.html.twig"
  -sourceCode: """
    {% for message in app.flashes('success') %}\n
        <div class="alert alert-success" style="text-align: center;">\n
            {{ message }}\n
        </div>\n
    {% endfor %}\n
    {% for message in app.flashes('danger') %}\n
        <div class="alert alert-danger" style="text-align: center;">\n
            {{ message }}\n
        </div>\n
    {% endfor %}\n
    {% for message in app.flashes('debug') %}\n
        <div class="alert alert-info" style="text-align: center;">\n
            {{ message }}\n
        </div>\n
    {% endfor %}\n
    """
}
  1. {% for message in app.flashes('success') %}
  2. <div class="alert alert-success" style="text-align: center;">
  3. {{ message }}
  4. </div>
  5. {% endfor %}
  6. {% for message in app.flashes('danger') %}
  1. return $this->blocks;
  2. }
  3. public function display(array $context, array $blocks = []): void
  4. {
  5. foreach ($this->yield($context, $blocks) as $data) {
  6. echo $data;
  7. }
  8. }
  9. public function render(array $context): string
  1. ob_start();
  2. } else {
  3. ob_start(function () { return ''; });
  4. }
  5. try {
  6. $this->display($context);
  7. } catch (\Throwable $e) {
  8. while (ob_get_level() > $level) {
  9. ob_end_clean();
  10. }
  1. yield from $this->template->yieldBlock($name, $context);
  2. }
  3. public function render(array $context = []): string
  4. {
  5. return $this->template->render($context);
  6. }
  7. /**
  8. * @return void
  9. */
  1. if ($isSandboxed) {
  2. $loaded->unwrap()->checkSecurity();
  3. }
  4. return $loaded->render($variables);
  5. } finally {
  6. if ($isSandboxed && !$alreadySandboxed) {
  7. $sandbox->disableSandbox();
  8. }
  9. }
  1. yield "
  2. <div class=\"page\">
  3. <div class=\"site-width\">
  4. ";
  5. // line 25
  6. yield Twig\Extension\CoreExtension::include($this->env, $context, "_common/flashes.html.twig");
  7. yield "
  8. <h1>";
  9. // line 26
  10. yield from $this->unwrap()->yieldBlock('h1', $context, $blocks);
  11. yield "</h1>
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "site/error/show.html.twig"));
  3. $this->parent = $this->loadTemplate("site/site.html.twig", "site/error/show.html.twig", 1);
  4. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  5. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  6. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. return $this->blocks;
  2. }
  3. public function display(array $context, array $blocks = []): void
  4. {
  5. foreach ($this->yield($context, $blocks) as $data) {
  6. echo $data;
  7. }
  8. }
  9. public function render(array $context): string
  1. ob_start();
  2. } else {
  3. ob_start(function () { return ''; });
  4. }
  5. try {
  6. $this->display($context);
  7. } catch (\Throwable $e) {
  8. while (ob_get_level() > $level) {
  9. ob_end_clean();
  10. }
  1. yield from $this->template->yieldBlock($name, $context);
  2. }
  3. public function render(array $context = []): string
  4. {
  5. return $this->template->render($context);
  6. }
  7. /**
  8. * @return void
  9. */
  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. }
  2. if ('dev' === $appEnv) {
  3. // Customize your response object to display the exception details
  4. $response = new Response();
  5. $response->setContent($this->twig->render('site/error/show.html.twig', [
  6. 'message' => $exception->getMessage(),
  7. ]));
  8. // HttpExceptionInterface is a special type of exception that
  9. // holds status code and header details
  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);
  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/v0-dev/public_html/vendor/symfony/error-handler/ErrorHandler.php :: {closure:Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure():78} (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()

RuntimeException

Failed to start the session because headers have already been sent by "/home/v0-dev/public_html/vendor/symfony/webpack-encore-bundle/src/Twig/EntryFilesTwigExtension.php" at line 57.

  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. * Gets the flashbag interface.
  3. */
  4. public function getFlashBag(): FlashBagInterface
  5. {
  6. return $this->getBag($this->flashName);
  7. }
  8. /**
  9. * Gets the attributebag interface.
  10. *
  1. if (null === $types || '' === $types || [] === $types) {
  2. return $session->getFlashBag()->all();
  3. }
  4. if (\is_string($types)) {
  5. return $session->getFlashBag()->get($types);
  6. }
  7. $result = [];
  8. foreach ($types as $type) {
  9. $result[$type] = $session->getFlashBag()->get($type);
  1. }
  2. // Some objects throw exceptions when they have __call, and the method we try
  3. // to call is not supported. If ignoreStrictCheck is true, we should return null.
  4. try {
  5. $ret = $object->$method(...$arguments);
  6. } catch (\BadMethodCallException $e) {
  7. if ($call && ($ignoreStrictCheck || !$env->isStrictVariables())) {
  8. return;
  9. }
  10. throw $e;
  1. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "_common/flashes.html.twig"));
  3. // line 1
  4. $context['_parent'] = $context;
  5. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1, $this->source); })()), "flashes", ["success"], "method", false, false, false, 1));
  6. foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  7. // line 2
  8. yield " <div class=\"alert alert-success\" style=\"text-align: center;\">
  9. ";
  10. // line 3
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. return $this->blocks;
  2. }
  3. public function display(array $context, array $blocks = []): void
  4. {
  5. foreach ($this->yield($context, $blocks) as $data) {
  6. echo $data;
  7. }
  8. }
  9. public function render(array $context): string
  1. ob_start();
  2. } else {
  3. ob_start(function () { return ''; });
  4. }
  5. try {
  6. $this->display($context);
  7. } catch (\Throwable $e) {
  8. while (ob_get_level() > $level) {
  9. ob_end_clean();
  10. }
  1. yield from $this->template->yieldBlock($name, $context);
  2. }
  3. public function render(array $context = []): string
  4. {
  5. return $this->template->render($context);
  6. }
  7. /**
  8. * @return void
  9. */
  1. if ($isSandboxed) {
  2. $loaded->unwrap()->checkSecurity();
  3. }
  4. return $loaded->render($variables);
  5. } finally {
  6. if ($isSandboxed && !$alreadySandboxed) {
  7. $sandbox->disableSandbox();
  8. }
  9. }
  1. yield "
  2. <div class=\"page\">
  3. <div class=\"site-width\">
  4. ";
  5. // line 25
  6. yield Twig\Extension\CoreExtension::include($this->env, $context, "_common/flashes.html.twig");
  7. yield "
  8. <h1>";
  9. // line 26
  10. yield from $this->unwrap()->yieldBlock('h1', $context, $blocks);
  11. yield "</h1>
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "site/error/show.html.twig"));
  3. $this->parent = $this->loadTemplate("site/site.html.twig", "site/error/show.html.twig", 1);
  4. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  5. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  6. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. return $this->blocks;
  2. }
  3. public function display(array $context, array $blocks = []): void
  4. {
  5. foreach ($this->yield($context, $blocks) as $data) {
  6. echo $data;
  7. }
  8. }
  9. public function render(array $context): string
  1. ob_start();
  2. } else {
  3. ob_start(function () { return ''; });
  4. }
  5. try {
  6. $this->display($context);
  7. } catch (\Throwable $e) {
  8. while (ob_get_level() > $level) {
  9. ob_end_clean();
  10. }
  1. yield from $this->template->yieldBlock($name, $context);
  2. }
  3. public function render(array $context = []): string
  4. {
  5. return $this->template->render($context);
  6. }
  7. /**
  8. * @return void
  9. */
  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. }
  2. if ('dev' === $appEnv) {
  3. // Customize your response object to display the exception details
  4. $response = new Response();
  5. $response->setContent($this->twig->render('site/error/show.html.twig', [
  6. 'message' => $exception->getMessage(),
  7. ]));
  8. // HttpExceptionInterface is a special type of exception that
  9. // holds status code and header details
  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);
  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/v0-dev/public_html/vendor/symfony/error-handler/ErrorHandler.php :: {closure:Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure():78} (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()

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 "/home/v0-dev/public_html/vendor/symfony/webpack-encore-bundle/src/Twig/EntryFilesTwigExtension.php" at line 57.").

  at /home/v0-dev/public_html/templates/_common/flashes.html.twig:1
  at Twig\Template->yield()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Template.php:344)
  at Twig\Template->display()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Template.php:359)
  at Twig\Template->render()
     (/home/v0-dev/public_html/vendor/twig/twig/src/TemplateWrapper.php:51)
  at Twig\TemplateWrapper->render()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Extension/CoreExtension.php:1493)
  at Twig\Extension\CoreExtension::include()
     (/home/v0-dev/public_html/var/cache/dev/twig/3d/3d2442e0a03c3a95b7e1d6a4df20a906.php:99)
  at __TwigTemplate_e3f00dbcab5818e3a4cf12433e136f3c->doDisplay()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Template.php:388)
  at Twig\Template->yield()
     (/home/v0-dev/public_html/var/cache/dev/twig/22/22f81da1de1ef9c23dd861ba18579f80.php:54)
  at __TwigTemplate_c80d1fa3c85c5a94771a9dbca3a7e992->doDisplay()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Template.php:388)
  at Twig\Template->yield()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Template.php:344)
  at Twig\Template->display()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Template.php:359)
  at Twig\Template->render()
     (/home/v0-dev/public_html/vendor/twig/twig/src/TemplateWrapper.php:51)
  at Twig\TemplateWrapper->render()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Environment.php:334)
  at Twig\Environment->render()
     (/home/v0-dev/public_html/src/EventListener/ExceptionListener.php:65)
  at App\EventListener\ExceptionListener->__invoke()
     (/home/v0-dev/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:116)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/home/v0-dev/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:220)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/home/v0-dev/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/home/v0-dev/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:139)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/home/v0-dev/public_html/vendor/symfony/http-kernel/HttpKernel.php:239)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/home/v0-dev/public_html/vendor/symfony/http-kernel/HttpKernel.php:132)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException()
     (/home/v0-dev/public_html/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:84)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::{closure:Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure():78}()
     (/home/v0-dev/public_html/vendor/symfony/error-handler/ErrorHandler.php:538)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException()                
[1/2] RuntimeException
RuntimeException:
Failed to start the session because headers have already been sent by "/home/v0-dev/public_html/vendor/symfony/webpack-encore-bundle/src/Twig/EntryFilesTwigExtension.php" at line 57.

  at /home/v0-dev/public_html/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:132
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (/home/v0-dev/public_html/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:311)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag()
     (/home/v0-dev/public_html/vendor/symfony/http-foundation/Session/Session.php:222)
  at Symfony\Component\HttpFoundation\Session\Session->getBag()
     (/home/v0-dev/public_html/vendor/symfony/http-foundation/Session/Session.php:232)
  at Symfony\Component\HttpFoundation\Session\Session->getFlashBag()
     (/home/v0-dev/public_html/vendor/symfony/twig-bridge/AppVariable.php:200)
  at Symfony\Bridge\Twig\AppVariable->getFlashes()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Extension/CoreExtension.php:1882)
  at Twig\Extension\CoreExtension::getAttribute()
     (/home/v0-dev/public_html/var/cache/dev/twig/e2/e2682edc6fe1d2018ae057537fb41432.php:49)
  at __TwigTemplate_14a30622d8d2425db42ec75e72279362->doDisplay()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Template.php:388)
  at Twig\Template->yield()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Template.php:344)
  at Twig\Template->display()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Template.php:359)
  at Twig\Template->render()
     (/home/v0-dev/public_html/vendor/twig/twig/src/TemplateWrapper.php:51)
  at Twig\TemplateWrapper->render()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Extension/CoreExtension.php:1493)
  at Twig\Extension\CoreExtension::include()
     (/home/v0-dev/public_html/var/cache/dev/twig/3d/3d2442e0a03c3a95b7e1d6a4df20a906.php:99)
  at __TwigTemplate_e3f00dbcab5818e3a4cf12433e136f3c->doDisplay()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Template.php:388)
  at Twig\Template->yield()
     (/home/v0-dev/public_html/var/cache/dev/twig/22/22f81da1de1ef9c23dd861ba18579f80.php:54)
  at __TwigTemplate_c80d1fa3c85c5a94771a9dbca3a7e992->doDisplay()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Template.php:388)
  at Twig\Template->yield()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Template.php:344)
  at Twig\Template->display()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Template.php:359)
  at Twig\Template->render()
     (/home/v0-dev/public_html/vendor/twig/twig/src/TemplateWrapper.php:51)
  at Twig\TemplateWrapper->render()
     (/home/v0-dev/public_html/vendor/twig/twig/src/Environment.php:334)
  at Twig\Environment->render()
     (/home/v0-dev/public_html/src/EventListener/ExceptionListener.php:65)
  at App\EventListener\ExceptionListener->__invoke()
     (/home/v0-dev/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:116)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/home/v0-dev/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:220)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/home/v0-dev/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/home/v0-dev/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:139)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/home/v0-dev/public_html/vendor/symfony/http-kernel/HttpKernel.php:239)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/home/v0-dev/public_html/vendor/symfony/http-kernel/HttpKernel.php:132)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException()
     (/home/v0-dev/public_html/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:84)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::{closure:Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure():78}()
     (/home/v0-dev/public_html/vendor/symfony/error-handler/ErrorHandler.php:538)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException()