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

Student can not see course page with course completion block

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.3, 2.1.1, 2.2
    • Fix Version/s: 2.0.5, 2.1.2
    • Component/s: Course completion
    • Labels:
    • Testing Instructions:
      Hide

      1. Enable course completion for site and for the course,
      2. Add a "duration" criteria
      3. Add a 'course completion block' on the course page
      4. login as a student and try to open a course page

      Show
      1. Enable course completion for site and for the course, 2. Add a "duration" criteria 3. Add a 'course completion block' on the course page 4. login as a student and try to open a course page
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Reproduced only in 2.0 (2.1 works ok)
      see testing instructions

      Field "courseid" does not exist in table "user_enrolments"
      Stack trace:
      line 508 of /lib/dml/moodle_database.php: dml_exception thrown
      line 1297 of /lib/dml/moodle_database.php: call to moodle_database->where_clause()
      line 93 of /lib/completion/completion_criteria_duration.php: call to moodle_database->get_field()
      line 156 of /lib/completion/completion_criteria_duration.php: call to completion_criteria_duration->get_timeenrolled()
      line 208 of /lib/completion/completion_criteria_completion.php: call to completion_criteria_duration->get_status()
      line 145 of /blocks/completionstatus/block_completionstatus.php: call to completion_criteria_completion->get_status()
      line 280 of /blocks/moodleblock.class.php: call to block_completionstatus->get_content()
      line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
      line 899 of /lib/blocklib.php: call to block_base->get_content_for_output()
      line 951 of /lib/blocklib.php: call to block_manager->create_block_contents()
      line 342 of /lib/blocklib.php: call to block_manager->ensure_content_created()
      line 7 of /theme/base/layout/general.php: call to block_manager->region_has_content()
      line 650 of /lib/outputrenderers.php: call to include()
      line 608 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line ? of unknownfile: call to core_renderer->header()
      line 1279 of /lib/setuplib.php: call to call_user_func_array()
      line ? of unknownfile: call to bootstrap_renderer->__call()
      line 196 of /course/view.php: call to bootstrap_renderer->header()

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    10/Oct/11