Hello I am running a server using moodle 3.2 on Ubuntu server 16.04. I have two active courses on the site and it has been running reliably for about a year.
Today the gradebook stopped working on a course and when I turned on debugging to the page , it started spewing out errors that went on and on until I killed the page.
I teach a course in computer programming and I used the vpl plugin to manage programming assignments and had a number (maybe about 20) short programming assignments each week. In addition, I used an attendance plugin to manage student attendance at the labs.
I had quite a complex gradebook setup. The main course was divided into weeks and each week had between two and four sub categories and each of those subcategories had a number of programming assignments. There was a formula that produced a total for the week that depended on the attendance.
Naturally, the most important thing for me is to get the grades working again and I would appreciate any troubleshooting tips. I have full access to the server but am not sure where to start.
Thanks in advance etc.
There follows the first few lines from the error output. As I said it goes on and on:
Warning: Creating default object from empty value in /var/www/html/moodle/lib/grade/grade_category.php on line 2097
Notice: Undefined property: stdClass::$children in /var/www/html/moodle/lib/grade/grade_category.php on line 2115
Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/moodle/lib/grade/grade_category.php on line 2115
Notice: Undefined property: stdClass::$path in /var/www/html/moodle/lib/grade/grade_category.php on line 2131
Notice: Undefined property: stdClass::$id in /var/www/html/moodle/lib/grade/grade_category.php on line 2131
Notice: Undefined property: stdClass::$id in /var/www/html/moodle/lib/grade/grade_category.php on line 2133
- line 2246 of /lib/grade/grade_category.php: call to debugging()
- line 2232 of /lib/grade/grade_category.php: call to grade_category->get_grade_item()
- line 234 of /lib/grade/grade_category.php: call to grade_category->load_grade_item()
- line 2135 of /lib/grade/grade_category.php: call to grade_category->update()
- line 2013 of /lib/grade/grade_category.php: call to grade_category->get_children()
- line 2258 of /grade/lib.php: call to grade_category::fetch_course_tree()
- line 56 of /grade/edit/tree/index.php: call to grade_tree->__construct()
- line 418 of /lib/grade/grade_category.php: call to debugging()
- line 257 of /lib/grade/grade_category.php: call to grade_category->qualifies_for_regrading()
- line 2135 of /lib/grade/grade_category.php: call to grade_category->update()
- line 2013 of /lib/grade/grade_category.php: call to grade_category->get_children()
- line 2258 of /grade/lib.php: call to grade_category::fetch_course_tree()
- line 56 of /grade/edit/tree/index.php: call to grade_tree->__construct()
- line 248 of /lib/grade/grade_object.php: call to debugging()
- line 263 of /lib/grade/grade_category.php: call to grade_object->update()
- line 2135 of /lib/grade/grade_category.php: call to grade_category->update()
- line 2013 of /lib/grade/grade_category.php: call to grade_category->get_children()
- line 2258 of /grade/lib.php: call to grade_category::fetch_course_tree()
- line 56 of /grade/edit/tree/index.php: call to grade_tree->__construct()
Warning: Creating default object from empty value in /var/www/html/moodle/lib/grade/grade_category.php on line 2097