Ad Widget

Collapse

bcdiv(): Argument #1 ($num1) is not well-formed in CLineGraphDraw.php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rochine123
    Junior Member
    • Dec 2018
    • 14

    #1

    bcdiv(): Argument #1 ($num1) is not well-formed in CLineGraphDraw.php

    I got an error ,when I view lastdata -->graph-->last7day , how to solve it .pls ?

    2021/07/16 15:59:45 [error] 18532#0: *36354510 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ValueError: bcdiv(): Argument #1 ($num1) is not well-formed in /opt/nginx/html/zabbix/include/classes/graphdraw/CLineGraphDraw.php:368
    Stack trace:
    #0 /opt/nginx/html/zabbix/include/classes/graphdraw/CLineGraphDraw.php(368): bcdiv('-9.999999999621...', '5')
    #1 /opt/nginx/html/zabbix/include/classes/graphdraw/CLineGraphDraw.php(2554): CLineGraphDraw->selectData()
    #2 /opt/nginx/html/zabbix/chart.php(147): CLineGraphDraw->draw()
    #3 {main}
    thrown in /opt/nginx/html/zabbix/include/classes/graphdraw/CLineGraphDraw.php on line 368" while reading response header from upstream, client: 10.1.64.51, server: localhost, request: "GET /zabbix/chart.php?from=2021-07-15%2011%3A00%3A00&to=2021-07-15%2012%3A00%3A00&itemids%5B0%5D=49869&type=0&prof ileIdx=web.item.graph.filter&profileIdx2=49869&wid th=1302&height=200&_=uwsbvpmq&screenid= HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "10.1.64.120:1080", referrer: "http://10.1.64.120:1080/zabbix/history.php?action=showgraph&itemids[]=49869"
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    Which zabbix-web version?

    Comment

    • rochine123
      Junior Member
      • Dec 2018
      • 14

      #3
      zabbix 4.4.10

      Comment

      • dimir
        Zabbix developer
        • Apr 2011
        • 1080

        #4
        Which php version do you have? Probably package php-fpm.

        Comment

        • rochine123
          Junior Member
          • Dec 2018
          • 14

          #5
          php-fpm -v :
          PHP 8.0.3 (fpm-fcgi) (built: Mar 10 2021 20:39:39) (DEBUG)
          Copyright (c) The PHP Group
          Zend Engine v4.0.3, Copyright (c) Zend Technologies

          Comment

          • cyber
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Dec 2006
            • 4807

            #6
            php 8 is not supported even for latest version... so for 4.4.10 it is pretty much out of question.

            PHP 7.2.5 or later PHP 8.0 is not supported.

            Comment

            Working...