1
dxoop_acct
Statistics not updating
  • 2007/2/14 20:37

  • dxoop_acct

  • Just popping in

  • Posts: 7

  • Since: 2006/2/11


After upgrading from 2.0.13 to 2.0.16, statistics don't seem to be being collected. I had upgraded to IBDeeming Statistics 0.60, thinking the problem was there. I uninstalled that module and installed 0.45, which did not seem to fix the problem, and, of course, zeroed out the existing stats. :(

Thanks for any help or guidance.

2
McDonald
Re: Statistics not updating
  • 2007/2/14 21:07

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Check if the extra code you have to add according to the readme still exists.
Maybe you have overwritten the files when updating.

Quote:
1. Add the following to your header.php (XOOPS 2.0.x) or bottom of common.php (XOOPS 2.2.x) file located in the root of XOOPS

// for stats by XOOPS@IBDeeming!
include_once XOOPS_ROOT_PATH.'/modules/statistics/include/hitcounter.php';

2. for XOOPS 2.0.x
at the top of the file header.php under the line
include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php';

3. for XOOPS 2.2.x
at the bottom of the file include/common.php under the line
$xoopsLogger->context = "module";
but before the last ' } ' (curly brace)

3
dxoop_acct
Re: Statistics not updating
  • 2007/2/17 4:52

  • dxoop_acct

  • Just popping in

  • Posts: 7

  • Since: 2006/2/11


Whoa. A simple RTFM solution! Thanks, I'm duly embarrassed. That did solve it.

Unfortunately, I've created a bit of a tangle in my stats database. Thinking that the "Road to Hitsville" (getting my hits counter working) required by uninstalling the 0.60 statistics module and re-installing the 0.45 module (before reading the true answer to the problem), I did just that. When I saw the newly installed stats module started with fresh stats filesdumped all the stats from before the upgrade to 2.0.16, I dumped the stats tables from a backup and uploaded the additional records in the related tables.

Yep, mayhem. Not total, but enough. When I look at hit stats now, I get duplicate reports on certain days, which look like I have duplicate records.

Two morals: (1) RTFM & (2) don't mess with the db stats tables. I'm going to uninstall 0.45, install 0.60, and live with the total reset of the counts.

Thanks again for the help.

P.S.: On the way to analyzing my situation, I see error reports that are disturbing, such as

NoticeUndefined indexfragment in file /modules/statistics/include/hitcounter.php line 68
Notice
Only variables should be assigned by reference in file /kernel/config.php line 298
Notice
Only variables should be assigned by reference in file /modules/extcal/class/PersistableObjectHandler.php line 115
Notice
Only variables should be assigned by reference in file /modules/extcal/class/PersistableObjectHandler.php line 115
Notice
Only variable references should be returned by reference in file /modules/extcal/include/Calendar/Factory.php line 155
Notice
Only variable references should be returned by reference in file /modules/extcal/include/Calendar/Factory.php line 155


and
NoticeUndefined indexquery in file /modules/statistics/include/hitcounter.php line 64
Notice
Undefined indexfragment in file /modules/statistics/include/hitcounter.php line 68
Notice
Only variables should be assigned by reference in file /kernel/config.php line 298
Notice
Only variables should be assigned by reference in file /modules/extcal/class/PersistableObjectHandler.php line 115
Notice
Only variable references should be returned by reference in file /modules/extcal/include/Calendar/Factory.php line 155
Notice
Only variable references should be returned by reference in file /modules/extcal/include/Calendar/Factory.php line 155
.

Is it safe to ignore them?

Login

Who's Online

222 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 222


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits