full error message below. Encountered when I logged in for the first time as a manually created student.
Coding error detected, it must be fixed by a programmer: $PAGE->context accessed before it was known.
More information about this error
line 335 of /lib/pagelib.php: coding_exception thrown
line 590 of /lib/pagelib.php: call to moodle_page->magic_get_context()
line 1216 of /lib/weblib.php: call to moodle_page->__get()
line 833 of /lib/pagelib.php: call to format_string()
line 78 of /enrol/index.php: call to moodle_page->set_title()