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

"Host or course not found" from Admin->Networking->Enrolments course links

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.9
    • 1.9.2
    • MNet
    • None
    • PostgreSQL
    • MOODLE_18_STABLE, MOODLE_19_STABLE
    • MOODLE_19_STABLE

    Description

      "Host or course not found" error from from Admin->Networking->Enrolments course links, because the course id within the href is missing.

      Eg:

      http://example.com/admin/mnet/enr_course_enrol.php?host=3&courseid=&sesskey=blahxyz123

      This is happening due to a schema mismatch.

      The remote moodle has the mdl_course.sortorder field defined as INTEGER, but in the source Moodle, the mdl_mnet_enrol_course.sortorder field is a SMALLINT. In this case, the sortorders are outside the range of a smallint, and the insert is failing, and so the id is coming back empty (from insert_record).

      Attachments

        Activity

          People

            lukehudson Luke Hudson
            lukehudson Luke Hudson
            Petr Skoda Petr Skoda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/Jul/08