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

Class 'completion_info' not found

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Activity completion
    • Labels:
    • Environment:
      PHP Version 5.3.3
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      A PDF file resource is tagged with Activity completion as follows:
      Completion tracking "Show actiivty as complete when conditions are met"
      and
      Require view is ticked "Student must view this activity to complete it"

      The next resource is hidden until the student views the PDF file. Once the student has viewed the PDF file, the webpage resource (created via selecting the "Page" option in the "Add a resource" drop down box) appears. When the student clicks on it, s/he gets an HTTP 500 error. The corresponding server error log entries is:

      PHP Fatal error: Class 'completion_info' not found in /.../moodle/lib/conditionlib.php on line 391, referer: http://../moodle/course/view.php?id=2

      This webpage has the following Restrict availability conditions:

      Activity completion condition: PDF File "must be marked complete"
      Before activity is available: "Hide activity entirely"

      And the Activity completion is set as follows:
      Completion tracking "Show actiivty as complete when conditions are met"
      and
      Require view is ticked "Student must view this activity to complete it"

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10