Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
3.1.7, 3.3.1
-
MOODLE_31_STABLE, MOODLE_33_STABLE
-
MOODLE_32_STABLE, MOODLE_33_STABLE
-
MDL-59994-master-v2 -
Description
Hello,
When you have a competency waiting for a manager review and then you delete that user whose submission it is and try to access Moodle as manager/administrator you cannot do it anymore, Moodle opens only to show an error message but you cannot proceed or do anything else.
// code
|
|
Invalid user
|
Debug info: SELECT id FROM {user} WHERE id = ? AND deleted = ?
|
[array (
|
0 => '6', |
1 => 0, |
)]
|
Error code: invaliduser
|
Stack trace:
|
line 1533 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown |
line 1509 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select() |
line 6212 of /lib/accesslib.php: call to moodle_database->get_record() |
line 222 of /competency/classes/user_competency.php: call to context_user::instance() |
line 59 of /lib/classes/external/persistent_exporter.php: call to core_competency\user_competency->get_context() |
line 99 of /blocks/lp/classes/output/summary.php: call to core\external\persistent_exporter->__construct() |
line 66 of /blocks/lp/classes/output/renderer.php: call to block_lp\output\summary->export_for_template() |
line 401 of /lib/outputrenderers.php: call to block_lp\output\renderer->render_summary() |
line 77 of /blocks/lp/block_lp.php: call to plugin_renderer_base->render() |
line 288 of /blocks/moodleblock.class.php: call to block_lp->get_content() |
line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents() |
line 1200 of /lib/blocklib.php: call to block_base->get_content_for_output() |
line 1252 of /lib/blocklib.php: call to block_manager->create_block_contents() |
line 579 of /lib/outputrenderers.php: call to block_manager->ensure_content_created() |
line 110 of /theme/boost/classes/output/core_renderer.php: call to core_renderer->standard_head_html() |
line 219 of /lib/mustache/src/Mustache/Context.php: call to theme_boost\output\core_renderer->standard_head_html() |
line 138 of /lib/mustache/src/Mustache/Context.php: call to Mustache_Context->findVariableInStack() |
line 35 of /data/moodledatat/33x/localcache/mustache/1504160890/boost/__Mustache_f331ea457e6ac7e84847fc291f6981fb.php: call to Mustache_Context->findDot() |
line 68 of /lib/mustache/src/Mustache/Template.php: call to __Mustache_f331ea457e6ac7e84847fc291f6981fb->renderInternal() |
line 177 of /lib/outputrenderers.php: call to Mustache_Template->render() |
line 55 of /theme/boost/layout/columns2.php: call to renderer_base->render_from_template() |
line 1162 of /lib/outputrenderers.php: call to include() |
line 1092 of /lib/outputrenderers.php: call to core_renderer->render_page_layout() |
line 164 of /my/index.php: call to core_renderer->header() |
Steps to repeat.
- Make a competency framework that has a competency x
2. Assign this competency to course1 and create an assignment-activity and for it select this competency and "send for review"
3. Complete this assingment as Student1
4. Delete user Student1 from Moodle
5. Try to access Moodle with manager or administrator
Tested on Moodle 3.3.1+