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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.9 regressions, 2.9.1
    • 2.9.2
    • Enrolments

    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

              Unassigned Unassigned
              shaun.meyer Shaun Meyer
              Marina Glancy Marina Glancy
              David Monllaó David Monllaó
              Ryan Wyllie Ryan Wyllie
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/Sep/15