Home > Backend Development > PHP Problem > What should I do if php domdocument cannot be found?

What should I do if php domdocument cannot be found?

藏色散人
Release: 2023-03-11 19:18:01
Original
2003 people have browsed it

Solution for php domdocument not found: 1. Execute the "sudo apt-get install php-dom" command; 2. Execute the "yum install php-xml" command.

What should I do if php domdocument cannot be found?

The operating environment of this article: ubuntu 16.04 system, php5.3 version, DELL G3 computer

Specific questions:

php - Class 'DOMDocument' not found

I am getting an error on the page of my Magento application; when I access it it always shows this message error:

Fatal error: Class 'DOMDocument' not found in /home/.../lib/Zend/Feed/Abstract.php on line 95
Copy after login

Can you give me a solution? I'm using magento 1.4.1.1.

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
Copy after login

On Centos/Fedora/Red Hat:

yum install php-xml
Copy after login

If you find a conflict between PHP packages, you can Try to see if a specific PHP version package exists: php53-xml (if your system is running PHP5.3).

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of What should I do if php domdocument cannot be found?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template