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

Possible missing requires when running recycle bin cron.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 3.2
    • Fix Version/s: 3.2
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide

      This one is difficult to test, given we don't have a means to replicate right now. I think a standard regression test and inspection of the code change will have to suffice here.

      1. Check the diff and ensure it makes sense in the context of this issue.
      2. Enrol a student in a course
      3. Create an activity in a course
      4. Assign the student a grade for the activity you just created
      5. Delete the activity
      6. Run the cron task (php admin/cli/cron.php) and Confirm that there are no errors
      7. Check the recyclebin (you may need to refresh the page)
      8. Confirm that you see the activity you just deleted
      Show
      This one is difficult to test, given we don't have a means to replicate right now. I think a standard regression test and inspection of the code change will have to suffice here. Check the diff and ensure it makes sense in the context of this issue. Enrol a student in a course Create an activity in a course Assign the student a grade for the activity you just created Delete the activity Run the cron task (php admin/cli/cron.php) and Confirm that there are no errors Check the recyclebin (you may need to refresh the page) Confirm that you see the activity you just deleted
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-56796-master

      Description

      I'm not exactly sure how I got the following errors, but here is a short dump of the cron problem.

      Skipping - Empty serviceurl for the user '27' in the tool '2' for the course '2'.
      Skipping - Empty serviceurl for the user '26' in the tool '2' for the course '2'.
      PHP Fatal error:  Call to undefined function course_module_instance_pending_deletion() in /home/adrian/moodles/integration_master_postgres/moodle/lib/grade/grade_item.php on line 1406
       
      Fatal error: Call to undefined function course_module_instance_pending_deletion() in /home/adrian/moodles/integration_master_postgres/moodle/lib/grade/grade_item.php on line 1406
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  5/Dec/16