phpMiX.org :: Open Source eXperiments

 
Counter is not counting HIT's !!
Select messages from
# through # FAQ
[/[Print]\]
 
phpMiX.org -> mxBB Module: mx_sitestats

#1: Counter is not counting HIT's !! Author: powerfm PostPosted: Tue Jan 17, 2006 11:27 am
    —
Hello,

i have installed mx_sitestats as descriped !!!
but my counter is not Displaying counts !!
my Reffererlist ist working well ... but Counter ist
staying at "00001" ... could somone give my a Hint
what the Problem is ???

my Site: http://powerfm.uttx.net

I have define a counter mxBB_index ... the count
should be 200 ... but my Counter is displaying only "00001"

Thanks 4 ya support !!
PowerFM
 

#2: Re: Counter is not counting HIT's !! Author: markus PostPosted: Tue Jan 17, 2006 6:07 pm
    —
In this version, while the ability to define more counters is present, the ability to increment them is not implemented.

Only one counter is used, the one that's based on your site name, if I recall correctly. This counter should work, but you have to apply the modifications described in the Collector MODs section of the release notes.
 

#3: Re: Counter is not counting HIT's !! Author: powerfm PostPosted: Wed Jan 18, 2006 12:28 pm
    —
Hello Markus,

okay ... i understodd that i have only one counter ... the
counter based on my Sitename.

I had at Installation Phase problems with the MySQL Table
def. ... soo i have no entry with the countername Based on my
Sitename .. could you tell me how can i find the counter
or countername in the PHP-Scripts .. so i can add the
Default counter in the sitestats_counter_table !!

In this Table i only have my own defined counter ...
its the mxBB_Index counter.

Thx
PowerFM
 

#4: Re: Counter is not counting HIT's !! Author: markus PostPosted: Wed Jan 18, 2006 12:50 pm
    —
Not sure if I understand...

If the module has been correctly installed, the counter (based on your sitename) is created if it doesn't exist. Any other counter that you create in the ACP will simply remain untouched.

If the counter doesn't update, there might be an error related to the table or something like that. To see errors updating the counter, try this:

OPEN: mx_sitestats/collector.php

FIND:
Code:
//      message_die(GENERAL_ERROR, "Could not update SiteStats counter information for page: " . $sitestats_counter->page,
//         "", __LINE__, __FILE__, $sitestats_counter->sql);


REPLACE WITH:
Code:
      message_die(GENERAL_ERROR, "Could not update SiteStats counter information for page: " . $sitestats_counter->page,
         "", __LINE__, __FILE__, $sitestats_counter->sql);

(we have just remvoed the comment markers // from the begining of both lines)

Then upload to the module folder and open your portal from the browser. You'll now see if there's a DB error updating the table.
 

#5: Re: Counter is not counting HIT's !! Author: powerfm PostPosted: Wed Jan 18, 2006 12:51 pm
    —
Here is a Link tu Screenshot of my MySQL-DB

[ http://powerfm.uttx.net/mxBB/images/sitestats_counter.jpg ]

Thx
PowerFM
 

#6: Re: Counter is not counting HIT's !! Author: powerfm PostPosted: Wed Jan 18, 2006 12:58 pm
    —
Hello Markus,

i have now found the reason !!

Here is the Output:

Quote:


Could not update SiteStats counter information for page: AK's TrMusic

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's TrMusic' , 1 , 1 )' at line 1

INSERT INTO mx_sitestats_counter (id, page, hits_counter, sess_counter) VALUES (2 , 'AK's TrMusic' , 1 , 1 )

Line : 99
File : collector.php



Thanks for ya Help !!
PowerFM
 

#7: Re: Counter is not counting HIT's !! Author: markus PostPosted: Wed Jan 18, 2006 1:22 pm
    —
Yup! That's a little bug!

Please, try the following:

OPEN: mx_sitestats/includes/common.php

FIND:
Code:
$this->page = $page;


REPLACE WITH:
Code:
$this->page = str_replace("'", '', $page);


It's just a quick fix that will solve your specific problem, so you can restore the original collector.php that we modified before.
 

#8: Re: Counter is not counting HIT's !! Author: powerfm PostPosted: Wed Jan 18, 2006 5:12 pm
    —
Thanks Markus,

i have fixed teh Problem ...

Greetings
PowerFM
 




phpMiX.org -> mxBB Module: mx_sitestats


output generated using printer-friendly topic mod. All times are GMT + 1 Hour

 
Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group