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

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Major Major
    • 1.9
    • 1.6.2
    • Administration
    • None
    • MOODLE_16_STABLE
    • MOODLE_19_STABLE

      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.

            skodak Petr Skoda
            j_col John Collins (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.