Hi,
I use calculated questions with shared wildcards, and when trying to edit one of them the following warning appears:
Standards: Creating default object from empty value in /usr/share/moodle/question/type/calculated/questiontype.php on line 1637
When I finish editing the first page and click save, then the following appears:
Strict Standards: Creating default object from empty value in /usr/share/moodle/question/type/calculated/questiontype.php on line 1637.
I click on "continue", then the wildcard dataset propertieas page appears, I click on continue and then appears:
db->get_record() found more than one record!
- line 1358 of /lib/dml/moodle_database.php: call to debugging()
- line 1318 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
- line 1297 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
- line 1051 of /question/type/calculated/questiontype.php: call to moodle_database->get_record()
- line 402 of /question/type/calculated/datasetitems_form.php: call to qtype_calculated->comment_on_datasetitems()
- line 221 of /question/question.php: call to question_dataset_dependent_items_form->set_data()
This appears 4 times (I have 4 datasets in this question), and below this, the "edit the wildcard datasets" page appears. I work on this page and when saving it appears again:
Error: mdb->get_record() found more than one record!
- line 1358 of /lib/dml/moodle_database.php: call to debugging()
- line 1318 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
- line 1297 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
- line 1051 of /question/type/calculated/questiontype.php: call to moodle_database->get_record()
- line 402 of /question/type/calculated/datasetitems_form.php: call to qtype_calculated->comment_on_datasetitems()
- line 221 of /question/question.php: call to question_dataset_dependent_items_form->set_data()
This appears 6 times. Although I can save the changes, and the question seem to perform well, I don't know if this can be an issue in the future.
Thanks
Luis