-
Incident report
-
Resolution: Won't fix
-
Trivial
-
None
-
4.4.0
-
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).