-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
4.3
-
None
-
MOODLE_403_STABLE
Hi,
I upgraded and moved a moodle installation from 3.6 to 3.11 and then to 4.3. Everything seems to be working just fine except the glossary activity.
When I add a glossary activity and save it, I can no longer access its settings and get the following message:
Exception - role_get_name(): Argument #1 ($role) must be of type stdClass, null given, called in [dirroot]/lib/accesslib.php on line 4699
More information about this error
Debug info:
Error code: generalexceptionmessage
{{Stack trace: }}
- line 4533 of /lib/accesslib.php: TypeError thrown
- line 4699 of /lib/accesslib.php: call to role_get_name()
- line 4935 of /lib/accesslib.php: call to role_fix_names()
- line 710 of /course/moodleform_mod.php: call to get_role_names_with_caps_in_context()
- line 528 of /course/moodleform_mod.php: call to moodleform_mod->add_rating_settings()
- line 140 of /mod/glossary/mod_form.php: call to moodleform_mod->standard_coursemodule_elements()
- line 217 of /lib/formslib.php: call to mod_glossary_mod_form->definition()
- line 127 of /course/moodleform_mod.php: call to moodleform->__construct()
- line 161 of /course/modedit.php: call to moodleform_mod->__construct()
Output buffer: <br /> <b>Warning</b>: Undefined array key 9 in <b>/var/www/html/moodle/lib/accesslib.php</b> on line <b>4932</b><br /> <br /> <b>Warning</b>: Undefined array key 12 in <b>/var/www/html/moodle/lib/accesslib.php</b> on line <b>4932</b><br />
- has a non-specific relationship to
-
MDL-83347 user role problem
-
- Open
-