Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#77212 - [zabbix-frontend-php] Incompatibility with PHP 8.2
Attached to Project:
Arch Linux
Opened by Oleksandr Natalenko (post-factum) - Saturday, 21 January 2023, 21:14 GMT
Last edited by Florian Pritz (bluewind) - Sunday, 07 May 2023, 09:23 GMT
Opened by Oleksandr Natalenko (post-factum) - Saturday, 21 January 2023, 21:14 GMT
Last edited by Florian Pritz (bluewind) - Sunday, 07 May 2023, 09:23 GMT
|
DetailsAfter the latest PHP upgrade Zabbix WebUI is broken.
The following changes are required to make it work again: ``` diff '--color=auto' -Naur zabbix-6.2.6~/ui/include/classes/graphdraw/CGraphDraw.php zabbix-6.2.6/ui/include/classes/graphdraw/CGraphDraw.php --- zabbix-6.2.6~/ui/include/classes/graphdraw/CGraphDraw.php 2022-11-28 09:51:05.795545369 +0100 +++ zabbix-6.2.6/ui/include/classes/graphdraw/CGraphDraw.php 2023-01-21 22:11:15.257446094 +0100 @@ -19,6 +19,7 @@ **/ +#[AllowDynamicProperties] abstract class CGraphDraw { /** diff '--color=auto' -Naur zabbix-6.2.6~/ui/include/classes/helpers/CArrayHelper.php zabbix-6.2.6/ui/include/classes/helpers/CArrayHelper.php --- zabbix-6.2.6~/ui/include/classes/helpers/CArrayHelper.php 2022-11-28 09:51:05.795545369 +0100 +++ zabbix-6.2.6/ui/include/classes/helpers/CArrayHelper.php 2023-01-21 22:12:07.084124859 +0100 @@ -169,7 +169,7 @@ } } self::$fields = $fields; - uasort($array, ['self', 'compare']); + uasort($array, [self::class, 'compare']); } /** diff '--color=auto' -Naur zabbix-6.2.6~/ui/include/classes/html/CTag.php zabbix-6.2.6/ui/include/classes/html/CTag.php --- zabbix-6.2.6~/ui/include/classes/html/CTag.php 2022-11-28 09:51:05.799545414 +0100 +++ zabbix-6.2.6/ui/include/classes/html/CTag.php 2023-01-21 22:11:34.774115369 +0100 @@ -19,6 +19,7 @@ **/ +#[AllowDynamicProperties] class CTag extends CObject { /** ``` Probably, there are more places to change, but this is what I've managed to bump into. |
This task depends upon
Closed by Florian Pritz (bluewind)
Sunday, 07 May 2023, 09:23 GMT
Reason for closing: Fixed
Additional comments about closing: Should be fixed with zabbix 6.4.x. If not, please reopen.
Sunday, 07 May 2023, 09:23 GMT
Reason for closing: Fixed
Additional comments about closing: Should be fixed with zabbix 6.4.x. If not, please reopen.