Hi,
I am getting following debug information when attempting to delete ..
`Execute scheduled task: Old quiz and question attempts deletion (local_deleteoldquizattempts\task\delete_attempts_task)
... started 18:20:01. Current memory use 20.7 MB.
Deleted 0 quiz attempts.
... used 2 dbqueries
... used 0.036534070968628 seconds
Scheduled task failed: Old quiz and question attempts deletion (local_deleteoldquizattempts\task\delete_attempts_task),Error reading from database
Debug info:
Unknown column 'hidden' in 'where clause'
SELECT * FROM mdl_question WHERE
hidden = ?
AND NOT EXISTS (
SELECT 1
FROM mdl_question_attempts
WHERE mdl_question_attempts.questionid = mdl_question.id
)
AND NOT EXISTS (
SELECT 1
FROM mdl_quiz_slots
WHERE mdl_quiz_slots.questionid = mdl_question.id
)
[array (
0 => 1,
)]
Backtrace:
line 1212 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1394 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_recordset_sql()
line 132 of /local/deleteoldquizattempts/classes/helper.php: call to moodle_database->get_recordset_select()
line 184 of /local/deleteoldquizattempts/classes/helper.php: call to local_deleteoldquizattempts\helper->delete_unused_questions()
line 55 of /local/deleteoldquizattempts/classes/task/delete_attempts_task.php: call to local_deleteoldquizattempts\helper->task_handler()
line 253 of /lib/cronlib.php: call to local_deleteoldquizattempts\task\delete_attempts_task->execute()
line 120 of /lib/cronlib.php: call to cron_run_inner_scheduled_task()
line 73 of /lib/cronlib.php: call to cron_run_scheduled_tasks()
line 178 of /admin/cli/cron.php: call to cron_run()
`
Hi, I am getting following debug information when attempting to delete .. `Execute scheduled task: Old quiz and question attempts deletion (local_deleteoldquizattempts\task\delete_attempts_task) ... started 18:20:01. Current memory use 20.7 MB. Deleted 0 quiz attempts. ... used 2 dbqueries ... used 0.036534070968628 seconds Scheduled task failed: Old quiz and question attempts deletion (local_deleteoldquizattempts\task\delete_attempts_task),Error reading from database Debug info: Unknown column 'hidden' in 'where clause' SELECT * FROM mdl_question WHERE hidden = ? AND NOT EXISTS ( SELECT 1 FROM mdl_question_attempts WHERE mdl_question_attempts.questionid = mdl_question.id ) AND NOT EXISTS ( SELECT 1 FROM mdl_quiz_slots WHERE mdl_quiz_slots.questionid = mdl_question.id ) [array ( 0 => 1, )] Backtrace: