#1000474 icingaweb2: Does not work with PHP 8.1

Package:
src:icingaweb2
Source:
icingaweb2
Submitter:
Bas Couwenberg
Date:
2022-06-30 16:03:04 UTC
Severity:
serious
Tags:
#1000474#5
Date:
2021-11-23 20:33:26 UTC
From:
To:
Dear Maintainer,

icingaweb2 does not work with php8.1 from experimental.

The web page shows lots of deprecations and a fatal error:

 Deprecated: Return type of Icinga\Application\Libraries::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Application/Libraries.php on line 20

 Deprecated: Return type of Icinga\Application\Config::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Application/Config.php on line 125

 Deprecated: Return type of Icinga\Application\Config::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Application/Config.php on line 145

 Deprecated: Return type of Icinga\Application\Config::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Application/Config.php on line 175

 Deprecated: Return type of Icinga\Application\Config::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Application/Config.php on line 165

 Deprecated: Return type of Icinga\Application\Config::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Application/Config.php on line 155

 Deprecated: Return type of Icinga\Application\Config::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Application/Config.php on line 135

 Deprecated: Return type of Icinga\Web\Session\SessionNamespace::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Web/Session/SessionNamespace.php on line 35

 Deprecated: Return type of Zend_Controller_Action_HelperBroker_PriorityStack::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 91

 Deprecated: Return type of Zend_Controller_Action_HelperBroker_PriorityStack::offsetExists($priorityOrHelperName) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 102

 Deprecated: Return type of Zend_Controller_Action_HelperBroker_PriorityStack::offsetGet($priorityOrHelperName) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 117

 Deprecated: Return type of Zend_Controller_Action_HelperBroker_PriorityStack::offsetSet($priority, $helper) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 137

 Deprecated: Return type of Zend_Controller_Action_HelperBroker_PriorityStack::offsetUnset($priorityOrHelperName) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 173

 Deprecated: Return type of Zend_Controller_Action_HelperBroker_PriorityStack::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 198

 Deprecated: Return type of Zend_View_Helper_Placeholder_Container_Standalone::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/View/Helper/Placeholder/Container/Standalone.php on line 317

 Deprecated: Return type of Zend_View_Helper_Placeholder_Container_Standalone::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/View/Helper/Placeholder/Container/Standalone.php on line 261

 Deprecated: Return type of Zend_View_Helper_Placeholder_Container_Standalone::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/View/Helper/Placeholder/Container/Standalone.php on line 273

 Deprecated: Return type of Zend_View_Helper_Placeholder_Container_Standalone::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/View/Helper/Placeholder/Container/Standalone.php on line 284

 Deprecated: Return type of Zend_View_Helper_Placeholder_Container_Standalone::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/View/Helper/Placeholder/Container/Standalone.php on line 296

 Deprecated: Return type of Zend_View_Helper_Placeholder_Container_Standalone::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/View/Helper/Placeholder/Container/Standalone.php on line 307

 Deprecated: Return type of Zend_Paginator::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/Paginator.php on line 513

 Deprecated: Return type of Zend_Paginator::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/Paginator.php on line 815

 Deprecated: Return type of Icinga\Authentication\AuthChain::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Authentication/AuthChain.php on line 200

 Fatal error: Uncaught ErrorException: Uncaught Zend_Controller_Response_Exception: Cannot send headers; headers already sent in /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker/PriorityStack.php, line 30 in /usr/share/icingaweb2/library/vendor/Zend/Controller/Response/Abstract.php:321 Stack trace: #0 /usr/share/icingaweb2/library/vendor/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders() #1 /usr/share/php/Icinga/Web/Response.php(356): Zend_Controller_Response_Abstract->setRedirect() #2 /usr/share/php/Icinga/Web/Response.php(407): Icinga\Web\Response->prepare() #3 /usr/share/icingaweb2/library/vendor/Zend/Controller/Response/Abstract.php(762): Icinga\Web\Response->sendHeaders() #4 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(975): Zend_Controller_Response_Abstract->sendResponse() #5 /usr/share/php/Icinga/Application/Web.php(304): Zend_Controller_Front->dispatch() #6 /usr/share/php/Icinga/Application/webrouter.php(107): Icinga\Application\Web->dispatch() #7 /usr/share/icingaweb2/public/index.php(4): require_once('...') #8 {main} thrown in /usr/share/icingaweb2/library/vendor/Zend/Controller/Response/Abstract.php:321 Stack trace: #0 [internal function]: Icinga\Application\Web->Icinga\Application\{closure}() #1 {main} Next Zend_Controller_Exception: Uncaught Zend_Controller_Response_Exception: Cannot send headers; headers already sent in /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker/PriorityStack.php, line 30 in /usr/share/icingaweb2/library/vendor/Zend/Controller/Response/Abstract.php:321 Stack trace: #0 /usr/share/icingaweb2/library/vendor/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders() #1 /usr/share/php/Icinga/Web/Response.php(356): Zend_Controller_Response_Abstract->setRedirect() #2 /usr/share/php/Icinga/Web/Response.php(407): Icinga\Web\Response->prepare() #3 /usr/share/icingaweb2/library/vendor/Zend/Controller/Response/Abstract.php(762): Icinga\Web\Response->sendHeaders() #4 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(975): Zend_Controller_Response_Abstract->sendResponse() #5 /usr/share/php/Icinga/Application/Web.php(304): Zend_Controller_Front->dispatch() #6 /usr/share/php/Icinga/Application/webrouter.php(107): Icinga\Application\Web->dispatch() #7 /usr/share/icingaweb2/public/index.php(4): require_once('...') #8 {main} thrown#0 [internal function]: Icinga\Application\Web->Icinga\Application\{closure}() #1 {main} in /usr/share/icingaweb2/library/vendor/Zend/Controller/Plugin/Broker.php:259 Stack trace: #0 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(906): Zend_Controller_Plugin_Broker->routeShutdown() #1 /usr/share/php/Icinga/Application/Web.php(471): Zend_Controller_Front->dispatch() #2 [internal function]: Icinga\Application\Web->Icinga\Application\{closure}() #3 {main} thrown in /usr/share/icingaweb2/library/vendor/Zend/Controller/Plugin/Broker.php on line 259

Kind Regards,

Bas

#1000474#18
Date:
2022-06-30 16:02:23 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
icingaweb2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1000474@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bas Couwenberg <sebastic@debian.org> (supplier of updated icingaweb2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 30 Jun 2022 16:23:12 +0200
Source: icingaweb2
Architecture: source
Version: 2.11.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>
Changed-By: Bas Couwenberg <sebastic@debian.org>
Closes: 1000474
Changes:
 icingaweb2 (2.11.0-1) unstable; urgency=medium
 .
   * Team upload.
   * New upstream release.
     (closes: #1000474)
   * Bump Standards-Version to 4.6.1, no changes.
   * Update copyright file.
   * Don't uglify jQuery, moved to icinga-php-thirdparty.
   * Update lintian overrides.
Checksums-Sha1:
 a0c001eb095611e596d0a773e25d02c547ae04dc 2303 icingaweb2_2.11.0-1.dsc
 4084cd3018181919bbd0eeb15c6abc828ac6d597 11411511 icingaweb2_2.11.0.orig.tar.gz
 299a7e35cb395f004052bdff37e1104bf4001632 13092 icingaweb2_2.11.0-1.debian.tar.xz
 0cc5f878221748e7864e8d1fc98b3eb1669f6cd4 8727 icingaweb2_2.11.0-1_amd64.buildinfo
Checksums-Sha256:
 9b7c730726a369935c87f1723a2ef13254f7e893a2905a758b7ddd74023d153e 2303 icingaweb2_2.11.0-1.dsc
 c05488ec30f85a3e1cb52a72159206331f40b83be6e3b206aed2eb9c6b381513 11411511 icingaweb2_2.11.0.orig.tar.gz
 5c181dc40cea47d6a6b0e3d8ad9bd023dc84e22c5427981e1dbd6eb226676af7 13092 icingaweb2_2.11.0-1.debian.tar.xz
 b346fa34827c5e879b2005f86c751871883724a205ba90e0920e58956d0fde44 8727 icingaweb2_2.11.0-1_amd64.buildinfo
Files:
 7c0f5c9bdc293e881077fa884a6eb17d 2303 admin optional icingaweb2_2.11.0-1.dsc
 c60d4e0b8d700c0fd6c7f59eccd82de6 11411511 admin optional icingaweb2_2.11.0.orig.tar.gz
 79ae648349f7fd805ec78922067c3305 13092 admin optional icingaweb2_2.11.0-1.debian.tar.xz
 0364aadff39682ff05f29b375d6020fe 8727 admin optional icingaweb2_2.11.0-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEgYLeQXBWQI1hRlDRZ1DxCuiNSvEFAmK9tx4ACgkQZ1DxCuiN
SvFN5g//UL35CP7ufoTPSLd3NGOS4Iv9MHYF75st7M+gfLN5538H6t9RDRvm2aM1
FEN7ABKTaDox9eGWiEbB68pwVjh+3tTq+Jfi4AWwxAVYFz+F1zBHymME89Ty3LPK
ecvuwuDyD0a8kJz8JdNrhnX7KCCFEMVkUcjLPxU0ur+bk10IBk3oTovtOwXdOrqb
XkhpQ3r9UaRCGN6GKV76pmEuzy3jDBt8g5eN7gUnX7UI6uvMTFMdK5E8HSh89JCX
vlusvoTri5+gsQF1ihdqW10eNuZKY37/aOhGSe1fezAzA9RC3e/dLSX8lhR59Jyc
rFDxgQGgWXWno+kFrkwDap98FMiXyOsfd/SI14mL2w8Es3AlVaU8L7OccUtAi/UX
O3lMfyf88j5ay1nCj5SAtTr32jbf7gkV2XsvAx5QoUBSQ2CdY72Wd8GgcchdK0nw
lbXnNtKGF/380YeU+RwHz4/AmjP7DknSCsDJKTcEG0zF+UUvTEg6rWL+tloTpUi2
b3SfAWMNhOXJqdwrejBZ6jNs0KrjKRO/FiKd/orIWgwSCkwlK+IuwdENhgnRGvog
FOyEGT4dxCKRmlZ64SpIp8uErdBZ9x24FHgVKfs58EDIZRRoAUZB93IM1LlfAUP/
i9UN2HH0FYmVkDd8OM7SdluEzmJaxEjQ5tk9o1XJtaHFzMMetbc=
=fik2
-----END PGP SIGNATURE-----