Notice: Undefined property: DOMDocument::$documentElement

≡放荡痞女 提交于 2019-12-04 12:20:31

I have Ubuntu 16.04 installation with php7.0.15, and i fixed the error by just removing php-xdebug extension.

sudo apt-get purge php-xdebug

I finally resolved the problem by uninstalling / reinstalling php7. I have no idea why I had this issue though...

In my case the error was triggered by the dom.so extension being loaded in two places. Removing one fixed the problem.

This is very strange BUT try to change php extensions load order in php config. This solve my problem... move dom extension above or below in list

Hi I also meet this problem. The way I resolve it is:

composer update

Hope that help some one.

Thank @pjehan. I had the same problem and I've lost a day. Finally, I did like you and it was successful. Just specify one thing: unistall PHP 7.0.x and PHP 7.1.3 intaller (stable version for PHP 7). The link of the version PHP 7 stable: http://php.net/downloads.php Thank you so much, @pjehan, you saved my life :D

I solved the problem by disabling xdebug for the cli

In my case the dom extension was enabled twice. Once in the dom.ini and also in the php.ini. I removed the extension=dom.so entry from the php.ini and reloaded the apache2 webserver.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!