Fork me on GitHub

statistics 7 glitch  Bottom

  • 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
  • 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.
  • thanks, this did the trick.

    (someone might show this to Bill Clinton -
    define(‘_is’, ‘is’) … )

    - will
  • 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. :)
  • 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)
  • Good work but need fix some bug.
    thanks
  • 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.
  • 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?
  • Really,I love this module.
    thank you very much.
  • 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".
  • Sigh. You would get much better results if you tried to work with me on this instead of posting code fragments.

    All you need to do is send email to crs AT mtrad DOT com.

This list is based on users active over the last 60 minutes.