We're installing 4.3.5 (also tried 4.4) on CentOS 7 with PHP 7.3, and the installer fails to detect SimpleXML.
The modules are enabled and are reported by a call to phpinfo(), and in spite of a complete re-installation I still get:
SimpleXML status Disabled. SimpleXML, libxml and xml PHP libraries are required.
But everything else is green.
Can I turn up any logging, etc to understand what is going wrong?
Cant detect SimpleXML
Re: Cant detect SimpleXML
Hi,
Can you check loaded modules by running php -m
In my environment below XML related libraries are enabled. Your environment should have SimpleXML(https://www.php.net/manual/en/book.simp ... .simplexml), libxml(https://www.php.net/manual/en/book.libx ... ook.libxml).
[PHP Modules]
...
libxml
...
SimpleXML
...
xml
xmlreader
xmlwriter
xsl
If your problem not resolved you can remove validation from this file <OrangeHRM>/installer/environmentCheck/SystemValidator.php
Find in that file
and replace with
But this is not recommended for production.
Can you check loaded modules by running php -m
In my environment below XML related libraries are enabled. Your environment should have SimpleXML(https://www.php.net/manual/en/book.simp ... .simplexml), libxml(https://www.php.net/manual/en/book.libx ... ook.libxml).
[PHP Modules]
...
libxml
...
SimpleXML
...
xml
xmlreader
xmlwriter
xsl
If your problem not resolved you can remove validation from this file <OrangeHRM>/installer/environmentCheck/SystemValidator.php
Find in that file
Code: Select all
public function isSimpleXMLEnabled()
{
if (
$this->hasExtensionEnabled('SimpleXML') &&
$this->hasExtensionEnabled('libxml') &&
$this->hasExtensionEnabled('xml')
) {
return true;
} else {
return false;
}
}
Code: Select all
public function isSimpleXMLEnabled()
{
return true;
}