带有消息文件zip的未捕获异常PHPExcel_Writer_Exception

时间:2014-03-19 11:17:59

标签: php phpexcel fatal-error

我在加载文件以写入 PHPExcel 时收到此错误, 文件大小为615KB

( ! ) Fatal error: Uncaught exception 'PHPExcel_Writer_Exception' with message 'File zip://C:\wamp\www\iON\Files\MISReport_PUN 01 HODEV PANC W MH PUN.xlsx#xl/media/image1.png does not exist' in C:\wamp\www\iON\Excel\PHPExcel\Writer\Excel2007\ContentTypes.php on line 242
( ! ) PHPExcel_Writer_Exception: File zip://C:\wamp\www\iON\Files\MISReport_PUN 01 HODEV PANC W MH PUN.xlsx#xl/media/image1.png does not exist in C:\wamp\www\iON\Excel\PHPExcel\Writer\Excel2007\ContentTypes.php on line 242

可能的原因是什么?

1 个答案:

答案 0 :(得分:1)

问题是该文件已被删除

if (file_exists($pFilename)) {
unlink($pFilename);
}

这些问题已修复https://github.com/nekulin/PHPExcel