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

SVG Graph - Uncaught DivisionByZeroError

XMLWordPrintable

    • Sprint 51 (Apr 2019), Sprint 52 (May 2019)
    • 0.5

      Sometimes such error appears in error_log (always shortly after a midnight):

      2019-04-26 00:00:08		
      FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught DivisionByZeroError: Modulo by zero in /usr/share/zabbix/include/classes/graph/CSvgGraph.php:374
      2019-04-25 00:00:06		
      FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught DivisionByZeroError: Modulo by zero in /usr/share/zabbix/include/classes/graph/CSvgGraph.php:374
      2019-04-25 00:00:04		
      FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught DivisionByZeroError: Modulo by zero in /usr/share/zabbix/include/classes/graph/CSvgGraph.php:374
      2019-04-25 00:00:02		
      FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught DivisionByZeroError: Modulo by zero in /usr/share/zabbix/include/classes/graph/CSvgGraph.php:374
      
       public function getTimeGridWithPosition() {
                      $period = $this->time_till - $this->time_from;
                      $step = round(bcmul(bcdiv($period, $this->canvas_width), 100)); // Grid cell (100px) in seconds.
                      $start = $this->time_from + $step - $this->time_from % $step;
      

            Miks.Kronkalns Miks Kronkalns
            dlamberts Dmitrijs Lamberts
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: