Thanks to visit codestin.com
Credit goes to github.com

Skip to content

headers already sent by ... Response.php:1315 / SessionUtils.php:52 #59205

Closed
@THenkeDE

Description

@THenkeDE

Symfony version(s) affected

6.4.*

Description

My prod.log is full with always the same Line:

php.WARNING: Warning: Cannot modify header information - headers already sent by (output started at localpath/vendor/symfony/http-foundation/Response.php:1315) {"exception":"[object] (ErrorException(code: 0): Warning: Cannot modify header information - headers already sent by (output started at localpath/vendor/symfony/http-foundation/Response.php:1315) at localpath/vendor/symfony/http-foundation/Session/SessionUtils.php:52)"} []

The causing Line (SessionUtils.php:52) removes the cookie Header

header_remove('Set-Cookie');

and the error is generated while flushing the output buffer

ob_end_flush();

Is there anything i can do to fix this?

How to reproduce

sadly i have no Idea, it is just getted logged

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions