Moodle

"Statistics is currently in catchup mode. So far 0 day(s) have been processed and 365 are pending "doesn't catch up

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.6.3
  • Fix Version/s: 1.7.1, 1.8
  • Component/s: Administration
  • Labels:
    None
  • Environment:
    Debian Linux with PHP Version 5.1.2-1+b1, Apache 2.0, MySQL 5.0.21
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_16_STABLE
  • Fixed Branches:
    MOODLE_17_STABLE, MOODLE_18_STABLE

Description

Stats don't run, they never had (tables are empty)
Tried about all combinations of settings in the config variables page.

Current settings:
Wijzigen Verwijderen 225 enablestats 1
Wijzigen Verwijderen 237 statsfirstrun all
Wijzigen Verwijderen 238 statsmaxruntime 21600
Wijzigen Verwijderen 239 statsuserthreshold 0
Wijzigen Verwijderen 248 statsruntimestarthour 1
Wijzigen Verwijderen 249 statsruntimestartminute 0
Wijzigen Verwijderen 271 statsfirstrunlock 0
Wijzigen Verwijderen 272 statsrunning 0
Wijzigen Verwijderen 273 statslastdaily 1162886404

Nothing about stats appears in cron.php
Read http://moodle.org/mod/forum/discuss.php?d=56262 and linked treads.

Issue Links

Activity

Hide
Dan Marsden added a comment -

HI Koen,

check to see if you have any modules installed that "don't exist" - I had an issue with statslib.php - function stats_cron_daily

require_once($CFG->dirroot.'/mod/'.$mod->name.'/lib.php');

this won't work if there are modules installed with no lib.php!

Dan

Show
Dan Marsden added a comment - HI Koen, check to see if you have any modules installed that "don't exist" - I had an issue with statslib.php - function stats_cron_daily require_once($CFG->dirroot.'/mod/'.$mod->name.'/lib.php'); this won't work if there are modules installed with no lib.php! Dan
Hide
Koen Roggemans added a comment -

Thanks for the tip Dan!
I had database leftovers from dialogue and gallery and removed them. No unnecessary files in /mods though.
I have a CVS installation, so there is a folder /CVS in /mods. I'm a little bit carefull with moving it / throwing it away on production server, so I'm going to set up a test environment to give it at try without the CVS folder.

Show
Koen Roggemans added a comment - Thanks for the tip Dan! I had database leftovers from dialogue and gallery and removed them. No unnecessary files in /mods though. I have a CVS installation, so there is a folder /CVS in /mods. I'm a little bit carefull with moving it / throwing it away on production server, so I'm going to set up a test environment to give it at try without the CVS folder.
Hide
Koen Roggemans added a comment -

Moving the CVS folder was apparently not necessary, deleting the old modules was necessary. It works now.
I'll add something to the documentation until this is fixed.
Thanks a lot!

Show
Koen Roggemans added a comment - Moving the CVS folder was apparently not necessary, deleting the old modules was necessary. It works now. I'll add something to the documentation until this is fixed. Thanks a lot!
Hide
Martín Langhoff added a comment -

Fixed stats_cron_daily() to continue processing if the module is missing. A simple change from require_once() to include_once().

Show
Martín Langhoff added a comment - Fixed stats_cron_daily() to continue processing if the module is missing. A simple change from require_once() to include_once().

People

Vote (3)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: