# RuntimeException: "Failed to start the session because headers have already been sent by?

**URL:** <https://forum.shopware.com/t/runtimeexception-failed-to-start-the-session-because-headers-have-already-been-sent-by/100985>\
**Category:** Shopware 6 (German)\
**Created:** [23. August 2023 um 13:19 UTC](https://forum.shopware.com/t/runtimeexception-failed-to-start-the-session-because-headers-have-already-been-sent-by/100985 "2023-08-23T13:19:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![inventbox](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/inventbox/32/13134_2.png) [@inventbox](https://forum.shopware.com/u/inventbox)\
**Post date:** [23. August 2023 um 13:19 UTC](https://forum.shopware.com/t/runtimeexception-failed-to-start-the-session-because-headers-have-already-been-sent-by/100985/1 "2023-08-23T13:19:47Z")

</div>

**Grüße Euch - habe seit der 6.5.x jede Stunde folgende Critical Fehler im Log:**

> [2023-08-23T00:15:02.824129+00:00] request.CRITICAL: Uncaught PHP Exception RuntimeException: „Failed to start the session because headers have already been sent by „/home/gartened/public\_html/domet.de/vendor/symfony/http-foundation/Response.php“ at line 410.“ at /home/gartened/public\_html/domet.de/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php line 132 {„exception“:„[object] (RuntimeException(code: 0): Failed to start the session because headers have already been sent by "/home/gartened/public\_html/domet.de/vendor/symfony/http-foundation/Response.php" at line 410. at /home/gartened/public\_html/domet.de/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:132)“}

> [2023-08-23T00:15:02.865758+00:00] php.CRITICAL: Uncaught Exception: Failed to start the session because headers have already been sent by „/home/gartened/public\_html/domet.de/vendor/symfony/http-foundation/Response.php“ at line 410. {„exception“:„[object] (RuntimeException(code: 0): Failed to start the session because headers have already been sent by "/home/gartened/public\_html/domet.de/vendor/symfony/http-foundation/Response.php" at line 410. at /home/gartened/public\_html/domet.de/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:132)“}

> [2023-08-23T00:15:02.867686+00:00] request.CRITICAL: Uncaught PHP Exception RuntimeException: „Failed to start the session because headers have already been sent by „/home/gartened/public\_html/domet.de/vendor/symfony/http-foundation/Response.php“ at line 410.“ at /home/gartened/public\_html/domet.de/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php line 132 {„exception“:„[object] (RuntimeException(code: 0): Failed to start the session because headers have already been sent by "/home/gartened/public\_html/domet.de/vendor/symfony/http-foundation/Response.php" at line 410. at /home/gartened/public\_html/domet.de/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:132)“}

> [2023-08-23T00:15:02.870197+00:00] php.CRITICAL: Uncaught Exception: Failed to start the session because headers have already been sent by „/home/gartened/public\_html/domet.de/vendor/symfony/http-foundation/Response.php“ at line 410. {„exception“:„[object] (RuntimeException(code: 0): Failed to start the session because headers have already been sent by "/home/gartened/public\_html/domet.de/vendor/symfony/http-foundation/Response.php" at line 410. at /home/gartened/public\_html/domet.de/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:132)“}

**Kann mir Jemand einen Tipp geben um was es geht - wäre sehr dankbar!**

Hier meine PHP-Settings: [PHP 8.1.18 - phpinfo()](https://www.domet.de/info.php)

Grüße

Michael

---

<div class="post-metadata">

**Author:** ![LarsFischu](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@LarsFischu](https://forum.shopware.com/u/LarsFischu)\
**Post date:** [18. Oktober 2023 um 14:04 UTC](https://forum.shopware.com/t/runtimeexception-failed-to-start-the-session-because-headers-have-already-been-sent-by/100985/2 "2023-10-18T14:04:16Z")

</div>

Bei uns auch so. Weiß hier jemand was? Die Logfiles werden dadurch natürlich extrem groß…

---

<div class="post-metadata">

**Author:** ![Panasiam\_Clothing](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@Panasiam\_Clothing](https://forum.shopware.com/u/Panasiam_Clothing)\
**Post date:** [17. Mai 2024 um 10:34 UTC](https://forum.shopware.com/t/runtimeexception-failed-to-start-the-session-because-headers-have-already-been-sent-by/100985/3 "2024-05-17T10:34:12Z")

</div>

HUHU, würde uns auch interessieren? @LarsFischu @inventbox habt Ihr dazu was herausgefunden?

Viele Grüße  
Moira

---

<div class="post-metadata">

**Author:** ![timpfeifer](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/timpfeifer/32/21594_2.png) [@timpfeifer](https://forum.shopware.com/u/timpfeifer)\
**Post date:** [17. Juni 2024 um 11:06 UTC](https://forum.shopware.com/t/runtimeexception-failed-to-start-the-session-because-headers-have-already-been-sent-by/100985/4 "2024-06-17T11:06:37Z")

</div>

Hallo zusammen, wir haben auch das gleiche Problem…

---

<div class="post-metadata">

**Author:** ![inventbox](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/inventbox/32/13134_2.png) [@inventbox](https://forum.shopware.com/u/inventbox)\
**Post date:** [19. Juni 2024 um 13:18 UTC](https://forum.shopware.com/t/runtimeexception-failed-to-start-the-session-because-headers-have-already-been-sent-by/100985/5 "2024-06-19T13:18:33Z")

</div>

Hallo Alle,

bisher habe ich noch keinen Fehler, aber es gibt zumindest einen Ansatz. Hier der Beitrag welcher gerade zumindest in einen Richtung geht.  
Am besten Ihr schließt Euch alle dort an:

> [@Php - CRITICAL Uncaught Exception: Failed to start the session because headers have already been sent by](https://forum.shopware.com/t/php-critical-uncaught-exception-failed-to-start-the-session-because-headers-have-already-been-sent-by/101244):
>
> Hallo zusammen, wir nutzen die Shopware Version 6.4.20.1 und haben mehrere folgender Fehlermeldung im Log stehen: Uncaught Exception: Failed to start the session because headers have already been sent by „/home/beuoynmh/www.xxx.com/webshops/xxxSW6/vendor/symfony/http-foundation/Response.php“ at line 1250. {„exception“:„[object] (RuntimeException(code: 0): Failed to start the session because headers have already been sent by "/home/beuoynmh/www.xxxx.com/webshops/xxxSW6/vendor/symfony/http-found…

Grüße - Michael
