Call records database problem

I’ve installed freepbx on CentOS 5.2 (php5) and asterisk 1.4.22
Everything works ok, just no call record are visible.

I chowned /var/lib/php/session

But still no records are found.

just a wierd apache error:

[Tue Dec 16 11:23:18 2008] [error] [client 172.16.0.201] PHP Notice: Undefined variable: tostatsmonth_sday in /var/www/html/admin/cdr/call-log.php on line 450, referer: http://172.16.0.12/admin/reports.php?display=1
[Tue Dec 16 11:23:18 2008] [error] [client 172.16.0.201] PHP Notice: Undefined variable: tostatsmonth_sday in /var/www/html/admin/cdr/call-log.php on line 450, referer: http://172.16.0.12/admin/reports.php?display=1
[Tue Dec 16 11:23:18 2008] [error] [client 172.16.0.201] PHP Notice: Undefined variable: tostatsmonth_sday in /var/www/html/admin/cdr/call-log.php on line 450, referer: http://172.16.0.12/admin/reports.php?display=1
[Tue Dec 16 11:23:18 2008] [error] [client 172.16.0.201] PHP Notice: Undefined variable: tostatsmonth_sday in /var/www/html/admin/cdr/call-log.php on line 450, referer: http://172.16.0.12/admin/reports.php?display=1

Anybody with a clue?
Is it php? Is it mysql?

Thank you.

I know very little of php, but my guess is it has to do with php and may be a missing file, bad reference or setting of php.

I solved it, asterisk-addons was missing.