Current server environment: Gentoo Linux 5.10.61 // Apache 2.0 // PHP 8,.0.12
Moodle: 3.11.3+ Build 2021 0924
Hotpot Module 2020-06-05
I tried to access an existing Hotpot Crossword written four years ago and working since then to change the due date. I got a blank screen and had to back out. PHP Error log shows message:
[Sat Nov 06 10:04:31.220440 2021]...Default exception handler: Can't find data record in database. Debug: SELECT md.name\n FROM {modules} md\n JOIN {course_modules} cm ON cm.module = md.id\n WHERE cm.id = :cmid\n[array (\n 'cmid' => 0,\n)]\nError code: invalidrecordunknown\n* line 1674 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown\n* line 1744 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()\n* line 1226 of /lib/datalib.php: call to moodle_database->get_field_sql()\n* line 48 of /course/rest.php: call to get_coursemodule_from_id()\n, referer: https://www.scholarsonline.org/ScholarsOnline/moodle/course/view.php?id=811¬ifyeditingon=1
I then tried removing the activity from the current course session; this worked. I created a new hotpot activity and tried to load the JCL file, which appeared to work and set the dates. However, on saving the activity, I again got a blank screen, and this time the error log showed
[Sat Nov 06 10:40:17.768022 2021] ... Default exception handler: Exception - array_intersect(): Argument #1 ($array) must be of type array, null given Debug: \nError code: generalexceptionmessage\n* line 1793 of /grade/report/grader/lib.php: TypeError thrown\n* line 1793 of /grade/report/grader/lib.php: call to array_intersect()\n* line 1815 of /grade/report/grader/lib.php: call to grade_report_grader::filter_collapsed_categories()\n* line 133 of /grade/report/grader/lib.php: call to grade_report_grader::get_collapsed_preferences()\n* line 140 of /grade/report/grader/index.php: call to grade_report_grader->__construct()\n, referer: https://www.scholarsonline.org/ScholarsOnline/moodle/course/view.php?id=811
So the students can complete their assignments, I've removed the activity. Any ideas why this has suddenly stopped working?