items.php returns 500 status in CentOS 7

XMLWordPrintable

    • Type: Problem report
    • Resolution: Duplicate
    • Priority: Trivial
    • None
    • Affects Version/s: 4.0.23
    • Component/s: Frontend (F)
    • Environment:
      CentOS 7

      Steps to reproduce:

      1. Install Zabbix 4.0.23 server and frontend to CentOS 7
      2. Move "Configuration" -> "Hosts" -> "Items" of any host

      Result:
      items.php returns 500 status code. See also uploaded picture.

      Why:

      This is /var/log/httpd/error_log in this situation.

      [Wed Jul 29 16:16:01.799344 2020] [:error] [pid 2193] [client 10.2.200.16:53016] PHP Fatal error: Call to undefined function array_column() in /usr/share/zabbix/items.php on line 2025, referer: http://10.2.7.142/zabbix/hosts.php?ddreset=1
      

      The latest PHP version is 5.4.16-48 in CentOS 7.

      The array_column() function is used since Zabbix 4.0.23, but the function requires PHP 5.5 or greater (https://www.php.net/manual/en/function.array-column.php).

            Assignee:
            Zabbix Development Team
            Reporter:
            Yuuki Enomoto
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: