Description
Hi Masters,
Many times, if you repeat and repeat the program (for exemple with F5), the system gives an error message that can not close the temporary file.
The following message appears on the screen:
Fatal error: Uncaught exception 'PhpOffice\PhpWord\Exception\Exception' with message 'Could not close zip file C:\Users\songoku\AppData\Local\Temp\Php9D8B.tmp.' in C:\xampp\htdocs\z\doc\src\PhpWord\Shared\ZipArchive.php:163 Stack trace: #0 C:\xampp\htdocs\z\doc\src\PhpWord\TemplateProcessor.php(412): PhpOffice\PhpWord\Shared\ZipArchive->close() #1 C:\xampp\htdocs\z\doc\src\PhpWord\TemplateProcessor.php(430): PhpOffice\PhpWord\TemplateProcessor->save() #2 C:\xampp\htdocs\z\doc\S07c.php(63): PhpOffice\PhpWord\TemplateProcessor->saveAs('reporting/outpu...') #3 {main} thrown in C:\xampp\htdocs\z\doc\src\PhpWord\Shared\ZipArchive.php on line 163
Any idea how I can solve this situation ?
Thanks for you help.
Carles
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.