Ad Widget

Collapse

Litte error in include/classes/graph.inc.php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • root_master
    Junior Member
    • Dec 2005
    • 18

    #1

    Litte error in include/classes/graph.inc.php

    in Version 1.1 is a litte error in line 1010.

    original

    if(isset($data->count[$i])&&($data->count[$i]>0))

    patch

    if(isset($data) && isset($data->count[$i])&&($data->count[$i]>0))


    if you installed php5 with hardening patch, the graphs and screens will be not shown.

    Cu


    Root_master


    p.s. this error is in version 1.1.1 too
    Last edited by root_master; 04-08-2006, 19:39.
  • xaitax
    Member
    • Apr 2006
    • 39

    #2
    We are running PHP 5.1.4 with Hardening-Patch 0.4.12, and do not have any issues on displaying graphs.

    - xai

    Comment

    • nullpt
      Junior Member
      • Mar 2007
      • 12

      #3
      Hello,

      I'm being affected by this bug. I'm using Suhosin Patch 0.9.6.2.

      The graphic is shown and the values are in the footer but there is no line drawing.

      I've applied your patch but the problem don't seem to go away. I can see the following error in httpd-error.log:

      [Tue Mar 13 18:00:46 2007] [error] [client 10.16.1.85] PHP Notice: Undefined offset: 1277 in /usr/local/www/apache22/data/include/classes/graph.inc.php on line 852, referer: http://10.16.3.92/history.php?period...owgraph&from=0


      Any help is apreciated.
      Regards

      Comment

      Working...