After a Debian update my Drupal 9 installation can not show single nodes and spits the following error.
Error: Class ‘DOMDocument’ not found in Drupal\Component\Utility\Html::load() (line 286 of core/lib/Drupal/Component/Utility/Html.php).
I have no clue what to do and have installed all required php extensions, following some other issues with the same error.
I already removed all suspicious contrib modules and I am lost now with a broken project.
That sound like it can’t find php Dom extension, to get that try
like php7.3-xml , php7.4-xml… etcsudo apt-get install php{VERSION}-xml
, it should solve your problem
# apt-get install php7.3-xml # systemctl restart apache2
Similar Posts:
- Drupal: Creating a Computed Entity Field
- How to apply Drupal Patch
- How to change Drupal core files
- php 7.4 + nginx quick start on Windows 10 / Server 2012 / 2016 / 2019
- how to disable debug in Symfony 5.x and welcome page
1,414