rrdtool.php line 303 error.

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
alexcf
Posts: 17
Joined: Thu Jul 10, 2003 8:09 pm

rrdtool.php line 303 error.

Post by alexcf »

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.
Guest

Post by Guest »

I am also having this problem with the 303 error.
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

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
Shade
Posts: 1
Joined: Fri Aug 15, 2003 9:52 am

Post by Shade »

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

Code: Select all

$line = ($matches[1][$j] * (pow(10,$matches[2][$j])));

to

$line = ($matches[1][$j] * (pow(10,(float)$matches[2][$j])));
on line 303 of rrd_functions.php.

Hope that fixes your problem, it fixed mine.
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Thanks for taking the time to find this! The PHP version on my development box is still 4.1.2... time to upgrade. Sounds like a Saturday project to me :-D

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests