PHPExcel在高版本PHP7中,Writer->save出现ERR_INVALID_RESPONSE错误的解决方法
2022-07-28 15:20:24
131
{{single.collect_count}}

这个Writer->save错误可能由于很多原因导致,其中有一部分是因为header和缓冲区的错误导致的

这部分具体讨论可以看这里http://stackoverflow.com/questions/8566196/phpexcel-to-download

 

然而还有一个不容易发现的问题,在高版本PHP7下,出现ERR_INVALID_RESPONSE的错误还可能由于下面的原因导致

请打开PHPExcel\Calculation\Functions.php文件,删除掉581行的break即可

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}