PHP 8.2.28-0107
Moodle: 5.0.2
MariaDB 10: 10.11.6-1369
All of my automated course backups have been working fine but one of them recently started failing to backup. So I just tried doing a manual backup of that course from the CLI. Here is the result:
sudo -u http /usr/local/bin/php82 -c /volume1/@appstore/PHP8.2/usr/local/etc/php82/cli/php.ini /volume1/web/tbcmoodle/admin/cli/backup.php --courseid=60 --destination=/volume2/Volume2/moodle_backups/moodle_course_backups
== Performing backup... ==
!!! Exception - core_question\local\bank\random_question_loader::get_filtered_question_ids(): Argument #1 ($filters) must be of type array, null given, called in [dirroot]/question/classes/local/bank/random_question_loader.php on line 491 !!!
Potential coding error - existing temptables found when disposing database. Must be dropped!
I assume the way to proceed would be to delete the course then restore it from the last know good backup which is from about 1.5 months ago but most of that time the course was not being used as we were between course times. The only problem with that is that the course has been in use since Sept 8th of this month so we would lose all of the work done thus far in the course.
Is there an alternative suggestion on how to correct the problem without losing student work done since the 8th? While I'm no MariaDB guru I do know enough to muck around a bit if given some guidance if that would help.
Note: The last known good backup was from August 5th. I performed a Moodle upgrade from 4.5.4 to 5.0.2 using the CLI on August 8th but no other courses have failed to backup beside the one noted above. I can provide the full output from the CLI upgrade if needed but it did not list any error messages.
Thanks,
-Mike W
P.S. - I went ahead and attached a text file of the Moodle upgrade CLI output.