This project is read-only.

Error when open the document

Nov 11, 2010 at 9:50 PM


I have a little problem, after save the document when I try to open it in word 2007, it shows me the next error: "The file xxxx.docx can't no be open because there are problems with the contents",

The error is in spanish so i am not sure if this is the same error in english...

I have php 5.2.6.


Please excuse my English... its so ugly I know :)


Dec 8, 2010 at 11:18 PM

¿Any solution for this problem? thanks

Dec 9, 2010 at 12:49 AM

Do you have this problem with a simple example phpWord?  Edit your code until the error stops, to help you find the problem?

This is an interesting article. It suggests that you might be able to open a 'problem' docx with WordPad.

Also, what is the message if you click 'Details' in the error message?

If the 'Details' tell you where the error is, open the docx with a zip utility like WinZip. This allows you to read all the xml files that are 'inside' the docx.

Good luck.

Jun 30, 2011 at 9:42 AM


I`m having the same problem. The problem appear even with the example (using the template example).

If anyone have any solution I`d be grateful.