Zend error when adding users to new role

Issues with other versions of icinga an zend were discussed here, but non of the workarounds ive found resolved the issue.
This issue occurred after updating icinga2 (including icinga-web and director)

When a new role is added to a user profile, a Zend_Form error appears, none of the changes are allied.

Zend_Form_Element::_filterValue(): Argument #2 ($key) must be passed by reference, value given

with the following debug message below

#0 [internal function]: Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}()
#1 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Form/Element.php(615): array_walk_recursive()
#2 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Form/Element.php(1415): Zend_Form_Element->getValue()
#3 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Form/Element/Multi.php(268): Zend_Form_Element->isValid()
#4 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Form.php(2296): Zend_Form_Element_Multi->isValid()
#5 /usr/share/php/Icinga/Web/Form.php(1297): Zend_Form->isValid()
#6 /usr/share/php/Icinga/Web/Form.php(1173): Icinga\Web\Form->isValid()
#7 /usr/share/icingaweb2/application/controllers/GroupController.php(239): Icinga\Web\Form->handleRequest()
#8 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Action.php(516): Icinga\Controllers\GroupController->addmemberAction()
#9 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch()
#10 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch()
#11 /usr/share/php/Icinga/Application/Web.php(290): Zend_Controller_Front->dispatch()
#12 /usr/share/php/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch()
#13 /usr/share/icingaweb2/public/index.php(4): require_once(String)
#14 {main}

Give as much information as you can, e.g.

  • Icinga Web 2 version 2.11.2

  • Used modules and their versions (System - About)

  • Web browser used: firefox, chrome

  • Icinga 2 version used (icinga2 --version)
    icinga2 - The Icinga 2 network monitoring daemon (version: r2.14.0-1)

  • PHP version used (php --version)
    PHP 8.0.30 (cli) (built: Sep 2 2023 08:05:13) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v4.0.30, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.30, Copyright (c), by Zend Technologies

  • Server operating system and version
    System information:
    Platform: Ubuntu
    Platform version: 22.04.3 LTS (Jammy Jellyfish)
    Kernel: Linux
    Kernel version: 6.2.0-1016-aws
    Architecture: x86_64

Hey,

please upgrade icinga-php-thirdparty to version 0.12.1. It will resolve this issue.

This version hasn’t been published till today. Sorry for the delay.

Hello Johannes Meyer,
thank you for the quick response.

confirming, the latest patch (0.12.0-1+ubuntu22.04) solved the issue with the user manager UI.

icinga-php-thirdparty/icinga-jammy 0.12.1-1+ubuntu22.04 all [upgradable from: 0.12.0-1+ubuntu22.04]

Thanks for the quick patch release.
Do you have some details on what went wrong with the previous update ?

There was just an issue with PHP 8.2 compatibility.