Fatal error: print_r() [<a href='ref.outcontrol'>ref.outcontrol</a>]: Cannot use output buffering in output buffering display handlers in D:\www\bjydf\ThinkPHP\Common\common.php on line 601

在thinkphp中用phpexcel导出数据错误
<b>Fatal error</b>:  print_r() [&lt;a href='ref.outcontrol'&gt;ref.outcontrol&lt;/a&gt;]: Cannot use output buffering in
output buffering display handlers in <b>D:\www\bjydf\ThinkPHP\Common\common.php</b> on line <b>601</b><br />

导出文件打开显示以上错误,数据没有到成功,上网找了半天终于解决了
就是在thinkphp配置文件中加上
'OUTPUT_ENCODE' =>  false,

是因为thinkphp3.0以后默认开启了”网页压缩输出”。关闭就好了

相关文章:

  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2023-01-27
  • 2021-11-22
  • 2021-07-27
猜你喜欢
  • 2022-01-04
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2021-12-18
  • 2021-09-12
相关资源
相似解决方案