I have a weird error when deleting users:
Notice: Trying to get property of non-object in /var/www/elo/moodle/lib/grade/grade_grade.php on line 1080
Notice: Trying to get property of non-object in /var/www/elo/moodle/lib/classes/event/grade_deleted.php on line 70
This doesn't happen with all users when clicking the cross in "Browse list of users", but it happens always if I use "Bulk user actions" or "Upload users" with CSV using username and delete fields.
Some users I can't delete at all. So I have the impression there is some data for some users that breaks the delete script. I couldn't find any bugs that look similar. I tried to bulk delete the two users on the demo site and that worked
Has anyone an idea where to start my investigation?