Icinga DB with Grafana module throwing error

Hi comunnity. On my fresh icinga installation, Grafana module throving following errors:

Deprecated
: Creation of dynamic property Icinga\Module\Grafana\ProvidedHook\Icingadb\ServiceDetailExtension::$permission is deprecated in
/usr/share/icingaweb2/modules/grafana/library/Grafana/ProvidedHook/Icingadb/IcingaDbGrapher.php
on line
75
Deprecated
: Creation of dynamic property Icinga\Module\Grafana\ProvidedHook\Icingadb\ServiceDetailExtension::$dashboard is deprecated in
/usr/share/icingaweb2/modules/grafana/library/Grafana/ProvidedHook/Icingadb/IcingaDbGrapher.php
on line
222
Deprecated
: Creation of dynamic property Icinga\Module\Grafana\ProvidedHook\Icingadb\ServiceDetailExtension::$dashboarduid is deprecated in
/usr/share/icingaweb2/modules/grafana/library/Grafana/ProvidedHook/Icingadb/IcingaDbGrapher.php
on line
223

After couple of secconds graph for service is loaded, but service page still looks like the following:

Icinga DB Web version : 1.1.0
Icinga Web 2 version : 2.11.4
Icinga 2 version : r2.14.0-1
Icinga DB version : v1.1.1
PHP version used : PHP 8.2.11
Server operating system: Debian 12

It is a known bug, the github thread provides a quickfix:

Hi there,
can someone explain what i have to do to for this workaround? I’ve got the same error.
the Workaround looks like:

diff --git a/library/Grafana/ProvidedHook/Icingadb/HostDetailExtension.php b/library/Grafana/ProvidedHook/Icingadb/HostDetailExtension.php
index 85a0126..dc0ec75 100644
--- a/library/Grafana/ProvidedHook/Icingadb/HostDetailExtension.php
+++ b/library/Grafana/ProvidedHook/Icingadb/HostDetailExtension.php
@@ -8,6 +8,7 @@ use ipl\Html\Html;
 use ipl\Html\HtmlString;
 use ipl\Html\ValidHtml;
 
+#[\AllowDynamicProperties]
 class HostDetailExtension extends HostDetailExtensionHook
 {
     use IcingaDbGrapher;
diff --git a/library/Grafana/ProvidedHook/Icingadb/ServiceDetailExtension.php b/library/Grafana/ProvidedHook/Icingadb/ServiceDetailExtension.php
index 00fa6ed..0d4fa9c 100644
--- a/library/Grafana/ProvidedHook/Icingadb/ServiceDetailExtension.php
+++ b/library/Grafana/ProvidedHook/Icingadb/ServiceDetailExtension.php
@@ -8,6 +8,7 @@ use ipl\Html\Html;
 use ipl\Html\HtmlString;
 use ipl\Html\ValidHtml;
 
+#[\AllowDynamicProperties]
 class ServiceDetailExtension extends ServiceDetailExtensionHook
 {
     use IcingaDbGrapher;

I can read the words but i don’t understand what the trying to tell me.
Can anyone explain this to me?
Thank you for your patience
Chris

I did not try it but I think this repository has the fix integrated:

Hi Moreamazingnick,
thank’s

in this repo, Thema newest version is 2.0.3.
I’m running v2.0.3.
Maybe I have to wait until the next version and pray for support for php8.2

or do you think, they integrated the fix and don’t raise the version number?

Exactly, have a look at the branch summary

image

and the details

so only one thing changed and it looks like it’s the fix you need.
Also don’t download the released version as this also isn’t containing the fix - you need the get the head or the repository. You can get it by cloning or by downloading this https://github.com/Mikesch-mp/icingaweb2-module-grafana/archive/refs/heads/master.zip

I am not a pro, therefore, i sometimes need a little help. :smiling_face:
Thank you for you detailed explanation. :+1:

I will try to include/exchange this files tonight.