picocms / Pico

Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
3.83k stars 614 forks source link

DOM not loaded error #477

Closed kc0dxf closed 5 years ago

kc0dxf commented 5 years ago

I'm trying to install Pico 2.0.4 on KDE Neon 5.14. When I go to the Pico site I get the DOM warning: Pico requires the PHP extension 'dom' to run. Any ideas how to resolve this? I've tried putting extension = dom.sa in the php.ini (using php v7.2) but that doesn't work.

PhrozenByte commented 5 years ago

You must install the PHP DOM extension. Correct me if I'm wrong, but KDE Neon is based on Ubuntu, right? If this is true, the PHP DOM extension is in the php7.2-dom virtual package, which is provided by the php7.2-xml package. Install the php7.2-xml package on your system, e.g. by opening a shell and running:

$ sudo apt-get install php7.2-xml
kc0dxf commented 5 years ago

Yes, that package is installed but I still get the message.

PhrozenByte commented 5 years ago

Revert all your changes you made to your php.ini and restart PHP and/or your webserver (or: simply reboot). The extension isn't loaded, otherwise the message won't appear. Check your phpinfo whether the extension is loaded (create a info.php with the contents <?php phpinfo();) and check PHP's error.log for related messages.

If it still doesn't work, please contact the support/community of KDE Neon and/or Ubuntu to get help to proberly setup your webserver resp. PHP. Pico requires PHP 5.3.6 or above (PHP 7.2 works fine) with the extensions dom and mbstring loaded. Unfortunately I'm neither using KDE Neon nor Ubuntu, thus I can't provide more help about how to setup a webserver on your distribution. KDE Neon might use different package sources, so that the PHP DOM extension isn't actually provided by the php7.2-xml package, but another package.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! :+1: