-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error: Uncaught yii\web\HeadersAlreadySentException: Headers already sent in #17548
Comments
Such behavior is there since 2.0.14. Prior to that version in case there was output started, headers were silently not sent resulting in hard to debug issues. In your case fix your php.ini first then check if error is still there. |
Thank you for your question. We advise you to use our community driven resources: If you are confident that there is a bug in the framework, feel free to provide information on how to reproduce it. This issue will be closed for now. This is an automated comment, triggered by adding the label |
thanks for your reply |
You don't need |
thank you so much |
Hi ,
i have this error in my project
Fatal error: Uncaught yii\web\HeadersAlreadySentException: Headers already sent in /home/es/domains/es/public_html/vendor/yiisoft/yii2/web/Response.php on line 428. in /home/es/domains/es/public_html/vendor/yiisoft/yii2/web/Response.php:366 Stack trace: #0 /home/es/domains/es/public_html/vendor/yiisoft/yii2/web/Response.php(339): yii\web\Response->sendHeaders() #1 /home/es/domains/es/public_html/vendor/yiisoft/yii2/web/ErrorHandler.php(135): yii\web\Response->send() #2 /home/es/domains/es/public_html/vendor/yiisoft/yii2/base/ErrorHandler.php(262): yii\web\ErrorHandler->renderException(Object(yii\base\ErrorException)) #3 [internal function]: yii\base\ErrorHandler->handleFatalError() #4 {main} thrown in /home/es/domains/es/public_html/vendor/yiisoft/yii2/web/Response.php on line 366
first time Yii2 version was 2.0.25, i updated that to 2.0.26 but this problem stayed that,
again i changed that to 2.0.23 but not solved, php version is 7.3.7
this project dont have any problem in local server but have just problem in host server
and some times dont have error but more times have error
below error is exist in host server too
(https://user-images.githubusercontent.com/18082695/64474404-cf4a7980-d189-11e9-9732-94457eec7c92.jpeg)
please help me ,
thank you
The text was updated successfully, but these errors were encountered: