The module is giving DOMDocument not found error, even though i checked in installation page at start under PHP extensions, DOM was green (enabled)
I even tried to check via code from Core file SystemRequirement.php
/**
* Check if DOM extension is loaded
*
* @return integer
*/
public function checkPhpXml()
{
return extension_loaded('dom') ? 2 : 0;
}
And its returning me 2, which means DOM is there, but why i am not able to get it working? It says i dont have DOMDocument in my module. Attached is the picture.
Any leads community members?
I am using community edition shop version 6.1.4
Class 'MyModuleName\Core\Utils\Inc\DOMDocument' not found Request XML: ARTSomeInformationWhichIDontWantToExpose20190928143858T1.0SOAP93244
If you instantiate the DOMDocument class like this:
$ oDom = new DOMDocument ();
… then PHP interprets your class call like this, and you´ve got your error:
MyModuleName\Core\Utils\Inc\DOMDocument
You have to do it the way @draufgeschaut described it. But note the class notation: Not \DomDocument(); right is: \DOMDocument(). With the slash in Front, PHP uses its own classes.