phpword Could not close zip file.

jinhwu 2016-01-01 04:26:58
$name = $data['CompaniesName'];
//将中文转换成首字母拼音
$py = $this->pinyin($name);
$file = $templateProcessor->saveAs('./Word/'.$py.$id.'_hk.docx');
...全文
2908 2 打赏 收藏 转发到动态 举报
写回复
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
RED-GO 2016-07-05
  • 打赏
  • 举报
回复
2016/07/05 15:42:08 [error] 20344#0: *20 FastCGI sent in stderr: "PHP message: PHP Warning: ZipArchive::getFromName(): Invalid or uninitialized Zip object in /opt/eeap/htdocs/lib/phpword/src/PhpWord/Shared/ZipArchive.php on line 198
PHP message: PHP Warning: ZipArchive::getFromName(): Invalid or uninitialized Zip object in /opt/eeap/htdocs/lib/phpword/src/PhpWord/Shared/ZipArchive.php on line 201
PHP message: PHP Warning: ZipArchive::close(): Invalid or uninitialized Zip object in /opt/eeap/htdocs/lib/phpword/src/PhpWord/Shared/ZipArchive.php on line 160
PHP message: Default exception handler: 异常 - Could not close zip file /tmp/PhpWordCmKEZJ. Debug:
Error code: generalexceptionmessage
amd export.php index.php lang renderer.php styles.css template.doc templates version.php line 161 of /lib/phpword/src/PhpWord/Shared/ZipArchive.php: PhpOffice\PhpWordceptionception thrown
amd export.php index.php lang renderer.php styles.css template.doc templates version.php line 331 of /lib/phpword/src/PhpWord/TemplateProcessor.php: call to PhpOffice\PhpWord\Shared\ZipArchive->close()
amd export.php index.php lang renderer.php styles.css template.doc templates version.php line 52 of /local/homepage/export.php: call to PhpOffice\PhpWord\TemplateProcessor->save()" while reading response header from upstream, client: 192.168.1.9, server: localhost, request: "GET /local/homepage/export.php HTTP/1.1", upstream: "fastcgi://unix:/opt/bksite/php/var/run/www.sock:", host: "192.168.1.132", referrer: "http://192.168.1.132/local/homepage/index.php"


求助,一样的错误
misaka去年夏天 2016-01-01
  • 打赏
  • 举报
回复
请给出具体的class和报错提示信息
相关推荐

4,249

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告