Has anyone worked out how to fix this rrdtool.php error, line 303 yet... I get this when I try to use the 95th percentile. Its getting quite fustrating, mikepont sent me a step by step screenshot guide in an email, just to make sure I wasn't doing it wrong, but I'm going round and round in circles, I'd really appreciate some help.
Regards,
Alex.
rrdtool.php line 303 error.
Moderators: Developers, Moderators
Let's try the debugging route. Can either of you replace your 'include/rrd_functions.php' with the following file:
http://www.raxnet.net/downloads/patches ... ns.php.txt
After doing that, click on a 95th percentile graph and click "View Source" under it. You should see a lot of output which you can paste here inside phpBB code tags. It also might be helpful to include the 95th percentile variable that you are using.
-Ian
http://www.raxnet.net/downloads/patches ... ns.php.txt
After doing that, click on a 95th percentile graph and click "View Source" under it. You should see a lot of output which you can paste here inside phpBB code tags. It also might be helpful to include the 95th percentile variable that you are using.
-Ian
I actually tracked down and fixed this problem. The problem was in the input passed to pow(). In the newer versions of php pow() seems to be a bit more strict on what it takes as input. You can fix the problem by casting the second argument to pow as a float, so change
on line 303 of rrd_functions.php.
Hope that fixes your problem, it fixed mine.
Code: Select all
$line = ($matches[1][$j] * (pow(10,$matches[2][$j])));
to
$line = ($matches[1][$j] * (pow(10,(float)$matches[2][$j])));
Hope that fixes your problem, it fixed mine.
Who is online
Users browsing this forum: No registered users and 2 guests