Error with qtype_ddimageortext when running legacy cron

Error with qtype_ddimageortext when running legacy cron

by David Castro -
Number of replies: 1

Hello,

We are having the issues described here:

https://moodle.org/mod/forum/discuss.php?d=361846

Execute scheduled task: Legacy cron processing for plugins (core\task\legacy_plugin_cron_task)
... started 22:22:44. Current memory use 7.6MB.
Running auth crons if required...
Running cron for auth/mnet...
Running enrol crons if required...
Starting activity modules
Processing module function quiz_cron ...

  Looking for quiz overdue quiz attempts...
!!! Exception - Call to a member function summarise() on null !!!
!!
Error code: generalexceptionmessage !!
!! Stack trace: * line 65 of /question/type/ddimageortext/questionbase.php: Error thrown
* line 113 of /question/behaviour/deferredfeedback/behaviour.php: call to qtype_ddtoimage_question_base->summarise_response()
* line 57 of /question/behaviour/deferredfeedback/behaviour.php: call to qbehaviour_deferredfeedback->process_finish()
* line 1266 of /question/engine/questionattempt.php: call to qbehaviour_deferredfeedback->process_action()
* line 1304 of /question/engine/questionattempt.php: call to question_attempt->process_action()
* line 840 of /question/engine/questionusage.php: call to question_attempt->finish()
* line 1952 of /mod/quiz/attemptlib.php: call to question_usage_by_activity->finish_all_questions()
* line 1794 of /mod/quiz/attemptlib.php: call to quiz_attempt->process_finish()
* line 88 of /mod/quiz/cronlib.php: call to quiz_attempt->handle_if_time_expired()
* line 598 of /mod/quiz/lib.php: call to mod_quiz_overdue_attempt_updater->update_overdue_attempts()
* line 93 of /lib/classes/task/legacy_plugin_cron_task.php: call to quiz_cron()
* line 105 of /lib/cronlib.php: call to core\task\legacy_plugin_cron_task->execute()
* line 67 of /lib/cronlib.php: call to cron_run_inner_scheduled_task()
* line 61 of /admin/cli/cron.php: call to cron_run()
 !!

Is there a way we can query which attempts and questions are creating this error? Or to fix this on the database?

Average of ratings: -