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

groups_add_member not defined in enrol/meta/locallib.php at line 166

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9 regressions, 2.9.1
    • Fix Version/s: 2.9.2
    • Component/s: Enrolments
    • Labels:

      Description

      enroll/database/cli/sync.php crashes with a fatal PHP error when adding users to a course from external enrollments when the course is using groups.

      PHP Fatal error: Call top undefined function groups_add_member() in enroll/meta/locallib.php at line 166

      Adding require_once("{$CFG_>dirroot}/group/lib.php"); to the top of that function block (protected static function sync-with_parent_course() on line 81 of enrol/meta/locallib.php) fixes this.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Sep/15