Icingaweb 2 Dashboard broken after update on Ubuntu


I´ve updated icinga2 and icingaweb2 by the official packages to version 2.9.0 today and the dasboard widgets are broken:

Uncaught Error: Class 'DOMImplementation' not found in /usr/share/php/Icinga/Chart/SVGRenderer.php:127
Stack trace:
#0 /usr/share/php/Icinga/Chart/SVGRenderer.php(231): Icinga\Chart\SVGRenderer->createRootDocument()
#1 /usr/share/php/Icinga/Chart/Chart.php(127): Icinga\Chart\SVGRenderer->render()
#2 /usr/share/php/Icinga/Web/Widget/Chart/InlinePie.php(245): Icinga\Chart\Chart->render()
#3 /usr/share/icingaweb2/modules/monitoring/application/views/helpers/Perfdata.php(67): Icinga\Web\Widget\Chart\InlinePie->render()
#4 /usr/share/icingaweb2/library/vendor/Zend/View/Abstract.php(345): Zend_View_Helper_Perfdata->perfdata()
#5 /usr/share/php/Icinga/Web/View.php(251): Zend_View_Abstract->__call()
#6 /usr/share/icingaweb2/modules/monitoring/application/views/scripts/list/services.phtml(117): Icinga\Web\View->__call()
#7 /usr/share/php/Icinga/Web/View.php(235): include('/usr/share/icin...')
#8 /usr/share/icingaweb2/library/vendor/Zend/View/Abstract.php(877): Icinga\Web\View->_run()
#9 /usr/share/icingaweb2/library/v

There is no schema update available so I don´t know, what´s causing this. Has anyone a hint? I am using php7.4.3 on ubuntu 20.04.2 LTS. Icinga2 Version: r2.12.4-1

From which version did you upgrade?

In my opinion from the prior latest - where could I check the version history?

Don’t know, apt log or something?

Though, I suppose you were running 2.7.x. v2.9 didn’t touch anything related to this error, but v2.8 did.

The DOM extension for PHP is required for the monitoring module since then. Install it, and this error should disappear.

1 Like

Thanks, installing php7.4-dom solved it.

1 Like

I stand corrected, it’s the case since v2.9: DOM extension required since v2.9 · Issue #4436 · Icinga/icingaweb2 · GitHub