Replies: 4   Views: 526
"domdocument::loadxml() expects parameter 1 to be string, object given" in embedhtml
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 Simon87  · 13-12-2019 - 12:47


We have another problem with 9.5 version. We provide string and optional array for embedHTML and get "DOMDocument::loadXML() expects parameter 1 to be string, object given" error. Here's the code:

We tried same markup and parameters without call_user_func_array, same thing happens.