简体   繁体   English

在 Joomla 中找不到“DOMDocument”类

[英]Class 'DOMDocument' not found in Joomla

My Joomla site got Class 'DOMDocument' not found error.我的 Joomla 站点出现Class 'DOMDocument' not found错误。

I tried installing dom by sudo apt-get install php7.0-xml and restarted my apache.我尝试通过sudo apt-get install php7.0-xml安装 dom 并重新启动我的 apache。

Already add 'extension=dom.so' in my php.ini file and restarted apache.已经在我的 php.ini 文件中添加了 'extension=dom.so' 并重新启动了 apache。

Still, no DOM section appear in my info.php page.尽管如此,我的 info.php 页面中没有出现 DOM 部分。

I used Ubuntu 14.04.5 LTS Apache/2.4.20 PHP 7.0.8-4+deb.sury.org~trusty+1 (cli) ( NTS )我使用了 Ubuntu 14.04.5 LTS Apache/2.4.20 PHP 7.0.8-4+deb.sury.org~trusty+1 (cli) ( NTS )

Now, I have no idea where to check anymore.现在,我不知道去哪里检查了。 Please help.请帮忙。 Thank you谢谢

最后,我通过sudo apt-get dist-upgrade更新了我的 apache 和机器,现在一切正常。

I also had this problem and solved it in a different way.我也遇到了这个问题,并以不同的方式解决了它。

Within cPanel I had an option to change the PHP version and set the options, from there I could choose a "dom" tickbox which solved my problem.cPanel 中,我可以选择更改 PHP 版本并设置选项,从那里我可以选择一个“dom”复选框来解决我的问题。

All cPanels can be slightly different so you may not have this option but hopefully it helps someone.所有 cPanel 都可能略有不同,因此您可能没有此选项,但希望它对某人有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM