Buenos días, cuando intento crear un curso en moodle 2.7 me da un error de base de datos y tras activar la depuración me encuentro con el siguiente error:
Debug info: Field 'type' doesn't have a default value
INSERT INTO mdl_course (fullname,shortname,category,visible,startdate,idnumber,format,lang,newsitems,showgrades,showreports,
maxbytes,enablecompletion,groupmode,groupmodeforce,defaultgroupingid,timecreated,timemodified,
sortorder,summary,visibleold) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
[array (
0 => 'wrwetat',
1 => 'atraret',
2 => '1',
3 => '1',
4 => 1407884400,
5 => '1',
6 => 'weeks',
7 => '',
8 => '5',
9 => '1',
10 => '1',
11 => '2097152',
12 => '0',
13 => '0',
14 => '0',
15 => '0',
16 => 1407843162,
17 => 1407843162,
18 => 0,
19 => '',
20 => '1',
)]
Error code: dmlwriteexception
Stack trace:
line 446 of /lib/dml/moodle_database.php: dml_write_exception thrown
line 1098 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1144 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
line 2538 of /course/lib.php: call to mysqli_native_moodle_database->insert_record()
line 129 of /course/edit.php: call to create_course()
¿Alguien sabe como solucionarlo?