fabrics

Warning: Cannot modify header information - headers already sent by (output started at /app/vendor/symfony/http-foundation/Response.php:387) (500 Internal Server Error)

Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Warning: Cannot modify header information - headers already sent by (output started at /app/vendor/symfony/http-foundation/Response.php:387)

Exception

ErrorException

Show exception properties
ErrorException {#4044
  #severity: E_WARNING
}
  1. {
  2. // headers have already been sent by the developer
  3. if (headers_sent()) {
  4. if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
  5. $statusCode ??= $this->statusCode;
  6. header(\sprintf('HTTP/%s %s %s', $this->version, $statusCode, $this->statusText), true, $statusCode);
  7. }
  8. return $this;
  9. }
  1. if ($pop) {
  2. $this->requestStack->pop();
  3. }
  4. }
  5. $response->sendHeaders();
  6. $response->sendContent();
  7. $this->terminate($request, $response);
  8. }
  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 /app/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 Trace

ErrorException
ErrorException:
Warning: Cannot modify header information - headers already sent by (output started at /app/vendor/symfony/http-foundation/Response.php:387)

  at /app/vendor/symfony/http-foundation/Response.php:322
  at Symfony\Component\HttpFoundation\Response->sendHeaders()
     (/app/vendor/symfony/http-kernel/HttpKernel.php:141)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException()
     (/app/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:84)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::{closure:Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure():78}()
     (/app/vendor/symfony/error-handler/ErrorHandler.php:538)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException()