Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call to undefined function Doctrine\ORM\Mapping\Driver\simplexml_load_file()

I am using Symfony2 and I am deploying my web to a CentOs6 server. I got this exception

FatalErrorException: Error: Call to undefined function Doctrine\ORM\Mapping\Driver\simplexml_load_file() in vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php line 736

What did I miss ? Thanks

like image 514
Hendra Huang Avatar asked Feb 03 '16 10:02

Hendra Huang


2 Answers

looks like for some reason you don't have the simplexml extension installed in your php version.

Have a look here for full details.

like image 186
DevDonkey Avatar answered Nov 12 '22 00:11

DevDonkey


on debian apache2 system

$ sudo apt install php-xml
$ sudo systemctl restart apache2
like image 20
themadmax Avatar answered Nov 11 '22 22:11

themadmax