-
Problem report
-
Resolution: Cannot Reproduce
-
Major
-
None
-
3.4.11
-
None
-
Ubuntu 16.04
Steps to reproduce:
- Select a trigger prototype under Configuration->Templates->Discovery->Trigger Prototypes.
- Edit the Expression.
- Click Update.
Result:
The web interface shows a blank screen. The following appears in the Apache error log:
PHP Fatal error: Uncaught TypeError: Argument 2 passed to dbConditionString() must be of the type array, null given, called in /usr/share/zabbix/include/classes/api/services/CTriggerGeneral.php on line 1265 and defined in /usr/share/zabbix/include/db.inc.php:883\nStack trace:\n#0 /usr/share/zabbix/include/classes/api/services/CTriggerGeneral.php(1265): dbConditionString('i.key_', NULL)\n#1 /usr/share/zabbix/include/classes/api/services/CTriggerGeneral.php(999): CTriggerGeneral->implode_expressions(Array, Array, Array)\n#2 /usr/share/zabbix/include/classes/api/services/CTriggerGeneral.php(198): CTriggerGeneral->updateReal(Array, Array)\n#3 /usr/share/zabbix/include/classes/api/services/CTriggerGeneral.php(76): CTriggerGeneral->inheritOnHost(Array, Array)\n#4 /usr/share/zabbix/include/classes/api/services/CTriggerPrototype.php(471): CTriggerGeneral->inherit(Array)\n#5 /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php(123): CTriggerPrototype->update(Array)\n#6 /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWr in /usr/share/zabbix/include/db.inc.php on line 883
Expected:
The template is updated.