After a Debian update my Drupal 9 installation can not show single nodes and spits the following error.
Error: Class ‘DOMDocument’ not found in DrupalComponentUtilityHtml::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:
- How to change Drupal core files
- How to apply Drupal Patch
- Drupal: Creating a Computed Entity Field
- how to disable debug in Symfony 5.x and welcome page
- How to add class to content field link in Drupal 8 / 9
1,560