Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-13192 stats cleanup - meta
  3. MDL-8279

Functions [mod name]_get_daily_stats referenced in lib/statslib.php but not defined anywhere.

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.9
    • Component/s: Administration
    • Labels:
      None
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      The stats_cron_daily() function in the file lib/statslib.php is checking for the existance of the functions $mod->name."_get_daily_stats" (line 85) and then building an array containing those function names. The problem is that for all of the Moodle modules, these functions do not exist so an empty array of function names (which are supposed to be executed by the cron job) are being passed to the function stats_do_daily_user_cron().

      The end result is that the cron job is running successfully, but no actual process of statistics is taking place and the mdl_stats_daily table in the database is remaining empty.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              j_col John Collins
              Tester:
              Nobody
              Participants:
              Component watchers:
              Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08