Forum


Replies: 4   Views: 4246
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

Hello, 



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/DocxUtilities.inc

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.



Grégory


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

Hello,



Please attach both documents to check them.



Regards.


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

Hello,



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.



Regards.