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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.9
    • Fix Version/s: 1.9.2
    • Component/s: MNet
    • Labels:
      None
    • Database:
      PostgreSQL
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jul/08