問題描述
我在 Magento 應用程序的頁面上發(fā)現(xiàn)錯誤;當我訪問它時,它總是顯示此消息錯誤:
I've found an error on a page in my Magento application; it always show this message error when I visit it:
致命錯誤:在第 95 行的/home/.../lib/Zend/Feed/Abstract.php 中找不到DOMDocument"類
Fatal error: Class 'DOMDocument' not found in /home/.../lib/Zend/Feed/Abstract.php on line 95
你能給我一個解決方案嗎?我使用的是 magento 1.4.1.1.
Can you give me a solution? I'm using magento 1.4.1.1.
推薦答案
您需要安裝DOM> 擴展名.您可以在 Debian/Ubuntu 上使用:
You need to install the DOM extension. You can do so on Debian / Ubuntu using:
sudo apt-get install php-dom
在 Centos/Fedora/Red Hat 上:
And on Centos / Fedora / Red Hat:
yum install php-xml
如果您在 PHP 包之間遇到?jīng)_突,您可以嘗試查看是否存在特定的 PHP 版本包:例如php53-xml
如果您的系統(tǒng)運行 PHP5.3.
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.
這篇關(guān)于未找到“DOMDocument"類的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!