Deprecated: ldap_exop_sync(): Implicitly marking parameter $request_data as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/symfony/polyfill-php83/bootstrap.php on line 43

Deprecated: ldap_exop_sync(): Implicitly marking parameter $controls as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/symfony/polyfill-php83/bootstrap.php on line 43

Deprecated: Sentry\SentryBundle\Tracing\Cache\TraceableCacheAdapterForV3::get(): Implicitly marking parameter $beta as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/sentry/sentry-symfony/src/Tracing/Cache/TraceableCacheAdapterForV3.php on line 41

Deprecated: Sentry\SentryBundle\Tracing\Cache\TraceableCacheAdapterForV3::get(): Implicitly marking parameter $metadata as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/sentry/sentry-symfony/src/Tracing/Cache/TraceableCacheAdapterForV3.php on line 41

Deprecated: Sentry\SentryBundle\Tracing\Cache\TraceableCacheAdapterTrait::traceFunction(): Implicitly marking parameter $spanDescription as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/sentry/sentry-symfony/src/Tracing/Cache/TraceableCacheAdapterTrait.php on line 171

Deprecated: Symfony\Contracts\Cache\CacheInterface::get(): Implicitly marking parameter $beta as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/symfony/cache-contracts/CacheInterface.php on line 47

Deprecated: Symfony\Contracts\Cache\CacheInterface::get(): Implicitly marking parameter $metadata as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/symfony/cache-contracts/CacheInterface.php on line 47

Deprecated: Sentry\SentryBundle\Tracing\Cache\TraceableTagAwareCacheAdapterForV3::get(): Implicitly marking parameter $beta as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/sentry/sentry-symfony/src/Tracing/Cache/TraceableTagAwareCacheAdapterForV3.php on line 42

Deprecated: Sentry\SentryBundle\Tracing\Cache\TraceableTagAwareCacheAdapterForV3::get(): Implicitly marking parameter $metadata as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/sentry/sentry-symfony/src/Tracing/Cache/TraceableTagAwareCacheAdapterForV3.php on line 42

Deprecated: Symfony\Contracts\HttpClient\HttpClientInterface::stream(): Implicitly marking parameter $timeout as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/symfony/http-client-contracts/HttpClientInterface.php on line 93

Deprecated: Sentry\SentryBundle\Tracing\HttpClient\TraceableResponseForV6::getInfo(): Implicitly marking parameter $type as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/sentry/sentry-symfony/src/Tracing/HttpClient/TraceableResponseForV6.php on line 17

Deprecated: Symfony\Contracts\HttpClient\ResponseInterface::getInfo(): Implicitly marking parameter $type as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/symfony/http-client-contracts/ResponseInterface.php on line 108

Deprecated: Sentry\SentryBundle\Tracing\HttpClient\AbstractTraceableHttpClient::stream(): Implicitly marking parameter $timeout as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/sentry/sentry-symfony/src/Tracing/HttpClient/AbstractTraceableHttpClient.php on line 106

Deprecated: Constant E_STRICT is deprecated since 8.4, the error level was removed in /var/www/bet-analyzer/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated since 8.4, the error level was removed in /var/www/bet-analyzer/vendor/symfony/error-handler/ErrorHandler.php on line 76

Deprecated: Sentry\Event::createTransaction(): Implicitly marking parameter $eventId as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/sentry/sentry/src/Event.php on line 203

Deprecated: GuzzleHttp\Psr7\Uri::isSameDocumentReference(): Implicitly marking parameter $base as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/guzzlehttp/psr7/src/Uri.php on line 282

Deprecated: GuzzleHttp\Psr7\Utils::readLine(): Implicitly marking parameter $maxLength as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/guzzlehttp/psr7/src/Utils.php on line 234

Deprecated: GuzzleHttp\Promise\Promise::__construct(): Implicitly marking parameter $waitFn as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/guzzlehttp/promises/src/Promise.php on line 28

Deprecated: GuzzleHttp\Promise\Promise::__construct(): Implicitly marking parameter $cancelFn as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/guzzlehttp/promises/src/Promise.php on line 29

Deprecated: GuzzleHttp\Promise\Promise::then(): Implicitly marking parameter $onFulfilled as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/guzzlehttp/promises/src/Promise.php on line 36

Deprecated: GuzzleHttp\Promise\Promise::then(): Implicitly marking parameter $onRejected as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/guzzlehttp/promises/src/Promise.php on line 37

Deprecated: GuzzleHttp\Promise\PromiseInterface::then(): Implicitly marking parameter $onFulfilled as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/guzzlehttp/promises/src/PromiseInterface.php on line 30

Deprecated: GuzzleHttp\Promise\PromiseInterface::then(): Implicitly marking parameter $onRejected as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/guzzlehttp/promises/src/PromiseInterface.php on line 31

Deprecated: Http\Promise\Promise::then(): Implicitly marking parameter $onFulfilled as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/php-http/promise/src/Promise.php on line 44

Deprecated: Http\Promise\Promise::then(): Implicitly marking parameter $onRejected as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/php-http/promise/src/Promise.php on line 44

Deprecated: GuzzleHttp\Psr7\Response::__construct(): Implicitly marking parameter $reason as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/guzzlehttp/psr7/src/Response.php on line 99

Deprecated: Http\Message\Decorator\StreamDecorator::getMetadata(): Implicitly marking parameter $key as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/php-http/message/src/Decorator/StreamDecorator.php on line 89

