Replies: 4   Views: 3890
Docxutilities mergedocx footnotes.xml without endnotes.xml
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 devtime  · 26-11-2013 - 15:46


We have a bug using mergeDocx function (v3.5/3.6).

Our first docx file has no footnotes.xml or endnotes.xml, our second docx file has only footnotes.xml 

It result by this loadXML error :

Message: DOMDocument::loadXML(): Empty string supplied as input

Filename: classes/

Line Number: 979

First, we have identified a bug line 592/593 (v3.6)

        if($this->checkData($this->_secondDocxStructuralData['footnotes']) > 0 || 

           $this->checkData($this->_secondDocxStructuralData['footnotes']) > 0 )

Then, there is no check that endnotes.xml exist in the second file and the function load it line 664.

Thanks for your help.


Posted by jorgelj  · 27-11-2013 - 09:16


Please attach both documents to check them.


Posted by jorgelj  · 02-12-2013 - 11:05


Have did you generated both documents? It seems the second one have been created with OpenOffice that has some issues saving DOCX files; we have opened the document with MS Word and save it again and everything run fine.