-
Problem report
-
Resolution: Fixed
-
Trivial
-
4.0.18rc1, 4.4.6rc1, 5.0.0alpha2
-
Sprint 61 (Feb 2020), Sprint 62 (Mar 2020)
-
0.125
Problem description: When using PHP 7.4, the following errors are returned at the bottom of the Monitoring => Latest data view when in log or text type item history applying a filter with empty "Items list" field:
Trying to access array offset on value of type bool [history.php:130 → CView->render() → include() in include/views/monitoring.history.php:34] Trying to access array offset on value of type null [history.php:130 → CView->render() → include() in include/views/monitoring.history.php:34] Trying to access array offset on value of type null [history.php:130 → CView->render() → include() in include/views/monitoring.history.php:34]
Steps to reproduce:
- Make sure You're using php 7.4
- Open any existing host or create a new one
- Add an item with "type of information" set to "log" or "text"
- Wait for the item to collect at least 1 value
- Navigate to Monitoring => Latest data , select the previously created host in filter field "Hosts" and press "Apply"
- When the list of items is returned, press on "History" button next to the previously created item
- In the opened view, select Filter configuration, remove the item name from field "Items list" and press "Apply"
Result: Errors are observed at the bottom of the page.
Expected: no errors should be returned.