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

PHP non fatal errors on GUI

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 5.4.0
    • Frontend (F)
    • Ubuntu 20.04,
      Zabbix 5.4,
      PHP 7.4.3,
      Apache/2.4.41 (Ubuntu),
      MySQL 5.7.34

      Steps to reproduce:

      1. Upgrade from zabbix server 5.2 to 5.4

      Result:

      Zabbix is collecting the data, this looks ok.
      On the frontend there were PHP errors, now only visible in apache error logs:

      [Mon May 17 13:37:12.524164 2021] [php7:error] [pid 903754] [client 116.203.68.169:54596] PHP Fatal error:  Uncaught DivisionByZeroError: Modulo by zero in /usr/share/zabbix/include/classes/api/managers/CHistoryManager.php:926\nStack trace:\n#0 /usr/share/zabbix/include/classes/api/managers/CHistoryManager.php(741): CHistoryManager->getGraphAggregationByWidthFromSql()\n#1 /usr/share/zabbix/include/classes/helpers/CSvgGraphHelper.php(299): CHistoryManager->getGraphAggregationByWidth()\n#2 /usr/share/zabbix/include/classes/helpers/CSvgGraphHelper.php(62): CSvgGraphHelper::getMetricsData()\n#3 /usr/share/zabbix/app/controllers/CControllerWidgetSvgGraphView.php(119): CSvgGraphHelper::get()\n#4 /usr/share/zabbix/include/classes/mvc/CController.php(390): CControllerWidgetSvgGraphView->doAction()\n#5 /usr/share/zabbix/include/classes/core/ZBase.php(562): CController->run()\n#6 /usr/share/zabbix/include/classes/core/ZBase.php(214): ZBase->processRequest()\n#7 /usr/share/zabbix/include/config.inc.php(25): ZBase->run()\n#8 /usr/share/zabbix/zabbix.php(22): require_once('/usr/share/zabb...')\n#9 {main}\n  thrown in /usr/share/zabbix/include/classes/api/managers/CHistoryManager.php on line 926, referer: https://zabbix.sonnenbatterie.de/zabbix.php?action=dashboard.view

      **However, web frontend is still showing the data, I don't find some missing reports. Let me know if you need some more information about settings etc.

      Thank you, all the best.

            zabbix.dev Zabbix Development Team
            frank108 Frank I
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: