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

Division by zero in error.log CLineGraphDraw.php

    XMLWordPrintable

Details

    • Team B
    • Sprint 71 (Dec 2020), Sprint 72 (Jan 2021), Sprint 73 (Feb 2021), Sprint 74 (Mar 2021), Sprint 75 (Apr 2021), Sprint 81 (Oct 2021)
    • 0.75

    Description

      Steps to reproduce:
      1) Create a graph with a gradient line and height 50 pix.
      2) Open this graph.

      Result:
      See in the log

      [04-Sep-2020 08:55:25 Europe/Kiev] PHP Warning:  Division by zero in /var/www/html/include/classes/graphdraw/CLineGraphDraw.php on line 1814
      [04-Sep-2020 08:55:25 Europe/Kiev] PHP Warning:  imagecolorexactalpha() expects parameter 5 to be int, float given in /var/www/html/include/classes/graphdraw/CLineGraphDraw.php on line 1831
      

      Expected:
      Nothing

      Attachments

        Activity

          People

            iivs Ivo Kurzemnieks
            neogan Andrei Gushchin (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: