Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-34637

cron.php fails with detected coding error looking for quiz overdue quiz attempts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 2.3.1
    • Administration, Quiz
    • This is on Ubuntu 10.04 LTS with PHP version 5.3.2-1ubuntu4.17, it's accessing the database with mysqli running mysql server version 5.1.41-3ubuntu12.
    • MOODLE_23_STABLE

    Description

      I'm running a Moodle 2.3.1 instance, upgraded from Moodle 2.2 which has been upgraded from Moodle 1.9 which has been upgraded from previous versions.

      When running cron.php, I get the following message (pasted in a pastebin):
      http://pastebin.com/ss48PpN8

      Notice: Undefined property: stdClass::$graceperiodmin in /srv/www/ecampus.hboe.org/mod/quiz/lib.php on line 464
        Looking for quiz overdue quiz attempts between Wednesday, 31 December 1969, 7:00 PM and Monday, 30 July 2012, 11:50 AM...
      !!! Coding error detected, it must be fixed by a programmer: There is no question_attempt number 148701 in this attempt. !!!
      !!
      Error code: codingerror !!
      !! Stack trace: * line 225 of /question/engine/questionusage.php: coding_exception thrown
      * line 239 of /question/engine/questionusage.php: call to question_usage_by_activity->check_slot()
      * line 186 of /question/engine/questionusage.php: call to question_usage_by_activity->get_question_attempt()
      * line 546 of /mod/quiz/attemptlib.php: call to question_usage_by_activity->get_question()
      * line 470 of /mod/quiz/attemptlib.php: call to quiz_attempt->number_questions()
      * line 78 of /mod/quiz/cronlib.php: call to quiz_attempt->__construct()
      * line 469 of /mod/quiz/lib.php: call to mod_quiz_overdue_attempt_updater->update_overdue_attempts()
      * line 259 of /lib/cronlib.php: call to quiz_cron()
      * line 61 of /admin/cli/cron.php: call to cron_run()
       !!

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              highvoltage911 Jonathan Carter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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