Counter is not counting HIT's !!
 
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_sitestats
View previous topic :: View next topic  
Author Message
powerfm
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 5

PostPosted: Tue Jan 17, 2006 11:27 am    Post subject: Counter is not counting HIT's !! Reply with quote

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
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Tue Jan 17, 2006 6:07 pm    Post subject: Re: Counter is not counting HIT's !! Reply with quote

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.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
powerfm
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 5

PostPosted: Wed Jan 18, 2006 12:28 pm    Post subject: Re: Counter is not counting HIT's !! Reply with quote

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
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Wed Jan 18, 2006 12:50 pm    Post subject: Re: Counter is not counting HIT's !! Reply with quote

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.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
powerfm
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 5

PostPosted: Wed Jan 18, 2006 12:51 pm    Post subject: Re: Counter is not counting HIT's !! Reply with quote

Here is a Link tu Screenshot of my MySQL-DB

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

Thx
PowerFM
 
Back to top
View user's profile Send private message
powerfm
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 5

PostPosted: Wed Jan 18, 2006 12:58 pm    Post subject: Re: Counter is not counting HIT's !! Reply with quote

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
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Wed Jan 18, 2006 1:22 pm    Post subject: Re: Counter is not counting HIT's !! Reply with quote

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.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
powerfm
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 5

PostPosted: Wed Jan 18, 2006 5:12 pm    Post subject: Re: Counter is not counting HIT's !! Reply with quote

Thanks Markus,

i have fixed teh Problem ...

Greetings
PowerFM
 
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_sitestats All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum