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
    • Resolution: Fixed
    • Major
    • 2.9.2
    • 2.9 regressions, 2.9.1
    • 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
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.