-
Bug
-
Resolution: Fixed
-
Major
-
2.4.5, 2.6.6, 2.7.3, 2.8
-
MOODLE_24_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
wip-
MDL-40097-master -
-
BACKEND Sprint 19
-
Small
Hi there,
I'm using Moodle 2.4 on a test site.
I've got a large course with many activities with completion criteria set. I'm using the Flexible Sections course format to structure things.
When I added the Course Completion block to the course I started getting the error:
Coding error detected, it must be fixed by a programmer: PHP catchable fatal error
I was able to turn on debugging and have identified the course completion block as the issue. When it's disabled the error goes.
Here's the debug info:
Debug info: Argument 1 passed to role_get_name() must be an instance of stdClass, boolean given, called in [dirroot]/completion/criteria/completion_criteria_role.php on line 126 and defined
Error code: codingerror
Stack trace:
line 406 of /lib/setuplib.php: coding_exception thrown
line 4458 of /lib/accesslib.php: call to default_error_handler()
line 126 of /completion/criteria/completion_criteria_role.php: call to role_get_name()
line 141 of /blocks/completionstatus/block_completionstatus.php: call to completion_criteria_role->get_title()
line 284 of /blocks/moodleblock.class.php: call to block_completionstatus->get_content()
line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 953 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 1005 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 353 of /lib/blocklib.php: call to block_manager->ensure_content_created()
line 34 of /theme/standardtotara/layout/general.php: call to block_manager->region_has_content()
line 806 of /lib/outputrenderers.php: call to include()
line 734 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 240 of /course/view.php: call to core_renderer->header()
- has a non-specific relationship to
-
MDL-39976 Completion tracking role not getting restored correctly. Breaking course access for some.
-
- Closed
-
- has been marked as being related by
-
MDL-51183 If a course has blocks which have had Guest and/or Authenticated user roles removed, when backed up and restored, the new course retains those removed roles
-
- Closed
-
-
MDL-44479 Badge role criteria is not getting properly restored when course is restored
-
- Closed
-