Dear Gareth
i got this:
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PEAR\Config.php on line 80
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PEAR\Config.php on line 166
Notice: Trying to get property of non-object in C:\xampp\htdocs\m21\course\format\topcoll\lib.php on line 168
Notice: Trying to get property of non-object in C:\xampp\htdocs\m21\course\format\topcoll\lib.php on line 169
Notice: Trying to get property of non-object in C:\xampp\htdocs\m21\course\format\topcoll\lib.php on line 170
Notice: Trying to get property of non-object in C:\xampp\htdocs\m21\course\format\topcoll\lib.php on line 171
Notice: Trying to get property of non-object in C:\xampp\htdocs\m21\course\format\topcoll\lib.php on line 172
Notice: Trying to get property of non-object in C:\xampp\htdocs\m21\course\format\topcoll\lib.php on line 173
Error writing to database
Debug info: Column 'layoutelement' cannot be null
INSERT INTO mdl_format_topcoll_settings (courseid,layoutelement,layoutstructure,layoutcolumns,tgfgcolour,tgbgcolour,tgbghvrcolour) VALUES(?,?,?,?,?,?,?)
[array (
0 => '9',
1 => NULL,
2 => NULL,
3 => NULL,
4 => NULL,
5 => NULL,
6 => NULL,
)]
Error code: dmlwriteexception
Stack trace:
- line 410 of \lib\dml\moodle_database.php: dml_write_exception thrown
- line 948 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 990 of \lib\dml\mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
- line 175 of \course\format\topcoll\lib.php: call to mysqli_native_moodle_database->insert_record()
- line 84 of \course\format\topcoll\lib.php: call to get_topcoll_setting()
- line 2013 of \lib\navigationlib.php: call to callback_topcoll_get_section_name()
- line 55 of \course\format\topcoll\lib.php: call to global_navigation->load_generic_course_sections()
- line 1897 of \lib\navigationlib.php: call to callback_topcoll_load_content()
- line 1251 of \lib\navigationlib.php: call to global_navigation->load_course_sections()
- line 3039 of \lib\navigationlib.php: call to global_navigation->initialise()
- line 778 of \lib\pagelib.php: call to navbar->has_items()
- line 4 of \theme\b_escartfr\layout\general.php: call to moodle_page->has_navbar()
- line 765 of \lib\outputrenderers.php: call to include()
- line 712 of \lib\outputrenderers.php: call to core_renderer->render_page_layout()
- line 225 of \course\view.php: call to core_renderer->header()