Details
-
Type:
Problem report
-
Status: Closed
-
Priority:
Trivial
-
Resolution: Duplicate
-
Affects Version/s: 4.0.28
-
Fix Version/s: None
-
Component/s: Frontend (F)
-
Labels:None
-
Environment:cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
rpm -q php
php-5.4.16-48.el7.x86_64
Description
Steps to reproduce:
Install Zabbix 4.0.28 under CentOS 7.
Try to access any graph.
Result:
Graphs do not work.
Expected:
According to:
https://www.zabbix.com/documentation/4.0/manual/installation/requirements
Zabbix 4.0 should work under PHP 5.4.0
$ grep ": array" include/classes/graphdraw/CLineGraphDraw.php
private function getOptimalDateTimeIntervalSpec(int $pref_sub_interval, float $min_sub_interval): array {
private function getDateTimeIntervals(int $start, int $end, DateInterval $interval): array {
Looks like Zabbix 4.0 is using PHP 7 features:
https://www.tutorialspoint.com/php7/php7_returntype_declarations.htm
Please clean PHP code from non supported features.
Attachments
Issue Links
- is duplicated by
-
ZBX-18919 Zabbix 4.0.28 graph cannot be displayed on PHP 5.4.16 environment
-
- Closed
-