Forum


Replies: 3   Views: 3555
Phpdocx error while trying to open a template
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 admin  · 03-08-2017 - 19:09

Hello,

That error may appear if:

1. ZipArchive is not installed or enabled. As you can create the DOCX from scratch your server must have ZipArchive installed.

2. The server can't read the DOCX file due to missing read access or it doesn't exist.

3. Some file is missing in the phpdocx folder.

4. The DOCX file you are trying to use as template is not a valid DOCX but a DOC or other document format.

Please run one of the included samples in the examples/Templates/replaceVariableByText folder using PHP CLI mode.

Regards.