-
Problem report
-
Resolution: Fixed
-
Trivial
-
4.0.6
-
PHP 7.2.16
Nginx 1.15.10
Zabbix 4.0.6
-
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;