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

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 4.4.0
    • Frontend (F)
    • CentOS 8.x

      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).

            kpavars Kristians Pavars
            andre.silva André Pereira da Silva
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: