Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-18157

items.php returns 500 status in CentOS 7

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 4.0.23
    • Frontend (F)
    • 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).

            zabbix.dev Zabbix Development Team
            uki Yuuki Enomoto
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: