Calling undefined function simplexml_load_string ()
Function call undefined simplexml_load_string()
I get this error on all sites hosted on our server. Everything was working correctly until today and all of a sudden this error appeared.
I checked out Simplexml and is already installed on the server. Here is the error:
Fatal error: Call to undefined function simplexml_load_string () in ... /lib/Varien/Simplexml/Config.php on line 510
source to share
We had the same problem today. I tried to check if the extension was added and I became true (from the command line). Then I found that I am using multiple php versions and this site was using php5.4 which was failing for simplexml for some reason
Since I am working in cPanel / WHM environment, I ran
yum install ea-php54-php-simplexml
which fixed the problem. This is for EasyApache4. Maybe you can just update simplexml sepending to your linux taste.
source to share