Forum


Replies: 2   Views: 443
Error while trying to open the (base) template as a zip file
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  · 07-07-2023 - 18:10

Hello,

That error appears when phpdocx can't open the DOCX file to be used as template, can't read the base template available in the templates folder of the package or it isn't a valid DOCX file (a DOCX is a ZIP file). Please check the path you are using is correct and PHP has read access, you have copied all phpdocx files and PHP can read them, and the DOCX is correct and valid.

We also recommend you check and run the sample included in the package (examples folder) using the PHP CLI mode. phpdocx 14 is compatible with all PHP versions from PHP 5.6 to PHP 8.2.

Regards.