| View previous topic :: View next topic |
| Author |
Message |
powerfm Apprentice


Joined: 17 Jan 2006 Posts: 5
|
Posted: Tue Jan 17, 2006 11:27 am Post subject: Counter is not counting HIT's !! |
|
|
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 |
|
 |
markus [Administrator]
![[Administrator] [Administrator]](images/ranks/rank_stars7_admin.gif)

Joined: 28 Jul 2003 Posts: 1124
|
Posted: Tue Jan 17, 2006 6:07 pm Post subject: Re: Counter is not counting HIT's !! |
|
|
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 |
|
 |
powerfm Apprentice


Joined: 17 Jan 2006 Posts: 5
|
Posted: Wed Jan 18, 2006 12:28 pm Post subject: Re: Counter is not counting HIT's !! |
|
|
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 |
|
 |
markus [Administrator]
![[Administrator] [Administrator]](images/ranks/rank_stars7_admin.gif)

Joined: 28 Jul 2003 Posts: 1124
|
Posted: Wed Jan 18, 2006 12:50 pm Post subject: Re: Counter is not counting HIT's !! |
|
|
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 |
|
 |
powerfm Apprentice


Joined: 17 Jan 2006 Posts: 5
|
|
| Back to top |
|
 |
powerfm Apprentice


Joined: 17 Jan 2006 Posts: 5
|
Posted: Wed Jan 18, 2006 12:58 pm Post subject: Re: Counter is not counting HIT's !! |
|
|
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 |
|
 |
markus [Administrator]
![[Administrator] [Administrator]](images/ranks/rank_stars7_admin.gif)

Joined: 28 Jul 2003 Posts: 1124
|
Posted: Wed Jan 18, 2006 1:22 pm Post subject: Re: Counter is not counting HIT's !! |
|
|
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 |
|
 |
powerfm Apprentice


Joined: 17 Jan 2006 Posts: 5
|
Posted: Wed Jan 18, 2006 5:12 pm Post subject: Re: Counter is not counting HIT's !! |
|
|
Thanks Markus,
i have fixed teh Problem ...
Greetings
PowerFM |
|
| Back to top |
|
 |
|