ErrorException {#1319
  #message: "Warning: file_get_contents(competitions/1/standings/standing.json): Failed to open stream: No such file or directory"
  #code: 0
  #file: "/home/betfora/www/bff2026/src/Controller/RankingController.php"
  #line: 28
  #severity: E_WARNING
  trace: {
    /home/betfora/www/bff2026/src/Controller/RankingController.php:28 {
      App\Controller\RankingController->show(EntityManagerInterface $em, Competition $competition): Response …
      › $standing_url = 'competitions/' . $competition->getId() . '/standings/standing.json';$standing_json = file_get_contents($standing_url, false, stream_context_create($arrContextOptions));$espn_standings = json_decode($standing_json, true);
    }
    /home/betfora/www/bff2026/vendor/symfony/http-kernel/HttpKernel.php:183 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // call controller$response = $controller(...$arguments);arguments: {
        $em: Container1hVUttS\EntityManagerGhost614a58f {#234 …}
        $competition: App\Entity\Competition {#1119 …}
      }
    }
    /home/betfora/www/bff2026/vendor/symfony/http-kernel/HttpKernel.php:76 {
      Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
      › try {    return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#10 …}
        $type: 1
      }
    }
    /home/betfora/www/bff2026/vendor/symfony/http-kernel/Kernel.php:182 {
      Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
      › try {    return $this->getHttpKernel()->handle($request, $type, $catch);} finally {
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#10 …}
        $type: 1
        $catch: true
      }
    }
    /home/betfora/www/bff2026/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
      Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
      › {    $response = $this->kernel->handle($this->request);arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#10 …}
      }
    }
    /home/betfora/www/bff2026/vendor/autoload_runtime.php:29 {
      require_once …
      ›         ->getRunner($app)        ->run());
    }
    /home/betfora/www/bff2026/public/index.php:5 {
      › 
      › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
        "/home/betfora/www/bff2026/vendor/autoload_runtime.php"
      }
    }
  }
}
An exception has been thrown during the rendering of a template ("Failed to start the session because headers have already been sent by "/home/betfora/www/bff2026/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 175."). (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/betfora/www/bff2026/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 175.").

Exceptions 2

Twig\Error\ RuntimeError

Show exception properties
Twig\Error\RuntimeError {#1956
  -lineno: 1
  -name: "_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/betfora/www/bff2026/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 175.")."
  -sourcePath: "/home/betfora/www/bff2026/templates/_flashes.html.twig"
  -sourceCode: """
    {% for message in app.flashes('success') %}\n
        <div\n
                class="fixed top-5 right-5 flex items-center w-full max-w-xs p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800"\n
                role="alert"\n
        >\n
            <div class="inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200">\n
                <svg class="w-5 h-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">\n
                    <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"/>\n
                </svg>\n
                <span class="sr-only">Check icon</span>\n
            </div>\n
            <div class="ms-3 text-sm font-normal">{{ message }}</div>\n
            <button\n
                    type="button"\n
                    class="ms-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"\n
                    aria-label="Close"\n
            >\n
                <span class="sr-only">Close</span>\n
                <svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">\n
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>\n
                </svg>\n
            </button>\n
        </div>\n
    {% endfor %}
    """
}
  1. {% for message in app.flashes('success') %}
  2.     <div
  3.             class="fixed top-5 right-5 flex items-center w-full max-w-xs p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800"
  4.             role="alert"
  5.     >
  6.         <div class="inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200">
  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
in vendor/twig/twig/src/Template.php -> display (line 358)
  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.     ) {
  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.             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 "        <!-- flash -->
  2.         <main class=\"flex-fill\">
  3.             <div id=\"flash-container\">
  4.                 ";
  5.         // line 112
  6.         yield Twig\Extension\CoreExtension::include($this->env$context"_flashes.html.twig");
  7.         yield "
  8.             </div>
  9.             ";
  10.         // line 114
  11.         yield from $this->unwrap()->yieldBlock('body'$context$blocks);
in vendor/twig/twig/src/Template.php -> doDisplay (line 387)
  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""ranking/show.html.twig"));
  3.         $this->parent $this->loadTemplate("front.html.twig""ranking/show.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);
in vendor/twig/twig/src/Template.php -> doDisplay (line 387)
  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
in vendor/twig/twig/src/Template.php -> display (line 358)
  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.     ) {
  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.         if (null !== $block) {
  2.             return $this->container->get('twig')->load($view)->renderBlock($block$parameters);
  3.         }
  4.         return $this->container->get('twig')->render($view$parameters);
  5.     }
  6.     private function doRender(string $view, ?string $block, array $parameters, ?Response $responsestring $method): Response
  7.     {
  8.         $content $this->doRenderView($view$block$parameters$method);
  1.         return $this->container->get('twig')->render($view$parameters);
  2.     }
  3.     private function doRender(string $view, ?string $block, array $parameters, ?Response $responsestring $method): Response
  4.     {
  5.         $content $this->doRenderView($view$block$parameters$method);
  6.         $response ??= new Response();
  7.         if (200 === $response->getStatusCode()) {
  8.             foreach ($parameters as $v) {
  9.                 if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
  1.      * If an invalid form is found in the list of parameters, a 422 status code is returned.
  2.      * Forms found in parameters are auto-cast to form views.
  3.      */
  4.     protected function render(string $view, array $parameters = [], ?Response $response null): Response
  5.     {
  6.         return $this->doRender($viewnull$parameters$response__FUNCTION__);
  7.     }
  8.     /**
  9.      * Renders a block in a view.
  10.      *
AbstractController->render('ranking/show.html.twig', array('competition' => object(Competition), 'ranking' => array())) in src/Controller/RankingController.php (line 101)
  1.     } catch (Exception $e) {
  2.       dump($e);
  3.       //
  4.     }
  5.     return $this->render('ranking/show.html.twig', [
  6.       'competition' => $competition,
  7.       'ranking' => $ranking,
  8.       ]);
  9.   }
  10.   public function FindStandingCompetitor($competitors$api_id) : ?array{
  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$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  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.         $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.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/betfora/www/bff2026/vendor/autoload_runtime.php') in 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 "/home/betfora/www/bff2026/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 175.

  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""_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"falsefalsefalse1));
  6.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  7.             // line 2
  8.             yield "    <div
  9.             class=\"fixed top-5 right-5 flex items-center w-full max-w-xs p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800\"
  10.             role=\"alert\"
in vendor/twig/twig/src/Template.php -> doDisplay (line 387)
  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
in vendor/twig/twig/src/Template.php -> display (line 358)
  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.     ) {
  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.             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 "        <!-- flash -->
  2.         <main class=\"flex-fill\">
  3.             <div id=\"flash-container\">
  4.                 ";
  5.         // line 112
  6.         yield Twig\Extension\CoreExtension::include($this->env$context"_flashes.html.twig");
  7.         yield "
  8.             </div>
  9.             ";
  10.         // line 114
  11.         yield from $this->unwrap()->yieldBlock('body'$context$blocks);
in vendor/twig/twig/src/Template.php -> doDisplay (line 387)
  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""ranking/show.html.twig"));
  3.         $this->parent $this->loadTemplate("front.html.twig""ranking/show.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);
in vendor/twig/twig/src/Template.php -> doDisplay (line 387)
  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
in vendor/twig/twig/src/Template.php -> display (line 358)
  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.     ) {
  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.         if (null !== $block) {
  2.             return $this->container->get('twig')->load($view)->renderBlock($block$parameters);
  3.         }
  4.         return $this->container->get('twig')->render($view$parameters);
  5.     }
  6.     private function doRender(string $view, ?string $block, array $parameters, ?Response $responsestring $method): Response
  7.     {
  8.         $content $this->doRenderView($view$block$parameters$method);
  1.         return $this->container->get('twig')->render($view$parameters);
  2.     }
  3.     private function doRender(string $view, ?string $block, array $parameters, ?Response $responsestring $method): Response
  4.     {
  5.         $content $this->doRenderView($view$block$parameters$method);
  6.         $response ??= new Response();
  7.         if (200 === $response->getStatusCode()) {
  8.             foreach ($parameters as $v) {
  9.                 if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
  1.      * If an invalid form is found in the list of parameters, a 422 status code is returned.
  2.      * Forms found in parameters are auto-cast to form views.
  3.      */
  4.     protected function render(string $view, array $parameters = [], ?Response $response null): Response
  5.     {
  6.         return $this->doRender($viewnull$parameters$response__FUNCTION__);
  7.     }
  8.     /**
  9.      * Renders a block in a view.
  10.      *
AbstractController->render('ranking/show.html.twig', array('competition' => object(Competition), 'ranking' => array())) in src/Controller/RankingController.php (line 101)
  1.     } catch (Exception $e) {
  2.       dump($e);
  3.       //
  4.     }
  5.     return $this->render('ranking/show.html.twig', [
  6.       'competition' => $competition,
  7.       'ranking' => $ranking,
  8.       ]);
  9.   }
  10.   public function FindStandingCompetitor($competitors$api_id) : ?array{
  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$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  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.         $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.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/betfora/www/bff2026/vendor/autoload_runtime.php') in 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. };

Logs 1

Level Channel Message
CRITICAL 01:27:33 request Uncaught PHP Exception 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/betfora/www/bff2026/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 175.")." at _flashes.html.twig line 1
{
    "exception": {}
}

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/betfora/www/bff2026/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 175.").

  at templates/_flashes.html.twig:1
  at Twig\Template->yield(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)), array())
     (vendor/twig/twig/src/Template.php:343)
  at Twig\Template->display(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)))
     (vendor/twig/twig/src/Template.php:358)
  at Twig\Template->render(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)))
     (vendor/twig/twig/src/TemplateWrapper.php:35)
  at Twig\TemplateWrapper->render(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)))
     (vendor/twig/twig/src/Extension/CoreExtension.php:1481)
  at Twig\Extension\CoreExtension::include(object(Environment), array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)), '_flashes.html.twig')
     (var/cache/dev/twig/e9/e92d04487db3991fb43fd2b7090d9281.php:209)
  at __TwigTemplate_a186ad43b42505cd70fd4e4e54550594->doDisplay(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_edea3905232c40865bcb7ba1994d941d), 'block_title'), 'body' => array(object(__TwigTemplate_edea3905232c40865bcb7ba1994d941d), 'block_body'), 'scripts' => array(object(__TwigTemplate_a186ad43b42505cd70fd4e4e54550594), 'block_scripts')))
     (vendor/twig/twig/src/Template.php:387)
  at Twig\Template->yield(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_edea3905232c40865bcb7ba1994d941d), 'block_title'), 'body' => array(object(__TwigTemplate_edea3905232c40865bcb7ba1994d941d), 'block_body'), 'scripts' => array(object(__TwigTemplate_a186ad43b42505cd70fd4e4e54550594), 'block_scripts')))
     (var/cache/dev/twig/e2/e2c5be77f4aae8f83ae6551c961135ed.php:54)
  at __TwigTemplate_edea3905232c40865bcb7ba1994d941d->doDisplay(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_edea3905232c40865bcb7ba1994d941d), 'block_title'), 'body' => array(object(__TwigTemplate_edea3905232c40865bcb7ba1994d941d), 'block_body')))
     (vendor/twig/twig/src/Template.php:387)
  at Twig\Template->yield(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_edea3905232c40865bcb7ba1994d941d), 'block_title'), 'body' => array(object(__TwigTemplate_edea3905232c40865bcb7ba1994d941d), 'block_body')))
     (vendor/twig/twig/src/Template.php:343)
  at Twig\Template->display(array('competition' => object(Competition), 'ranking' => array()))
     (vendor/twig/twig/src/Template.php:358)
  at Twig\Template->render(array('competition' => object(Competition), 'ranking' => array()))
     (vendor/twig/twig/src/TemplateWrapper.php:35)
  at Twig\TemplateWrapper->render(array('competition' => object(Competition), 'ranking' => array()))
     (vendor/twig/twig/src/Environment.php:320)
  at Twig\Environment->render('ranking/show.html.twig', array('competition' => object(Competition), 'ranking' => array()))
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:431)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRenderView('ranking/show.html.twig', null, array('competition' => object(Competition), 'ranking' => array()), 'render')
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:436)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRender('ranking/show.html.twig', null, array('competition' => object(Competition), 'ranking' => array()), null, 'render')
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:250)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render('ranking/show.html.twig', array('competition' => object(Competition), 'ranking' => array()))
     (src/Controller/RankingController.php:101)
  at App\Controller\RankingController->show(object(EntityManagerGhost614a58f), object(Competition))
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:182)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/home/betfora/www/bff2026/vendor/autoload_runtime.php')
     (public/index.php:5)                
[1/2] RuntimeException
RuntimeException:
Failed to start the session because headers have already been sent by "/home/betfora/www/bff2026/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 175.

  at vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:116
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:282)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('flashes')
     (vendor/symfony/http-foundation/Session/Session.php:201)
  at Symfony\Component\HttpFoundation\Session\Session->getBag('flashes')
     (vendor/symfony/http-foundation/Session/Session.php:211)
  at Symfony\Component\HttpFoundation\Session\Session->getFlashBag()
     (vendor/symfony/twig-bridge/AppVariable.php:185)
  at Symfony\Bridge\Twig\AppVariable->getFlashes('success')
     (vendor/twig/twig/src/Extension/CoreExtension.php:1863)
  at Twig\Extension\CoreExtension::getAttribute(object(Environment), object(Source), object(AppVariable), 'flashes', array('success'), 'method', false, false, false, 1)
     (var/cache/dev/twig/c5/c5be036a2a17adeffc8a36754772919e.php:49)
  at __TwigTemplate_5c27afea1ecebd2b58ca0953b973b2de->doDisplay(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable), '_parent' => array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable))), array())
     (vendor/twig/twig/src/Template.php:387)
  at Twig\Template->yield(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)), array())
     (vendor/twig/twig/src/Template.php:343)
  at Twig\Template->display(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)))
     (vendor/twig/twig/src/Template.php:358)
  at Twig\Template->render(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)))
     (vendor/twig/twig/src/TemplateWrapper.php:35)
  at Twig\TemplateWrapper->render(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)))
     (vendor/twig/twig/src/Extension/CoreExtension.php:1481)
  at Twig\Extension\CoreExtension::include(object(Environment), array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)), '_flashes.html.twig')
     (var/cache/dev/twig/e9/e92d04487db3991fb43fd2b7090d9281.php:209)
  at __TwigTemplate_a186ad43b42505cd70fd4e4e54550594->doDisplay(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_edea3905232c40865bcb7ba1994d941d), 'block_title'), 'body' => array(object(__TwigTemplate_edea3905232c40865bcb7ba1994d941d), 'block_body'), 'scripts' => array(object(__TwigTemplate_a186ad43b42505cd70fd4e4e54550594), 'block_scripts')))
     (vendor/twig/twig/src/Template.php:387)
  at Twig\Template->yield(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_edea3905232c40865bcb7ba1994d941d), 'block_title'), 'body' => array(object(__TwigTemplate_edea3905232c40865bcb7ba1994d941d), 'block_body'), 'scripts' => array(object(__TwigTemplate_a186ad43b42505cd70fd4e4e54550594), 'block_scripts')))
     (var/cache/dev/twig/e2/e2c5be77f4aae8f83ae6551c961135ed.php:54)
  at __TwigTemplate_edea3905232c40865bcb7ba1994d941d->doDisplay(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_edea3905232c40865bcb7ba1994d941d), 'block_title'), 'body' => array(object(__TwigTemplate_edea3905232c40865bcb7ba1994d941d), 'block_body')))
     (vendor/twig/twig/src/Template.php:387)
  at Twig\Template->yield(array('competition' => object(Competition), 'ranking' => array(), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_edea3905232c40865bcb7ba1994d941d), 'block_title'), 'body' => array(object(__TwigTemplate_edea3905232c40865bcb7ba1994d941d), 'block_body')))
     (vendor/twig/twig/src/Template.php:343)
  at Twig\Template->display(array('competition' => object(Competition), 'ranking' => array()))
     (vendor/twig/twig/src/Template.php:358)
  at Twig\Template->render(array('competition' => object(Competition), 'ranking' => array()))
     (vendor/twig/twig/src/TemplateWrapper.php:35)
  at Twig\TemplateWrapper->render(array('competition' => object(Competition), 'ranking' => array()))
     (vendor/twig/twig/src/Environment.php:320)
  at Twig\Environment->render('ranking/show.html.twig', array('competition' => object(Competition), 'ranking' => array()))
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:431)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRenderView('ranking/show.html.twig', null, array('competition' => object(Competition), 'ranking' => array()), 'render')
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:436)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRender('ranking/show.html.twig', null, array('competition' => object(Competition), 'ranking' => array()), null, 'render')
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:250)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render('ranking/show.html.twig', array('competition' => object(Competition), 'ranking' => array()))
     (src/Controller/RankingController.php:101)
  at App\Controller\RankingController->show(object(EntityManagerGhost614a58f), object(Competition))
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:182)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/home/betfora/www/bff2026/vendor/autoload_runtime.php')
     (public/index.php:5)                
Loading…
Loading the web debug toolbar…
Attempt #