Was there a change to the code regarding the parsing of XML in the last few iterations of CMSMS?
I'm not certain when it stopped working for me - I believe it to be recent, like 1.10 . . . I am currently on 1.10.1 with PHP 5.2.14, which is supposed to have the XML function enabled by default - I have my host looking into it but they haven't found anything yet.
My error in the CMS log:
ERROR DETECTED: Class 'XMLReader' not found at /www/lib/classes/class.moduleoperations.inc.php:217
In the Error Log:
PHP Fatal error: Class 'XMLReader' not found in /www/lib/classes/class.moduleoperations.inc.php on line 217, referer:
http://www.x.com/admin/moduleinterface. ... uleManager
My system info in the CMS shows all green including the following line:
Basic XML (expat) support (xml_function) Success On (True)
Any thoughts or ideas?
I tried this simple code and got the same error:
Code: Select all
{php}
$xml = XMLReader::open('test.xml');
// You must to use it
$xml->setParserProperty(XMLReader::VALIDATE, true);
var_dump($xml->isValid());
{/php}