-
Problem report
-
Resolution: Duplicate
-
Trivial
-
None
-
7.0.0alpha4
-
None
-
Sprint 103 (Aug 2023)
Most likely related to ZBX-23210.
There sometimes is an PHP runtime error when unlinking a template. Not sure what exactly causes it, but I could reproduce it with the following scenario:
- Open Template configuration list
- Delete the first template (when sorting by name ASC) "AIX by Zabbix agent" (this is simply so that it is easier to follow the scenario)
- Open the now 1st template "Alcatel Timetra TiMOS by SNMP"
- Link it with the 2nd template - "Apache ActiveMQ by JMX" and Update
- Open the 2nd template and link it with 3rd template - "Apache by HTTP", press Update
- Click the 2nd template again, press "Unlink" to unlink "Apache by HTTP", press Update
Result
PHP runtime error:
Undefined index: flags [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerTemplateUpdate->doAction() -> CApiWrapper->__call() -> CFrontendApiWrapper->callMethod() -> CApiWrapper->callMethod() -> CFrontendApiWrapper->callClientMethod() -> CLocalApiClient->callMethod() -> CTemplate->update() -> CHostGeneral->updateTemplates() -> CHostGeneral::unlinkTemplatesObjects() -> CItem::unlinkTemplateObjects() -> CItem::inherit() -> CItem::inheritChunk() -> CItem::checkInventoryLinks() -> CConfigFile->{closure}() in include/classes/api/services/CItem.php:1412]
- caused by
-
ZBXNEXT-6980 Implement audit log for item
- Closed
- duplicates
-
ZBX-23275 Undefined index "flags" when deleting template
- Closed