Forum


Replies: 2   Views: 4293
Getting errors when creating a doc as a template.
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 stebut08  · 19-11-2014 - 11:07

Warning: DOMDocument::loadXML() [domdocument.loadxml]: Opening and ending tag mismatch: body line 1 and tc in Entity, line: 1 in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1274 Warning: DOMDocument::loadXML() [domdocument.loadxml]: Opening and ending tag mismatch: document line 1 and tr in Entity, line: 1 in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1274 Warning: DOMDocument::loadXML() [domdocument.loadxml]: Extra content at the end of the document in Entity, line: 1 in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1274 Warning: DOMDocument::loadXML() [domdocument.loadxml]: Start tag expected, '<' not found in Entity, line: 2 in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1274 Warning: DOMDocument::loadXML() [domdocument.loadxml]: Start tag expected, '<' not found in Entity, line: 2 in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1274 Warning: DOMDocument::loadXML() [domdocument.loadxml]: Start tag expected, '<' not found in Entity, line: 2 in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1274 Warning: DOMDocument::loadXML() [domdocument.loadxml]: Start tag expected, '<' not found in Entity, line: 2 in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1274 Warning: DOMDocument::loadXML() [domdocument.loadxml]: Start tag expected, '<' not found in Entity, line: 2 in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1274 Warning: DOMDocument::loadXML() [domdocument.loadxml]: Start tag expected, '<' not found in Entity, line: 2 in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1274 Warning: DOMDocument::loadXML() [domdocument.loadxml]: Start tag expected, '<' not found in Entity, line: 2 in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1274 Warning: DOMDocument::loadXML() [domdocument.loadxml]: Start tag expected, '<' not found in Entity, line: 2 in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1274 Warning: DOMDocument::loadXML() [domdocument.loadxml]: Start tag expected, '<' not found in Entity, line: 2 in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1274 Warning: DOMDocument::loadXML() [domdocument.loadxml]: Start tag expected, '<' not found in Entity, line: 2 in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1274 Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 2: parser error : Start tag expected, '<' not found in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1318 Warning: simplexml_load_string() [function.simplexml-load-string]: in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1318 Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1318 Fatal error: Call to a member function registerXPathNamespace() on a non-object in C:\xampp\htdocs\certms\trunk\functions\phpdocx\classes\CreateDocxFromTemplate.inc on line 1319 Any ideas why?

Posted by stebut08  · 19-11-2014 - 11:17

Just to clear its worked with the dummy templates I was using now im using a different file as the template it's not working. Is there somewhere I can post it privately?

Posted by stebut08  · 19-11-2014 - 11:32

Have also used Microsoft's Open XML SDK to validate the document and there is no issue with it.