How to fix error in yii2 Headers already sent?

0 like 0 dislike
112 views
Updated yii from the archive and threw back the controllers, models, views from a previously written project. and got this error.

Fatal error: Uncaught yii\\web\\HeadersAlreadySentException: Headers already sent in /home/alex/server/foogine.io/vendor/yiisoft/yii2/web/Response.php on line 414. in /home/alex/server/foogine.io/vendor/yiisoft/yii2/web/Response.php:366 Stack trace: #0 /home/alex/server/foogine.io/vendor/yiisoft/yii2/web/Response.php(339): yii\\web\esponse->sendHeaders() #1 /home/alex/server/foogine.io/vendor/yiisoft/yii2/web/ErrorHandler.php(135): yii\\web\esponse->send() #2 /home/alex/server/foogine.io/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/alex/server/foogine.io/vendor/yiisoft/yii2/web/Response.php on line 366


Scratched turnip, thought that perhaps the controllers, models and types from the old version somehow in conflict. Put a fresh version of yii decided not to add your script, and to see whether the problem is in the drain condition. Installed it opened a start page and saw the same error.

5adb289b2fef2660425943.png

From this we can conclude that the problem in yii. Googled on this topic, but alas found nothing. The impression that this error emerged recently and little is known. Who faced with similar, explain how you can fix this error? I hope there is a solution.
by | 112 views

2 Answers

0 like 0 dislike
In General, all was corny. The fact that I foolishly in php.ini uncomment the dll library which is designed for Windows. On Linux these lines do not need to touch. Because of this, there was an error which the debugger in yii couldn't catch. The output of this error has confused all the cards. The error likely has gone where yii formed headlines because of this and the problems started. Have salmeterol line windowapi modules in php.ini now it works. Bang)
by
0 like 0 dislike
bomremover to help
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Apr 21, 2019 by Sergalas
110,608 questions
257,186 answers
0 comments
28,666 users