Deprecated: GuzzleHttp\Promise\FulfilledPromise::then(): Implicitly marking parameter $onFulfilled as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/guzzlehttp/promises/src/FulfilledPromise.php on line 34

Deprecated: GuzzleHttp\Promise\FulfilledPromise::then(): Implicitly marking parameter $onRejected as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/guzzlehttp/promises/src/FulfilledPromise.php on line 35

Deprecated: GuzzleHttp\Promise\RejectedPromise::then(): Implicitly marking parameter $onFulfilled as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/guzzlehttp/promises/src/RejectedPromise.php on line 34

Deprecated: GuzzleHttp\Promise\RejectedPromise::then(): Implicitly marking parameter $onRejected as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/guzzlehttp/promises/src/RejectedPromise.php on line 35

Deprecated: GuzzleHttp\Promise\RejectionException::__construct(): Implicitly marking parameter $description as nullable is deprecated, the explicit nullable type must be used instead in /var/www/bet-analyzer/vendor/guzzlehttp/promises/src/RejectionException.php on line 21
Failed to start the session because headers have already been sent by "/var/www/bet-analyzer/vendor/composer/autoload_real.php" at line 78. (500 Internal Server Error)

Symfony Exception

RuntimeException

HTTP 500 Internal Server Error

Failed to start the session because headers have already been sent by "/var/www/bet-analyzer/vendor/composer/autoload_real.php" at line 78.

Exception

RuntimeException

  1.         if (\PHP_SESSION_ACTIVE === session_status()) {
  2.             throw new \RuntimeException('Failed to start the session: already started by PHP.');
  3.         }
  4.         if (filter_var(\ini_get('session.use_cookies'), \FILTER_VALIDATE_BOOL) && headers_sent($file, $line)) {
  5.             throw new \RuntimeException(sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.', $file, $line));
  6.         }
  7.         $sessionId = $_COOKIE[session_name()] ?? null;
  8.         /*
  9.          * Explanation of the session ID regular expression: `/^[a-zA-Z0-9,-]{22,250}$/`.
  1.         }
  2.         if (!$this->started && $this->saveHandler->isActive()) {
  3.             $this->loadSession();
  4.         } elseif (!$this->started) {
  5.             $this->start();
  6.         }
  7.         return $this->bags[$name];
  8.     }
  1.         $this->storage->registerBag(new SessionBagProxy($bag, $this->data, $this->usageIndex, $this->usageReporter));
  2.     }
  3.     public function getBag(string $name): SessionBagInterface
  4.     {
  5.         $bag = $this->storage->getBag($name);
  6.         return method_exists($bag, 'getBag') ? $bag->getBag() : $bag;
  7.     }
  8.     /**
  1.      *
  2.      * Note that this method was added to help with IDE autocompletion.
  3.      */
  4.     private function getAttributeBag(): AttributeBagInterface
  5.     {
  6.         return $this->getBag($this->attributeName);
  7.     }
  8. }
  1.     /**
  2.      * @return void
  3.      */
  4.     public function set(string $name, mixed $value)
  5.     {
  6.         $this->getAttributeBag()->set($name, $value);
  7.     }
  8.     public function all(): array
  9.     {
  10.         return $this->getAttributeBag()->all();
  1.         $profileType = $request->query->get('type', 'request');
  2.         if (!$request->attributes->getBoolean('_stateless') && $request->hasSession()) {
  3.             $session = $request->getSession();
  4.             $session->set('_profiler_search_ip', $ip);
  5.             $session->set('_profiler_search_method', $method);
  6.             $session->set('_profiler_search_status_code', $statusCode);
  7.             $session->set('_profiler_search_url', $url);
  8.             $session->set('_profiler_search_start', $start);
  9.             $session->set('_profiler_search_end', $end);
in vendor/symfony/http-kernel/HttpKernel.php -> searchAction (line 181)
  1.         $this->dispatcher->dispatch($event, KernelEvents::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($event, KernelEvents::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('/var/www/bet-analyzer/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 16:30:09 request Uncaught PHP Exception RuntimeException: "Failed to start the session because headers have already been sent by "/var/www/bet-analyzer/vendor/composer/autoload_real.php" at line 78." at NativeSessionStorage.php line 132
{
    "exception": {}
}

Stack Trace

RuntimeException
RuntimeException:
Failed to start the session because headers have already been sent by "/var/www/bet-analyzer/vendor/composer/autoload_real.php" at line 78.

  at vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:132
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:311)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('attributes')
     (vendor/symfony/http-foundation/Session/Session.php:222)
  at Symfony\Component\HttpFoundation\Session\Session->getBag('attributes')
     (vendor/symfony/http-foundation/Session/Session.php:242)
  at Symfony\Component\HttpFoundation\Session\Session->getAttributeBag()
     (vendor/symfony/http-foundation/Session/Session.php:77)
  at Symfony\Component\HttpFoundation\Session\Session->set('_profiler_search_ip', null)
     (vendor/symfony/web-profiler-bundle/Controller/ProfilerController.php:267)
  at Symfony\Bundle\WebProfilerBundle\Controller\ProfilerController->searchAction(object(Request))
     (vendor/symfony/http-kernel/HttpKernel.php:181)
  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:197)
  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('/var/www/bet-analyzer/vendor/autoload_runtime.php')
     (public/index.php:5)