[Pkg-nagios-devel] Bug#1037925: icingacli: Icinga is not compatible with php8.2

Gabriel Rolland gabriel at resnovae.it
Fri Jun 16 08:35:50 BST 2023


Package: icingaweb2
Version: 2.11.4-2
Followup-For: Bug #1037925

The welcome page is ok, when I try to login (both with correct and wrong credentials) I get the following error:

[Fri Jun 16 09:15:59.873332 2023] [proxy_fcgi:error] [pid 1086065] [client 192.168.111.3:57572] AH01071: Got error 'PHP message: PHP Deprecated:  Creation of dynamic property Zend_Validate_NotEmpty::$zfBreakChainOnFailure is deprecated in /usr/share/icingaweb2/library/vendor/Zend/Form/Element.php on line 2176; 
PHP message: PHP Stack trace:; PHP message: PHP   1. {main}() /usr/share/icingaweb2/public/index.php:0; PHP message: PHP   2. require_once() /usr/share/icingaweb2/public/index.php:4; PHP message: PHP   3. Icinga\\Application\\Web->dispatch() /usr/share/icingaweb2/library/Icinga/Application/webrouter.php:105; PHP message: PHP   4. Zend_Controller_Front->dispatch($request = class Icinga\\Web\\Request { protected $_dispatched = TRUE; protected $_module = 'default'; protected $_moduleKey = 'module'; protected $_controller = 'authentication'; protected $_controllerKey = 'controller'; protected $_action = 'login'; protected $_actionKey = 'action'; protected $_params = ['controller' => 'authentication', 'action' => 'login', 'module' => 'default']; protected $_paramSources = [0 => '_GET', 1 => '_POST']; protected $_requestUri = '/icingaweb2/authentication/login'; protected $_baseUrl = '/icingaweb2'; protected $_basePath = NULL; protected $_pathInfo = '/authentication/login'; protected $_rawBody = NULL; protected $_aliases = []; protected $response = NULL; protected $uniqueId = NULL; protected $url = class Icinga\\Web\\Url { protected $external = NULL; protected $params = class Icinga\\Web\\UrlParams { ... }; protected $anchor = ''; protected $path = 'authentication/login'; protected $basePath = '/icingaweb2'; prote...; PHP message: PHP   5. Icinga\\Web\\Controller\\Dispatcher->dispatch($request = class Icinga\\Web\\Request { protected $_dispatched = TRUE; protected $_module = 'default'; protected $_moduleKey = 'module'; protected $_controller = 'authentication'; protected $_controllerKey = 'controller'; protected $_action = 'login'; protected $_actionKey = 'action'; protected $_params = ['controller' => 'authentication', 'action' => 'login', 'module' => 'default']; protected $_paramSources = [0 => '_GET', 1 => '_POST']; protected $_requestUri = '/icingaweb2/authentication/login'; protected $_baseUrl = '/icingaweb2'; protected $_basePath = NULL; protected $_pathInfo = '/authentication/login'; protected $_rawBody = NULL; protected $_aliases = []; protected $response = NULL; protected $uniqueId = NULL; protected $url = class Icinga\\Web\\Url { protected $external = NULL; protected $params = class Icinga\\Web\\UrlParams { ... }; protected $anchor = ''; protected $path = 'authentication/login'; protected $basePath = '/icingaw...; PHP message: PHP   6. Zend_Controller_Action->dispatch($action = 'loginAction') /usr/share/icingaweb2/library/Icinga/Web/Controller/Dispatcher.php:76; PHP message: PHP   7. Icinga\\Controllers\\AuthenticationController->loginAction() /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php:507; PHP message: PHP   8. Icinga\\Web\\Form->handleRequest($request = *uninitialized*) /usr/share/icingaweb2/application/controllers/AuthenticationController.php:94; PHP message: PHP   9. Icinga\\Web\\Form->isValid($formData = ['username' => 'resnovae', 'password' => '********', 'rememberme' => '0', 'redirect' => '', 'formUID' => 'form_login', 'CSRFToken' => '1530655134|ac3b0c824f1d627372153d4463a60b6bba41e0da69cd2bbf2c59de4ed556405a', 'btn_submit' => 'Accedi']) /usr/share/icingaweb2/library/Icinga/Web/Form.php:1173; PHP message: PHP  10. Zend_Form->isValid($data = ['username' => 'resnovae', 'password' => '********', 'rememberme' => '0', 'redirect' => '', 'formUID' => 'form_login', 'CSRFToken' => '1530655134|ac3b0c824f1d627372153d4463a60b6bba41e0da69cd2bbf2c59de4ed556405a', 'btn_submit' => 'Accedi']) /usr/share/icingaweb2/library/Icinga/Web/Form.php:1297; PHP message: PHP  11. Zend_Form_Element->isValid($value = 'resnovae', $context = ['username' => 'resnovae', 'password' => '********', 'rememberme' => '0', 'redirect' => '', 'formUID' => 'form_login', 'CSRFToken' => '1530655134|ac3b0c824f1d627372153d4463a60b6bba41e0da69cd2bbf2c59de4ed556405a', 'btn_submit' => 'Accedi']) /usr/share/icingaweb2/library/vendor/Zend/Form.php:2280; PHP message: PHP  12. Zend_Form_Element->getValidators() /usr/share/icingaweb2/library/vendor/Zend/Form/Element.php:1389; PHP message: PHP  13. Zend_Form_Element->_loadValidator($validator = ['validator' => 'NotEmpty', 'breakChainOnFailure' => TRUE, 'options' => []]) /usr/share/icingaweb2/library/vendor/Zend/Form/Element.php:1291; PHP message: PHP Deprecated:  Creation of dynamic property Zend_Validate_NotEmpty::$zfBreakChainOnFailure is deprecated in /usr/share/icingaweb2/library/vendor/Zend/Form/Element.php on line 2176; PHP message: PHP Stack trace:; PHP message: PHP   1. {main}() /usr/share/icingaweb2/public/index.php:0; PHP message: PHP   2. require_once() /usr/share/icingaweb2/public/index.php:4; PHP message: PHP   3. Icinga\\Application\\Web->dispatch() /usr/share/icingaweb2/library/Icinga/Application/webrouter.php:105; PHP message: PHP   4. Zend_Controller_Front->dispatch($request = class Icinga\\Web\\Request { protected $_dispatched = TRUE; protected $_module = 'default'; protected $_moduleKey = 'module'; protected $_controller = 'authentication'; protected $_controllerKey = 'controller'; protected $_action = 'login'; protected $_actionKey = 'action'; protected $_params = ['controller' => 'authentication', 'action' => 'login', 'module' => 'default']; protected $_paramSources = [0 => '_GET', 1 => '_POST']; protected $_requestUri = '/icingaweb2/authentication/login'; protected $_baseUrl = '/icingaweb2'; protected $_basePath = NULL; protected $_pathInfo = '/authentication/login'; protected $_rawBody = NULL; protected $_aliases = []; protected $response = NULL; protected $uniqueId = NULL; protected $url = class Icinga\\Web\\Url { protected $external = NULL; protected $params = class Icinga\\Web\\UrlParams { ... }; protected $anchor = ''; protected $path = 'authentication/login'; protected $basePath = '/icingaweb2'; prote...; PHP message: PHP   5. Icinga\\Web\\Controller\\Dispatcher->dispatch($request = class Icinga\\Web\\Request { protected $_dispatched = TRUE; protected $_module = 'default'; protected $_moduleKey = 'module'; protected $_controller = 'authentication'; protected $_controllerKey = 'controller'; protected $_action = 'login'; protected $_actionKey = 'action'; protected $_params = ['controller' => 'authentication', 'action' => 'login', 'module' => 'default']; protected $_paramSources = [0 => '_GET', 1 => '_POST']; protected $_requestUri = '/icingaweb2/authentication/login'; protected $_baseUrl = '/icingaweb2'; protected $_basePath = NULL; protected $_pathInfo = '/authentication/login'; protected $_rawBody = NULL; protected $_aliases = []; protected $response = NULL; protected $uniqueId = NULL; protected $url = class Icinga\\Web\\Url { protected $external = NULL; protected $params = class Icinga\\Web\\UrlParams { ... }; protected $anchor = ''; protected $path = 'authentication/login'; protected $basePath = '/icingaw...; PHP message: PHP   6. Zend_Controller_Action->dispatch($action = 'loginAction') /usr/share/icingaweb2/library/Icinga/Web/Controller/Dispatcher.php:76; PHP message: PHP   7. Icinga\\Controllers\\AuthenticationController->loginAction() /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php:507; PHP message: PHP   8. Icinga\\Web\\Form->handleRequest($request = *uninitialized*) /usr/share/icingaweb2/application/controllers/AuthenticationController.php:94; PHP message: PHP   9. Icinga\\Web\\Form->isValid($formData = ['username' => 'resnovae', 'password' => '********', 'rememberme' => '0', 'redirect' => '', 'formUID' => 'form_login', 'CSRFToken' => '1530655134|ac3b0c824f1d627372153d4463a60b6bba41e0da69cd2bbf2c59de4ed556405a', 'btn_submit' => 'Accedi']) /usr/share/icingaweb2/library/Icinga/Web/Form.php:1173; PHP message: PHP  10. Zend_Form->isValid($data = ['username' => 'resnovae', 'password' => '********', 'rememberme' => '0', 'redirect' => '', 'formUID' => 'form_login', 'CSRFToken' => '1530655134|ac3b0c824f1d627372153d4463a60b6bba41e0da69cd2bbf2
[Fri Jun 16 09:15:59.880127 2023] [proxy_fcgi:error] [pid 1086065] [client 192.168.111.3:57572] AH01071: Got error 'id($value = '********', $context = ['username' => 'resnovae', 'password' => '********', 'rememberme' => '0', 'redirect' => '', 'formUID' => 'form_login', 'CSRFToken' => '1530655134|ac3b0c824f1d627372153d4463a60b6bba41e0da69cd2bbf2c59de4ed556405a', 'btn_submit' => 'Accedi']) /usr/share/icingaweb2/library/vendor/Zend/Form.php:2280; PHP message: PHP  12. Zend_Form_Element->isValid($value = '********', $context = ['username' => 'resnovae', 'password' => '********', 'rememberme' => '0', 'redirect' => '', 'formUID' => 'form_login', 'CSRFToken' => '1530655134|ac3b0c824f1d627372153d4463a60b6bba41e0da69cd2bbf2c59de4ed556405a', 'btn_submit' => 'Accedi']) /usr/share/icingaweb2/library/vendor/Zend/Form/Element/Password.php:85; PHP message: PHP  13. Zend_Form_Element->getValidators() /usr/share/icingaweb2/library/vendor/Zend/Form/Element.php:1389; PHP message: PHP  14. Zend_Form_Element->_loadValidator($validator = ['validator' => 'NotEmpty', 'breakChainOnFailure' => TRUE, 'options' => []]) /usr/share/icingaweb2/library/vendor/Zend/Form/Element.php:1291; PHP message: PHP Deprecated:  Creation of dynamic property Zend_Validate_NotEmpty::$zfBreakChainOnFailure is deprecated in /usr/share/icingaweb2/library/vendor/Zend/Form/Element.php on line 2176; PHP message: PHP Stack trace:; PHP message: PHP   1. {main}() /usr/share/icingaweb2/public/index.php:0; PHP message: PHP   2. require_once() /usr/share/icingaweb2/public/index.php:4; PHP message: PHP   3. Icinga\\Application\\Web->dispatch() /usr/share/icingaweb2/library/Icinga/Application/webrouter.php:105; PHP message: PHP   4. Zend_Controller_Front->dispatch($request = class Icinga\\Web\\Request { protected $_dispatched = TRUE; protected $_module = 'default'; protected $_moduleKey = 'module'; protected $_controller = 'authentication'; protected $_controllerKey = 'controller'; protected $_action = 'login'; protected $_actionKey = 'action'; protected $_params = ['controller' => 'authentication', 'action' => 'login', 'module' => 'default']; protected $_paramSources = [0 => '_GET', 1 => '_POST']; protected $_requestUri = '/icingaweb2/authentication/login'; protected $_baseUrl = '/icingaweb2'; protected $_basePath = NULL; protected $_pathInfo = '/authentication/login'; protected $_rawBody = NULL; protected $_aliases = []; protected $response = NULL; protected $uniqueId = NULL; protected $url = class Icinga\\Web\\Url { protected $external = NULL; protected $params = class Icinga\\Web\\UrlParams { ... }; protected $anchor = ''; protected $path = 'authentication/login'; protected $basePath = '/icingaweb2'; prote...; PHP message: PHP   5. Icinga\\Web\\Controller\\Dispatcher->dispatch($request = class Icinga\\Web\\Request { protected $_dispatched = TRUE; protected $_module = 'default'; protected $_moduleKey = 'module'; protected $_controller = 'authentication'; protected $_controllerKey = 'controller'; protected $_action = 'login'; protected $_actionKey = 'action'; protected $_params = ['controller' => 'authentication', 'action' => 'login', 'module' => 'default']; protected $_paramSources = [0 => '_GET', 1 => '_POST']; protected $_requestUri = '/icingaweb2/authentication/login'; protected $_baseUrl = '/icingaweb2'; protected $_basePath = NULL; protected $_pathInfo = '/authentication/login'; protected $_rawBody = NULL; protected $_aliases = []; protected $response = NULL; protected $uniqueId = NULL; protected $url = class Icinga\\Web\\Url { protected $external = NULL; protected $params = class Icinga\\Web\\UrlParams { ... }; protected $anchor = ''; protected $path = 'authentication/login'; protected $basePath = '/icingaw...; PHP message: PHP   6. Zend_Controller_Action->dispatch($action = 'loginAction') /usr/share/icingaweb2/library/Icinga/Web/Controller/Dispatcher.php:76; PHP message: PHP   7. Icinga\\Controllers\\AuthenticationController->loginAction() /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php:507; PHP message: PHP   8. Icinga\\Web\\Form->handleRequest($request = *uninitialized*) /usr/share/icingaweb2/application/controllers/AuthenticationController.php:94; PHP message: PHP   9. Icinga\\Web\\Form->isValid($formData = ['username' => 'resnovae', 'password' => '********', 'rememberme' => '0', 'redirect' => '', 'formUID' => 'form_login', 'CSRFToken' => '1530655134|ac3b0c824f1d627372153d4463a60b6bba41e0da69cd2bbf2c59de4ed556405a', 'btn_submit' => 'Accedi']) /usr/share/icingaweb2/library/Icinga/Web/Form.php:1173; PHP message: PHP  10. Zend_Form->isValid($data = ['username' => 'resnovae', 'password' => '********', 'rememberme' => '0', 'redirect' => '', 'formUID' => 'form_login', 'CSRFToken' => '1530655134|ac3b0c824f1d627372153d4463a60b6bba41e0da69cd2bbf2c59de4ed556405a', 'btn_submit' => 'Accedi']) /usr/share/icingaweb2/library/Icinga/Web/Form.php:1297; PHP message: PHP  11. Icinga\\Web\\Form\\Element\\CsrfCounterMeasure->isValid($value = '1530655134|ac3b0c824f1d627372153d4463a60b6bba41e0da69cd2bbf2c59de4ed556405a', $context = ['username' => 'resnovae', 'password' => '********', 'rememberme' => '0', 'redirect' => '', 'formUID' => 'form_login', 'CSRFToken' => '1530655134|ac3b0c824f1d627372153d4463a60b6bba41e0da69cd2bbf2c59de4ed556405a', 'btn_submit' => 'Accedi']) /usr/share/icingaweb2/library/vendor/Zend/Form.php:2280; PHP message: PHP  12. Zend_Form_Element->isValid($value = '1530655134|ac3b0c824f1d627372153d4463a60b6bba41e0da69cd2bbf2c59de4ed556405a', $context = ['username' => 'resnovae', 'password' => '********', 'rememberme' => '0', 'redirect' => '', 'formUID' => 'form_login', 'CSRFToken' => '1530655134|ac3b0c824f1d627372153d4463a60b6bba41e0da69cd2bbf2c59de4ed556405a', 'btn_submit' => 'Accedi']) /usr/share/icingaweb2/library/Icinga/Web/Form/Element/CsrfCounterMeasure.php:59; PHP message: PHP  13. Zend_Form_Element->getValidators() /usr/share/icingaweb2/library/vendor/Zend/Form/Element.php:1389; PHP message: PHP  14. Zend_Form_Element->_loadValidator($validator = ['validator' => 'NotEmpty', 'breakChainOnFailure' => TRUE, 'options' => []]) /usr/share/icingaweb2/library/vendor/Zend/Form/Element.php:1291', referer: https://********/icingaweb2/authentication/login

Also setting ini_set('display_errors','Off') and error_reporting(0) the result does not change. 
Inside the webrouter.php file I saw that there is an "error_reporting(E_ALL | E_STRICT);", but even editing this brings no change.



More information about the Pkg-nagios-devel mailing list