Statistics

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
gigicop
Forum Members
Forum Members
Posts: 56
Joined: Thu Jun 23, 2005 5:10 pm

Statistics

Post by gigicop »

Hi!
I've just installed the statistics module on a test site with CMSMS 0.9.2 and I'm having some problems.
If a template or the home page contains the statistics command, the following message is displaied:
{nocache:f55774cb976e1e7cce9455eb6b625cf3#1}
Fatal error: Call to undefined function: getdb() in /web/htdocs/www.coppelletti.net/home/cms/modules/St ... module.php on line 683
What's wrong? I suppose I did something wrong,, but I don't know what.
Thanks in advance for your help.
Gigi
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm

Re: Statistics

Post by Silmarillion »

Hi gigicop

Sorry for the trouble. I only develop the statistics-module on version 0.10, so I would highly recommend an upgrade. This particular problem can be solved by replacing all occurences of
$db=$this->getdb();
with
$db=$this->cms->db;

in the file
modules/statistics/statistics.module.php

but there may be other things that does not work either.
The module is a bit unmaintained precently but I hope I'll soon have more time to complete it. Or at least iron out some bugs.

thanks for your interest in the module!
gigicop wrote: Hi!
I've just installed the statistics module on a test site with CMSMS 0.9.2 and I'm having some problems.
If a template or the home page contains the statistics command, the following message is displaied:
{nocache:f55774cb976e1e7cce9455eb6b625cf3#1}
Fatal error: Call to undefined function: getdb() in /web/htdocs/www.coppelletti.net/home/cms/modules/St ... module.php on line 683
What's wrong? I suppose I did something wrong,, but I don't know what.
Thanks in advance for your help.
gigicop
Forum Members
Forum Members
Posts: 56
Joined: Thu Jun 23, 2005 5:10 pm

Re: Statistics

Post by gigicop »

Thank you for your reply! I didn't realize that it was developped on 0.10.
Sorry... I'll probably upgrade soon because I have some problems withother modules as well. May be this is the same problem.
Anyway the statistics module interface looks very interesting. Thank you very much for your work. 
Gigi
Post Reply

Return to “Modules/Add-Ons”