Forum


Replies: 2   Views: 5494
Throw exception when tmp folder is not accessible
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by mquadrat  · 13-09-2011 - 18:56

Hi guys,

You might want to throw an exception when the temp file that is used to create a template based docx cannot be saved.

File: CreateDocx.inc, Line: 2566.

ZipArchive.close() returns false, when the file cannot be saved. In this case the unaltered template is copied to the destination folder with none of the variables replaced. Since there is no exception and no warning or error messages in the log, this is very hard to spot. It did take me quite some time to figure that out.

System: Windows 7, IIS



Regards

Markus