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

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

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 3.2.4
    • Frontend (F)

      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,
      

        1. fix.patch
          0.5 kB
          Andrew Martin

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

              Created:
              Updated:
              Resolved: