Forum


Replies: 10   Views: 4004
Createdocx gives a corrupted document
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  · 15-09-2017 - 14:46

Hello,

That's a generic error from MS Word that appears when your server is not returning the right DOCX mime type or there's some wrong or missing content. It's the equivalent to an error 500 of PHP.

We recommended you to download the DOCX without using the web server to check it the problem comes from a wrong mime type; for example using FTP or SFTP and then open it with MS Word. If the issue keep going, please split your code to find the source of the error (first run a few lines and check if it opens fine, then the next ones and so on).

Regards.