找不到类"DOMDocument"

编程入门 行业动态 更新时间:2024-10-27 22:29:37
本文介绍了找不到类"DOMDocument"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在Magento应用程序的页面上发现错误;当我访问它时,它总是显示此消息错误:

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 5和PHP 5.3软件包之间遇到冲突,则可以尝试查看php53-xml软件包是否存在.

If you get conflicts between PHP 5 and PHP 5.3 packages, you could try to see if the php53-xml package exists instead.

更多推荐

找不到类"DOMDocument"

本文发布于:2023-10-05 11:10:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1467358.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:找不到   quot   DOMDocument

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!