Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cakephp Class 'DOMDocument' not found

I tried to implement rss feed following this simple explanation from cake book http://book.cakephp.org/2.0/en/core-libraries/helpers/rss.html I got this error "Class 'DOMDocument' not found in lib/Cake/Utility/Xml.php on line 99"

Any clue?

like image 584
Milos Avatar asked May 21 '12 23:05

Milos


2 Answers

Install php-xml package that provides the needed files to use the DOMDocument class

like image 168
Toote Avatar answered Oct 21 '22 11:10

Toote


I had the same trouble, with installed package. I tried to load it with new DOMDocument(); but I had to use $dom = new \DOMDocument();

Hope this helps people using CakePHP 3.x

like image 43
Isengo Avatar answered Oct 21 '22 09:10

Isengo