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

Enrol plugins use student role but this may not exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.7.3, 3.8
    • Enrolments
    • None
    • MOODLE_37_STABLE, MOODLE_38_STABLE

      Enrolment plugins enrol_cohort, enrol_database, enrol_manual, enrol_mnet, enrol_paypal and enrol_self have a "Default role assignment" setting (e.g. enrol_self | roleid) with the default value "Student". The ID for this is read from mdl_role. However, the student role can be deleted (from Site administration → Users → Define roles) in which case PHP Notice-level messages are generated by the code, e.g. "PHP Notice: Trying to get property of non-object in …/enrol/cohort/settings.php on line 39".

      This appears to be the issue causing Trying to get property 'id' of non-object.

            Unassigned Unassigned
            leonstr Leon Stringer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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