Hi all,
So I've run into a situation where a single user's dashboard page will not load. I'm not sure what's up (aside from the fact that it looks like they might've given their account info to a 3rd party / cheat service). When the student logs in, Moodle (3.5) redirects to the /my url, and does nothing until PHP times out. The nginx error logs fill with a flood of messages similar to these:
PHP message: PHP Notice: Undefined property: stdClass::$path in /data/shares/moodle/lib/grade/grade_category.php on line 2131
PHP message: PHP Notice: Undefined property: stdClass::$id in /data/shares/moodle/lib/grade/grade_category.php on line 2131
PHP message: PHP Notice: Undefined property: stdClass::$id in /data/shares/moodle/lib/grade/grade_category.php on line 2133
PHP message: PHP Warning: Creating default object from empty value in /data/shares/moodle/lib/grade/grade_category.php on line 2097
PHP message: PHP Notice: Undefined property: stdClass::$path in /data/shares/moodle/lib/grade/grade_category.php on line 2131
PHP message: PHP Notice: Undefined property: stdClass::$id in /data/shares/moodle/lib/grade/grade_category.php on line 2131
I've made a copy of the DB for later analysis, but right now I'd like to know if there's a straightforward way as an admin to reset a single user's dashboard without being able to access the dashboard itself (since it won't load). I don't want to reset the dashboards of all users in the system.
Thanks!