Hello,
I am on the latest version of Moodle, and when I try to save a calculated question on page 1 of the form, I get a database error message. This is what shows up with debug on.
Debug info: COLLATION 'utf8mb4_bin' is not valid for CHARACTER SET 'utf8'
SELECT a.*
FROM mood_question_dataset_definitions a, mood_question_datasets b
WHERE a.id = b.datasetdefinition AND a.type = '1' AND b.question = ? AND a.name COLLATE utf8mb4_bin = ?
[array (
0 => '16',
1 => 'x',
)]
Error code: dmlreadexception
SELECT a.*
FROM mood_question_dataset_definitions a, mood_question_datasets b
WHERE a.id = b.datasetdefinition AND a.type = '1' AND b.question = ? AND a.name COLLATE utf8mb4_bin = ?
[array (
0 => '16',
1 => 'x',
)]
Error code: dmlreadexception
×Stack trace:
- line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 1216 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1571 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
- line 1492 of /question/type/calculated/questiontype.php: call to moodle_database->get_record_sql()
- line 1139 of /question/type/calculated/questiontype.php: call to qtype_calculated->dataset_options_from_database()
- line 523 of /question/type/calculated/questiontype.php: call to qtype_calculated->dataset_options()
- line 639 of /question/type/calculated/questiontype.php: call to qtype_calculated->preparedatasets()
- line 264 of /question/question.php: call to qtype_calculated->save_question()
Can anyone inform me about what to do? Thanks!