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

Enrolment bug when adding a new course

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Enrolments
    • Labels:
      None
    • Database:
      PostgreSQL
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Petr, I have a pretty clean new site with all enrolment plugins enabled.

      When I add a course I get:

      Coding error detected, it must be fixed by a programmer: moodle_database::get_in_or_equal() does not accept empty arrays

      More information about this error
      Stack trace:

      • line 543 of /lib/dml/moodle_database.php: coding_exception thrown
      • line 160 of /enrol/category/locallib.php: call to moodle_database->get_in_or_equal()
      • line 93 of /enrol/category/lib.php: call to enrol_category_sync_course()
      • line 255 of /lib/enrollib.php: call to enrol_category_plugin->course_updated()
      • line 3522 of /course/lib.php: call to enrol_course_updated()
      • line 98 of /course/edit.php: call to create_course()

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            dougiamas Martin Dougiamas
            Tester:
            Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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