This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

zs60815
zs60815

Hello,

Can anybody help with this error message? I receive it on production server, when I try to create new admin: Class 'DOMDocument' not found. The full error on the log is: Symfony\Component\Debug\Exception\FatalThrowableError: Class 'DOMDocument' not found in /var/www/php7.4/vendor/erusev/parsedown-extra/ParsedownExtra.php:477

If I run php -i from command line, DOM is there and enabled:

DOM/XML => enabled DOM/XML API Version => 20031129 libxml Version => 2.9.10 HTML Support => enabled XPath Support => enabled XPointer Support => enabled Schema Support => enabled RelaxNG Support => enabled

Also if I run php -m, there is dom. With php -r "print_r(get_loaded_extensions());" it's also on the list...

What am I missing?

Last updated

zs60815
zs60815

Nevermind, looks like command line is running different php version... and the one running the site doesn't have the extension.

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.