You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.
When adding or updating Grafana graphs, Icinga Web 2 shows this error:
Fatal error: Uncaught Error: Call to a member function getValue() on null in /usr/share/icingaweb2/modules/grafana/application/forms/Graph/GraphForm.php:202 Stack trace: #0 /usr/share/php/Icinga/Web/Form.php(1154): Icinga\Module\Grafana\Forms\Graph\GraphForm->onSuccess() #1 /usr/share/icingaweb2/modules/grafana/application/controllers/GraphController.php(108): Icinga\Web\Form->handleRequest() #2 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Grafana\Controllers\GraphController->updateAction() #3 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch('updateAction') #4 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #5 /usr/share/php/Icinga/Application/Web.php(407): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #6 /usr/share/php/Icinga/Application/webrouter.php(104): Icinga\Application\Web-> in /usr/share/icingaweb2/modules/grafana/application/forms/Graph/GraphForm.php on line 202
Possible Solution
Unknown
Steps to Reproduce (for bugs)
Create or update Grafana Graph
Context
Your Environment
Icinga Web 2 Grafana version (System - About): Latest
Icinga Web 2 version and modules (System - About): monitoring: 2.5.1
Version used (icinga2 --version): version: r2.8.2-1
i fixed it in master branch. But you can also just edit line 202 in /usr/share/icingaweb2/modules/grafana/application/forms/Graph/GraphForm.php and change = to ==
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected Behavior
Add or update Grafana graph.
Current Behavior
When adding or updating Grafana graphs, Icinga Web 2 shows this error:
Fatal error: Uncaught Error: Call to a member function getValue() on null in /usr/share/icingaweb2/modules/grafana/application/forms/Graph/GraphForm.php:202 Stack trace: #0 /usr/share/php/Icinga/Web/Form.php(1154): Icinga\Module\Grafana\Forms\Graph\GraphForm->onSuccess() #1 /usr/share/icingaweb2/modules/grafana/application/controllers/GraphController.php(108): Icinga\Web\Form->handleRequest() #2 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Grafana\Controllers\GraphController->updateAction() #3 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch('updateAction') #4 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #5 /usr/share/php/Icinga/Application/Web.php(407): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #6 /usr/share/php/Icinga/Application/webrouter.php(104): Icinga\Application\Web-> in /usr/share/icingaweb2/modules/grafana/application/forms/Graph/GraphForm.php on line 202
Possible Solution
Unknown
Steps to Reproduce (for bugs)
Context
Your Environment
icinga2 --version
): version: r2.8.2-1icinga2 feature list
):icinga2 daemon -C
):The text was updated successfully, but these errors were encountered: