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

Zabbix needs php-json (and is not installed) in zabbix official repository (at least in CentOS 8.x)

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Need info
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.4.0
    • Fix Version/s: None
    • Component/s: Frontend (F)
    • Environment:
      CentOS 8.x

      Description

      After installing zabbix from zabbix repository and making some monitoring i start to get some errors in php error log.

      After investigation the issue is php-json package is not installed when installing from zabbix offical repository. Manually installing php-json solves the issue.
      https://www.zabbix.com/download?zabbix=4.4&os_distribution=centos&os_version=8&db=mysql

      PHP Fatal error: Uncaught Error: *Call to undefined function json_encode() in /usr/share/zabbix/include/func.inc.php:1833*
       Stack trace:
       #0 /usr/share/zabbix/include/classes/mvc/CController.php(330): access_deny(1)
       #1 /usr/share/zabbix/include/classes/core/ZBase.php(392): CController->run()
       #2 /usr/share/zabbix/include/classes/core/ZBase.php(158): ZBase->processRequest(Object(CRouter))
       #3 /usr/share/zabbix/include/config.inc.php(33): ZBase->run('default')
       #4 /usr/share/zabbix/zabbix.php(21): require_once('/usr/share/zabb...')
      

      Also, if php json extension is needed, IMHO it should be listed as a requirement in zabbix install page (as are others required php extensions).

        Attachments

          Activity

            People

            Assignee:
            ArtursL Arturs Lontons
            Reporter:
            andre.silva André Pereira da Silva
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: