简体   繁体   中英

Class 'DOMDocument' not found in Joomla

My Joomla site got Class 'DOMDocument' not found error.

I tried installing dom by sudo apt-get install php7.0-xml and restarted my apache.

Already add 'extension=dom.so' in my php.ini file and restarted apache.

Still, no DOM section appear in my info.php page.

I used 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.

All cPanels can be slightly different so you may not have this option but hopefully it helps someone.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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