-mrl

报错如下:

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 ; print_R() ; var_dump();等形式的输出时报以上错误;  和以下代码冲突。

加一断点  exit;

分类:

技术点:

相关文章:

  • 2021-09-17
  • 2021-05-20
  • 2018-12-29
  • 2021-05-16
  • 2021-05-28
  • 2021-10-14
  • 2021-11-02
  • 2021-04-19
猜你喜欢
  • 2021-09-02
  • 2021-08-01
  • 2021-09-14
  • 2021-06-24
  • 2021-09-07
  • 2021-12-10
  • 2021-12-03
相关资源
相似解决方案