What if domdocument can't be found in php?
This article is to share with you what to do if domdocument can't be found in php. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Specific questions:
Php-cannot find the 'DOMDocument' class
I found an error on the page of the Magento application; when I visit it, it always displays this message error:
Fatal error: Class' DOMDocument' not found in / home/.../lib/Zend/Feed/Abstract.php on line 95
Can you give me a solution? Magento 1.4.1.1 is in use.
Solution:
You need to install the DOM extension. You can do this on Debian/Ubuntu using the following command:
Sudo apt-get install php-dom
On Centos/Fedora/Red Hat:
Yum install php-xml
If you find conflicts between PHP packages, you can try to see if a specific PHP version package exists: php53-xml (if your system is running PHP5.3).
Thank you for reading! This is the end of the article on "what to do if you can't find domdocument in php". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!