Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-17344

PHP 7.4: Errors returned when applying a filter with empty "Items list" in Monitoring -> Latest data -> log or text item history

XMLWordPrintable

    • 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:

      1. Make sure You're using php 7.4
      2. Open any existing host or create a new one
      3. Add an item with "type of information" set to "log" or "text"
      4. Wait for the item to collect at least 1 value
      5. Navigate to Monitoring => Latest data , select the previously created host in filter field "Hosts" and press "Apply"
      6. When the list of items is returned, press on "History" button next to the previously created item
      7. 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.

      Example:

            iivs Ivo Kurzemnieks
            solonkins Sergejs Olonkins
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: