当前位置:网站首页>Phpexcel reports an error: err_ INVALID_ RESPONSE
Phpexcel reports an error: err_ INVALID_ RESPONSE
2022-07-25 08:35:00 【Summer is already slightly cool】
One 、 A scenario
stay
thinkphpUse... In the frameworkphpoffice/phpexcel, Direct export Excel Form browser download , Report errors :ERR_INVALID_RESPONSEBe careful : stay Local windows Environmental Science No problem exporting , stay on-line Linux Environmental Science This problem only occurs .
Screenshot of the problem :

Two 、 Find a solution
1、 Online solutions
1)、 Buffer problem
Calling save("php://output") Previous call ob_clean(), Part of the code is as follows
ob_clean(); // Empty cache
// Finally, output through the browser
$fn = " Name of file (" . date("Y.m.d") . ").xls"; // File name to save
header('Content-Type: application/vnd.ms-excel; charset=utf-8');
header("Content-Disposition: attachment;filename={
$fn}");
header('Cache-Control: max-age=0');
$objWriter = \PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');
$objWriter->save('php://output');
exit;
2)、factory581 Bank error , Delete break
- factory581 Bank error , Delete break;
PHPExcel\Calculation\Functions.php file , Delete the 581 Yes break
our phpoffice/phpexcel yes composer Installed , Every update has to change the source code , It is not recommended to modify the source code , Even if it can solve the problem , Nor will it be adopted .
2、 My solution to this problem ,Linux Lower installation zip Expand
- 【 solve 】 My question is Linux Lack of
zipExpand , Can be installed ~
3、 ... and 、zip Expand
- windows Under the php( My version is 7.3.3) Is bringing zip Extended ,
php/extThere are none in the directoryphp_zip.dllfile , As shown in the figure

- Linux Under the php No installation zip Expand
边栏推荐
- 【芝麻街一家】& Bert Bart RoBERTa
- Chapter 3 business function development (modifying clues, data echo and modifying data)
- Raspberry pie CM4 -- using metartc3.0 to integrate ffmpeg to realize webrtc push-pull streaming
- My creation anniversary
- Summary of SQL skills in data warehouse development
- Qt|qlabole change line spacing when displaying multiple lines
- The fifth day of MATLAB learning (cycle type)
- 递归调用实现打印一个整数的每一位
- Redis学习
- ip命令使用详解
猜你喜欢

Ensembles in RNA counts data in TCGA_ ID to gene_ Method of ID

聊下自己转型测试开发的历程

Hotel room management system based on jsp+servlet+mysql
![[shader realizes shadow projection effect _shader effect Chapter 8]](/img/f3/aa935cc1bb4983d5a8dc0a9710ec6e.png)
[shader realizes shadow projection effect _shader effect Chapter 8]

uni-app

JS typewriter animation JS special effect plug-in autotyperjs

第3章业务功能开发(实现全选按钮实时的响应)

FreeMaker模板引擎

Online bookstore system based on jsp+servlet+mysql
![[untitled]](/img/81/06fc796dc6c521eb890207b9de69d8.png)
[untitled]
随机推荐
Pet adoption system based on ssm+mysql+layui
【5G NR】UE注册拒绝原因
Foundation 31: Selenium positioning dynamic ID element
Idea failed to start the project yamlexception Chinese file encoding format
Keep your Eyes on the Lane: Real-time Attention-guided Lane Detection
Codeforces Round #809 Editorial(A,B,C)
@Use of data annotation (instead of get and set methods in entity classes)
Raspberry pie 3b ffmpeg RTMP streaming
Data warehouse ODS, DWD floor, 220616, HM,
Raspberry pie CM4 -- using metartc3.0 to integrate ffmpeg to realize webrtc push-pull streaming
Efcore's solution of multi tenant zero script, table and database read-write separation under SaaS system
Chapter 3 business function development (modifying clues, data echo and modifying data)
Refreshing mobile terminal personal center page
"Unable to recognize" yarn "item as cmdlet, function, script file
SSM+JSP+MYSQL实现的宠物领养收养管理系统源码
[ten thousand words long text] Based on LSM tree thought Net 6.0 C # realize kV database (case version)
Redis最佳实践
BigDecimel转人民币大写
Raspberry Pie 3 connected to WiFi
ip命令使用详解