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

sql error on my home page when user is enrolled in mnet course

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Pre-requisite
      – Two sites with mnet

      Test

      1. Login to first site and enable mnet enrolment on course 1
      2. Login to second site and enrol user1 to mnet shared course (Site administration -> Networking -> Remote enrolments client)
      3. Go to first site as user1 and go to myhome page and make sure you don't see any error and get redirected to remote course
        Note: ignore php warning, will open another bug to fix it.
        ( Edit: Test that Raj has created this MDL :-p )
      Show
      Pre-requisite – Two sites with mnet Test Login to first site and enable mnet enrolment on course 1 Login to second site and enrol user1 to mnet shared course (Site administration -> Networking -> Remote enrolments client) Go to first site as user1 and go to myhome page and make sure you don't see any error and get redirected to remote course Note: ignore php warning, will open another bug to fix it. ( Edit: Test that Raj has created this MDL :-p )
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull Master Branch:
      wip-mdl-35784

      Description

      Following error is observed when user try to access my home page and is enrolled in mnet course

      Debug info: SELECT id,category FROM {course} WHERE id = ?
      [array (
      0 => -7,
      )]
      Error code: invalidrecord
      Stack trace:
       
          line 1335 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
          line 1311 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
          line 6525 of /lib/accesslib.php: call to moodle_database->get_record()
          line 1277 of /lib/weblib.php: call to context_course::instance()
          line 114 of /blocks/course_overview/renderer.php: call to format_string()
          line 86 of /blocks/course_overview/block_course_overview.php: call to block_course_overview_renderer->course_overview()
          line 281 of /blocks/moodleblock.class.php: call to block_course_overview->get_content()
          line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
          line 935 of /lib/blocklib.php: call to block_base->get_content_for_output()
          line 987 of /lib/blocklib.php: call to block_manager->create_block_contents()
          line 314 of /lib/blocklib.php: call to block_manager->ensure_content_created()
          line 1062 of /lib/outputrenderers.php: call to block_manager->get_content_for_region()
          line 155 of /my/index.php: call to core_renderer->blocks_for_region()

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Dec/12