-
Type:
Problem report
-
Resolution: Unresolved
-
Priority:
Minor
-
Affects Version/s: 8.0.0rc1 (master)
-
Component/s: Frontend (F)
-
S26-W32/33
-
0.25
The following runtime error is observed in PHP logs in case if user attempts to test "Zabbix trapper" with "Prometheus pattern" or any other preprocessing step which uses function "avg" or other for item prototype. Following runtime error is observed:
Undefined array key "get_value" [zabbix.php:17 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerPopupItemTestSend->checkInput() -> CControllerPopupItemTest->getInput() -> CController->getInput() -> CConfigFile->{closure}() in include/classes/mvc/CController.php:453]
Besides error above, when "Not supported" checkbox is selected/ unselected under "Test item preprocessing step" following error appears in console log:
VM21806:47
Uncaught TypeError: Cannot read properties of null (reading 'getField')
at HTMLInputElement.<anonymous> (<anonymous>:47:69)
(anonymous) @ VM21806:47
Steps to reproduce:
- Open Hosts > Discovery rules > Item prototypes
- Press "Create item prototype" button
- Choose Type: Zabbix trapper
- Fill in "Name" => "test"; "Key" => "trap"
- Select "Preprocessing" tab => Click "Add"
- Select "Prometheus pattern" preprocessing type
- Enter "test" in the first parameter
- Press "Test" for this preprocessing step
- Select/ Unselect "Not supported" checkbox
Result 1: Console error: Uncaught TypeError: Cannot read properties of null (reading 'getField')
at HTMLInputElement.<anonymous> (<anonymous>:47:69)
![]()
Expected 1: No errors should appear
10. Press "Test" in "Test item" pop-up
Result 2: Error: "cannot apply Prometheus pattern: data extraction error: no data (at least one value is required)" appears. The above mentioned runtime error is observed.
Expected 2: No php runtime errors should appear
- caused by
-
ZBXNEXT-10393 Introduce inline form validation - Item test form
-
- Closed
-