Am really enjoying newly-installed Statistics 7 -
However when attempting to dump, move or copy tables, I rec'v this error message:
Notice: Use of undefined constant _FROM - assumed '_FROM' in /var/www/html/modules/statistics/pnadmin.php on line 549
Looks like I need to define this constant. Can you give me assistance here?
thanks-
Will
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 created topic »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 01:39 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
statistics 7 glitch
-
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Jun 26, 2009
- Posts: 64
I think you have error_reporting set somewhere that it shouldn't be. Undefined constants should not be erroring out.
To define it, go to /var/www/html/modules/statistics/pnlang/admin.php and create the following line:
define('_FROM', 'From');
HTH. -
**unknown user**
- Rank: Expert
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 1193
Will found a couple of glitches in the Move/Copy section of the Admin. I'm going to update the release tonight or tomorrow with those fixes. (And add a patch for folks who already have statistics v7.)
And StEgo forgot the "eng" after pnlang. :) -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Jun 26, 2009
- Posts: 201
and one more bug:
It show wrong unique visiters in detail showing(meanwhile,it show normal in country option).
3000 visiters only 36 unique visiters !
One more question:How big the ARCHIVE DB will be?does it pass all the REFERER datas to ARCHIVE DB or not?
with old module,i can del it everyday(REFERER datas) -
**unknown user**
- Rank: Expert
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 1193
ccm111
and one more bug:
It show wrong unique visiters in detail showing(meanwhile,it show normal in country option).
3000 visiters only 36 unique visiters !
The unique visitors is calculated correctly. (That code has been working for well over a year on many, many websites.)
If you see some unexpected results, please send me a question via email and I will be happy to answer it.
Quote
One more question:How big the ARCHIVE DB will be?
The size of the Archive and Summary tables depends on what you copy/move into it.
For one of my sites, I move all of Details over to Archive on a daily basis. That means that Archive continues to grow while Details will never have more than a day's worth of data.
But it is all up to you on how you use Archive and Summary.
Quote
does it pass all the REFERER datas to ARCHIVE DB or not?
with old module,i can del it everyday(REFERER datas)
There is no separate Stats and Referers data. There is just a set of visitor statistics recorded for each page request, that includes all of the information about the visitor and the request.
So you can do any kind of report on the data - Referers, sessions, user detail, etc. -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Jun 26, 2009
- Posts: 201
Thank you.
when I compare the value of _STATSUSERS both in detail and countrylist,I've found they are diffirent(_STATSUSERS in countrylist return a very large amount).and i think the value output of
countrylist has some proplem.
Such as:there are 1800 _STATSUSERS when have 2000 visiters in countrylist.
Anyone has same proplem? -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Jun 26, 2009
- Posts: 201
I've check the code:
Quote
IN collect.php line 113:
if (!pnUserLoggedIn()) {
$stats[uid] = '0';
$stats[uname]='Anonymous';
}
IN countriselist.php line 71:
... COUNT(DISTINCT $column[uname]) FROM $pntable[$tablename] $wheredates GROUP BY IPADDR ...
so ploplem is here:It count Anonymous also.not just count site users.
because the $column[uname] could be "Anonymous".
- Moderated by:
- Support
