dsf6565 2016-04-29 07:32
浏览 110

致命错误:在Wordpress站点中找不到类“DOMDocument”

In my wordpress site I get the error "Fatal error: Class 'DOMDocument' not found"

php-xml not being installed on the server can cause the issue but it's already installed (I'm using Centos)

I've also added "extension=dom.so" to the php.ini but it's still not working

Thanks

  • 写回答

1条回答 默认 最新

  • doucai6663 2017-11-24 12:07
    关注

    DOM is PHP module. This error usually occur when we not have this php module installed. Dom listed in phpinfo you can get this information by running phpinfo() function on any php file.

    There are few way to debug and fix this issue. - first install php-xml package

    sudo apt-get install php-xml
    

    then after restarting your apache server

    sudo service apache restart
    

    If still this issue is not fixed. check your php version and install appropriate php-xml module for it for example: for php 7.0

    apt-get install php7.0-xml
    
    评论

报告相同问题?

悬赏问题

  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?