Not sure what happened when... BUT when try to view issued certificates, we get this error message displayed for all the issued certificates:
Did you remember to make the first column something unique in your call to get_records? Duplicate value '2' found in column 'id'.
- line 1005 of /lib/dml/mysqli_native_moodle_database.php: call to debugging()
- line 744 of /mod/certificate/lib.php: call to mysqli_native_moodle_database->get_records_sql()
- line 104 of /mod/certificate/view.php: call to certificate_get_issues()
There are pages of this message I assume for each issued certificate, so the duplicate value changes for each message.
UPDATE: It's only doing this in 5 out of 9 courses.The other 4 courses we are able to view the certificates no problem.
With debugging turned on I get this:
Error: mdb->get_record() found more than one record!
- line 1427 of /lib/dml/moodle_database.php: call to debugging()
- line 1387 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
- line 1366 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
- line 644 of /mod/certificate/lib.php: call to moodle_database->get_record()
- line 88 of /mod/certificate/view.php: call to certificate_get_issue()
How do I fix this???? I've never seen this before and I'm not sure where in the database I need to go to look for this duplicate value.