-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
3.11.6, 4.0
-
MOODLE_311_STABLE, MOODLE_400_STABLE
Problem
If an activity is included in a course's completion criteria, and then the activity type is disabled at the site level, the Course Completion Report throws and error:
Exception - Call to a member function get_formatted_name() on null
Expected behavior
A site admin should be able disable activities and either 1) silently skip the disabled activity in completion requirements or 2) warn the user that some required activities are not available.
Steps to reproduce
- In a course with at least one student
- Add a chat Activity
- Select it under condition: Activity Completion in the Course Completion criteria
- In site administration, under Plugins > Activity Modules > Manage Activities,
- Disable the chat activity
- Return to the course and verify the activity is not present
- Check that it also cannot be deselected (it does not appear) in the Completion Criteria settings
- View Reports > Course Completion and get an error ('Call to a member function get_formatted_name() on null')
- has been marked as being related by
-
MDL-77924 Deleting a course with an activity plugin disabled results in exception
-
- Reopened
-
-
MDL-79690 err_system dashboard and my courses and invalid course module id on course
-
- Closed
-
- is duplicated by
-
MDL-74521 Invalid Course Module error for Enrolled User if Course Completion Status Block Present and Required Module is Disabled
-
- Closed
-