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

[Patch] Undefined index: lastEvent [zabbix.php:21

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 3.2.4
    • Fix Version/s: None
    • Component/s: Frontend (F)

      Description

      The dashboard in the WebUI displays this error message:
      Undefined index: lastEvent [zabbix.php:21 ? require_once() ? ZBase->run() ? ZBase->processRequest() ? CView->getOutput() ? include() ? make_latest_issues() ? make_popup_eventlist() in include/events.inc.php:441]

      This simple patch fixes the error:

      --- /tmp/events.inc.php 2017-03-16 08:30:19.284449638 -0500
      +++ /usr/share/zabbix/include/events.inc.php    2017-03-16 08:24:10.538594536 -0500
      @@ -438,7 +438,7 @@
                      $table->setHeader([_('Time'), _('Status'), _('Duration'), _('Age')]);
              }
       
      -       if ($trigger['lastEvent']) {
      +       if (isset($trigger['lastEvent']) && $trigger['lastEvent']) {
                      $events = API::Event()->get([
                              'source' => EVENT_SOURCE_TRIGGERS,
                              'object' => EVENT_OBJECT_TRIGGER,
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              amartin Andrew Martin
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: