首页 > 其他 > 详细

yii2 HeadersAlreadySentException 报错

时间:2019-12-17 15:38:48      阅读:111      评论:0      收藏:0      [点我收藏+]

转:https://blog.csdn.net/renamayu/article/details/79799208

 

An Error occurred while handling another error:

exception

‘yii\web\HeadersAlreadySentException‘ with message ‘Headers already sent in /xxxx/xxxx/xxx.php on line 90.‘ in /xxxx/xxxx/vendor/yiisoft/yii2/web/Response.php:366
Stack trace:
#0 /xxxx/xxxx/vendor/yiisoft/yii2/web/Response.php(339): yii\web\Response->sendHeaders()
#1 /xxxx/xxxx/vendor/yiisoft/yii2/web/ErrorHandler.php(135): yii\web\Response->send()

#2/xxxx/xxxx/vendor/yiisoft/yii2/base/ErrorHandler.php(111):

yii\web\ErrorHandler->renderException(Object(yii\web\HeadersAlreadySentException))
#3 [internal function]: yii\base\ErrorHandler->handleException(Object(yii\web\HeadersAlreadySentException))

#4 {main}

使用echo 输出json格式输出,结尾没有加exit导致的报错

yii2 HeadersAlreadySentException 报错

原文:https://www.cnblogs.com/whatstone/p/12054626.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!