Hi Folks,
I'm getting the following error when uploading (what I think) is a valid .csv via upload users.
The CSV is accepted and displays fine after initial upload, then after confirming details and choosing 'update existing users' the error comes up and nothing is written to the db.
Anyone have any idea's what the issue might be?
Moodle Version 3.1
Warning: Illegal string offset 'text' in .../admin/tool/uploaduser/index.php on line 236 Warning: Illegal string offset 'format' in .../admin/tool/uploaduser/index.php on line 237 Notice: Undefined index: format in .../user/profile/field/textarea/field.class.php on line 59 Notice: Undefined index: text in .../user/profile/field/textarea/field.class.php on line 60 Error writing to database More information about this error Debug info: Column 'dataformat' cannot be null INSERT INTO mdl_user_info_data (dataformat,userid,fieldid,data) VALUES(?,?,?,?) [array ( 0 => NULL, 1 => 11247, 2 => '11', 3 => NULL, )]
Error code: dmlwriteexception Stack trace: line 477 of /lib/dml/moodle_database.php: dml_write_exception thrown line 1172 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end() line 1218 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw() line 157 of /user/profile/lib.php: call to mysqli_native_moodle_database->insert_record() line 501 of /user/profile/lib.php: call to profile_field_base->edit_save_data() line 824 of /admin/tool/uploaduser/index.php: call to profile_save_data()
Many thanks for your hints,
James