Reports, stat graph problems

Hello,

I am having problems displaying the stat graphs on the reports tab. None of the stat graphs are displayed. I get an error message in the Firefox error console. I also tested it in IE, and all the stat graphs display the little red X.

There is also one line in /var/log/httpd/error_log that may or may not be related:
script not found or unable to stat: /var/www/cgi-bin/awstats.pl

I looked, and there are no files in /var/www/cgi-bin, should there be any?

I used wget to capture the data coming from the php script. The file is 3 bytes long and contains the following hex data: 0A0A0A

From the error console in Firefox when trying to view daily load:

Error: Image corrupt or truncated: http://10.30.110.254/admin/cdr/common/graph_hourdetail.php?posted=1&min_call=&fromstatsday_sday=18&days_compare=&fromstatsmonth_sday=2012-01&dsttype=1&srctype=1&clidtype=&channel=&resulttype=&dst=&src=&clid=&userfieldtype=&userfield=&accountcodetype=&accountcode=
Source File: http://10.30.110.254/admin/cdr/common/graph_hourdetail.php?posted=1&min_call=&fromstatsday_sday=18&days_compare=&fromstatsmonth_sday=2012-01&dsttype=1&srctype=1&clidtype=&channel=&resulttype=&dst=&src=&clid=&userfieldtype=&userfield=&accountcodetype=&accountcode=
Line: 0

When trying to view monthly traffic:

Error: Image corrupt or truncated: http://10.30.110.254/admin/cdr/common/graph_statbar.php?min_call=&fromstatsday_sday=18&days_compare=&fromstatsmonth_sday=2012-01&dsttype=1&srctype=1&clidtype=&channel=&resulttype=&dst=&src=&clid=&userfieldtype=&userfield=&accountcodetype=&accountcode=
Source File: http://10.30.110.254/admin/cdr/common/graph_statbar.php?min_call=&fromstatsday_sday=18&days_compare=&fromstatsmonth_sday=2012-01&dsttype=1&srctype=1&clidtype=&channel=&resulttype=&dst=&src=&clid=&userfieldtype=&userfield=&accountcodetype=&accountcode=
Line: 0

System is as follows:
PiaF: 1.7.5.7
FreePBX: 2.9.0.9
Asterisk: 1.8.7.2

All other parts of the web interface are working correctly.

Does anyone have any ideas what I might be doing wrong (or have configured incorrectly)? Although, I really haven’t made any modifications to the default installation other than configuring Asterisk. What other info might be helpful in finding the solution?

Thank you,
Jeff

I did more digging, found out that awstats.pl is totally unrelated.

I turned off PHP buffering, and now I see the following error when trying to display any call statistics graphs:

JpGraph Error: HTTP headers have already been sent.
Caused by output from file functions.inc.php at line 98.