-
Problem report
-
Resolution: Fixed
-
Trivial
-
6.0.33rc1
-
S24-W30/31, S24-W32/33
-
0.25
Runtime error:
Runtime errors: Undefined array key 100077 [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerNotificationsGet->doAction() -> CControllerNotificationsGet->loadNotifications() -> CConfigFile->{closure}() in app/controllers/CControllerNotificationsGet.php:208] Trying to access array offset on null [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerNotificationsGet->doAction() -> CControllerNotificationsGet->loadNotifications() -> CConfigFile->{closure}() in app/controllers/CControllerNotificationsGet.php:213] Trying to access array offset on null [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerNotificationsGet->doAction() -> CControllerNotificationsGet->loadNotifications() -> CConfigFile->{closure}() in app/controllers/CControllerNotificationsGet.php:232]
This problem was fixed in CTrigger.php file updating $sqlParts['where']['lastchangesince'] and $sqlParts['where']['lastchangetill']
Looks like issue appears when several problems has same triggering time.
// lastChangeSince if ($options['lastChangeSince'] !== null) { $sqlParts['where']['lastchangesince'] = 't.lastchange>='.zbx_dbstr($options['lastChangeSince']); } // lastChangeTill if ($options['lastChangeTill'] !== null) { $sqlParts['where']['lastchangetill'] = 't.lastchange<='.zbx_dbstr($options['lastChangeTill']); }
Added '=' to 't.lastchange>' and 't.lastchange<'