HI
I can't seem to add a certificate to this course. I got it working fine in the last course, but everytime I try to add it to this course I ge this message Error writing to Database:
INSERT INTO mdl_certificate (name,emailteachers,emailothers,delivery,savecert,printdate,datefmt,printnumber,printgrade,gradefmt,printoutcome,printhours,printteacher,customtext,certificatetype,orientation,borderstyle,bordercolor,printwmark,printsignature,printseal,course,intro,introformat,timemodified) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
[array (
0 => 'e',
1 => '0',
2 => '',
3 => '0',
4 => '0',
5 => '0',
6 => '1',
7 => '0',
8 => '0',
9 => '1',
10 => '0',
11 => '',
12 => '0',
13 => '',
14 => 'A4_non_embedded',
15 => 'L',
16 => '0',
17 => '0',
18 => '0',
19 => '0',
20 => '0',
21 => '5',
22 => '',
23 => '1',
24 => 1348667624,
)]
Error code: dmlwriteexception
- line 410 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 1029 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1071 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
- line 55 of /mod/certificate/lib.php: call to mysqli_native_moodle_database->insert_record()
- line 447 of /course/modedit.php: call to certificate_add_instance()