Open wilenius opened 3 weeks ago
When running cron, I get this error:
Adhoc task failed: qbank_genai\task\questions,Error writing to database (Field 'course' doesn't have a default value INSERT INTO mdl_qbank_genai (numoftries,userid,timecreated,timemodified,tries,uniqid,gift,success) VALUES(?,?,?,?,?,?,?,?) [array ( 0 => '10', 1 => '2', 2 => 1725421833, 3 => 1725421833, 4 => 0, 5 => '266d7d9033099a1.87919864', 6 => '', 7 => '', )])
This branch works, it uses the hidden param fix that we discussed yesterday: https://github.com/wilenius/moodle-qtype_genai/tree/heikki-fix
When running cron, I get this error:
Adhoc task failed: qbank_genai\task\questions,Error writing to database (Field 'course' doesn't have a default value INSERT INTO mdl_qbank_genai (numoftries,userid,timecreated,timemodified,tries,uniqid,gift,success) VALUES(?,?,?,?,?,?,?,?) [array ( 0 => '10', 1 => '2', 2 => 1725421833, 3 => 1725421833, 4 => 0, 5 => '266d7d9033099a1.87919864', 6 => '', 7 => '', )])