I recently upgraded an ubuntu 24.04 from icingaweb2 2.12.2 and icingadb-1.1.3
and after the update icingadb throws the following error.
Fatal error: Declaration of Predis\Connection\Resource\Stream::seek(int $offset, int $whence = Predis\Connection\Resource\SEEK_SET): void must be compatible with Psr\Http\Message\StreamInterface::seek($offset, $whence = Psr\Http\Message\SEEK_SET) in /usr/share/icinga-php/vendor/vendor/predis/predis/src/Connection/Resource/Stream.php on line 163
Everything else works and of course the error disappears if I disable the icingadb module
I reinstalled icingaweb2 and everything even with pruge, nothing helped.
Do you have any idea what can cause this issue or how to fix it?
Best Regards
Nicolas
Edit:
I put a litte bit more work in it and it was a outdated library in a custom module.
the module uses a not so recent version of psr/http-message
as soon as I delete the module it works again
But I checked the 2 files mentioned in the error.
and the definitions of the functions in the 2 files differ on the ubuntu 24.04 package
Edit2: after another purge the files are ok and contain the same definition of the correct interface
- Icinga Web 2 version 2.12.6
- icinga/icinga-php-library 0.18.1
- icinga/icinga-php-thirdparty 0.14.0
- Used modules and their versions (System - About) icingadb 1.3.0
- Web browser used
- Icinga 2 version used (
icinga2 --version) - PHP version used (
php --version) 8.3 - Server operating system and version ubuntu 24.04