L
L
lolka022018-12-26 12:18:48
Yii
lolka02, 2018-12-26 12:18:48

Is it possible to ignore Headers already sent error in Yii2?

I use one library that often gives such an error
yii\web\HeadersAlreadySentException' with message 'Headers already sent in /
Is there any way to get around this error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2018-12-26
@AlexMaxTM

You can ignore, block the output of errors to production. But it's better to find out what the problem is. Most likely, some script somewhere makes an output (perhaps they debugged and left echo somewhere, or even just put an end tag at the end of the script, ?>after which there is an empty line).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question