I've found an error on a page in my Magento application; it always show this message error when I visit it:
Fatal error: Class 'DOMDocument' not found in /home/.../lib/Zend/Feed/Abstract.php on line 95
Can you give me a solution? I'm using magento 1.4.1.1.
You need to install the DOM extension. You can do so on Debian / Ubuntu using:
sudo apt-get install php-dom
And on Centos / Fedora / Red Hat:
yum install php-xml
If you get conflicts between PHP packages, you could try to see if the specific PHP version package exists instead: e.g. php53-xml
if your system runs PHP5.3.
installing php-xml solved this for me but don't forget the 'service httpd restart'
@zzapper thanks, that got me on the rails! In my case I needed to restart apache2
service apache2 restart
.remember to restart apache afterwards
For PHP7, it's just
php-doc
.For me:
sudo apt-get install php7.1-xml