Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding 'teachername' element to site template causes exception #261

Closed
mdjnelson opened this issue Dec 27, 2018 · 1 comment
Closed

Adding 'teachername' element to site template causes exception #261

mdjnelson opened this issue Dec 27, 2018 · 1 comment

Comments

@mdjnelson
Copy link
Owner

The following exception occurs when you attempt to add a 'teachername' element to a site template.

Coding error detected, it must be fixed by a programmer: Context does not belong to any course.

Stack trace:

    line 5522 of /lib/accesslib.php: coding_exception thrown
    line 1424 of /lib/enrollib.php: call to context->get_course_context()
    line 1341 of /lib/enrollib.php: call to get_enrolled_join()
    line 1392 of /lib/enrollib.php: call to get_enrolled_with_capabilities_join()
    line 1515 of /lib/enrollib.php: call to get_enrolled_sql()
    line 109 of /mod/customcert/element/teachername/classes/element.php: call to get_enrolled_users()
    line 45 of /mod/customcert/element/teachername/classes/element.php: call to customcertelement_teachername\element->get_list_of_teachers()
    line 67 of /mod/customcert/classes/edit_element_form.php: call to customcertelement_teachername\element->render_form_elements()
    line 204 of /lib/formslib.php: call to mod_customcert\edit_element_form->definition()
    line 79 of /mod/customcert/edit_element.php: call to moodleform->__construct()
@mdjnelson
Copy link
Owner Author

Done.

3.6.1, 3.5.6, 3.4.7 automation moved this from In progress to Done Dec 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

1 participant