Hello,
What license and version of phpdocx are you using? If you are using the trial package we recommend you to test it standalone.
That error appears when you try to open a file that is not a DOCX document or the file doesn't exist, maybe the path to the file isn't correct.
Regards.