[3.15] community/bareos: webui broken with php8
bareos-webui 20.0.3 is not compatible with php8, resulting in an error as soon as you access it:
==> /var/log/nginx/error.log <==
2022/01/21 13:21:38 [error] 14#14: *3 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, Zend\I18n\Translator\TextDomain given in /usr/share/bareos-webui/vendor/zendframework/zend-i18n/src/Translator/Loader/Gettext.php:142
Stack trace:
#0 /usr/share/bareos-webui/vendor/zendframework/zend-i18n/src/Translator/Loader/Gettext.php(142): array_key_exists()
#1 /usr/share/bareos-webui/vendor/zendframework/zend-i18n/src/Translator/Translator.php(662): Zend\I18n\Translator\Loader\Gettext->load()
#2 /usr/share/bareos-webui/vendor/zendframework/zend-i18n/src/Translator/Translator.php(571): Zend\I18n\Translator\Translator->loadMessagesFromPatterns()
#3 /usr/share/bareos-webui/vendor/zendframework/zend-i18n/src/Translator/Translator.php(440): Zend\I18n\Translator\Translator->loadMessages()
#4 /usr/share/bareos-webui/vendor/zendframework/zend-i18n/src/Translator/Translator.php(354): Zend\I18n\Translator\Translator->getTranslatedMessage()
The issue was fixed in https://github.com/bareos/bareos/commit/67646bbbe77ba3598e282e572e84d41d651555d1 and backported to 20.0.4 with https://github.com/bareos/bareos/commit/e3686480cf431570d816a86c68d12c8c23bcb2f9.
The patch applies cleanly and solves the problem, making bareos-webui usable again. Can you please either apply the patch oder update the aport to at least 20.0.4?
Thanks, Simon