by Christina Rutledge.
I went in and made the changes you recommended and have a print screen for the error. The actual error says "Multiple records found but only one expected" When I try to create that quiz. If I create a new quiz and add a unique number before the quiz name, like 1.2 then it will work fine. Still have the other issue of quizzes showing up in multiple courses when being created.
I recently had my site upgraded and have only had this problem since then.
see below for a print screen of what it shows, but this is a type of it as well.
Did you remember to make the first column something unique in your call to get_records? Duplicate value '38' found in column 'instance'.
- line 1032 of /lib/dml/mysqli_native_moodle_database.php: call to debugging()
- line 1697 of /lib/datalib.php: call to mysqli_native_moodle_database->get_records_sql()
- line 1181 of /mod/quiz/lib.php: call to instance_is_visible()
- line 1115 of /mod/quiz/lib.php: call to quiz_update_events()
- line 94 of /mod/quiz/lib.php: call to quiz_after_add_or_update()
- line 449 of /course/modedit.php: call to quiz_add_instance()
Error output, so disabling automatic redirect.