Hello,
Please run the example LayoutAndGeneral/addHeader/sample_2.php and check if you get any error and the DOCX output.
If you still have issues please send to contact[at]phpdocx.com the most simple script that illustrates the error. As we need to run it, please don't do external connections (such as databases or webservices).
Regards.