Debug info: ERROR: invalid input syntax for integer: "" SELECT * FROM mdl_files WHERE contextid = $1 AND component = $2 AND filearea = $3 AND itemid = $4 ORDER BY id DESC [array ( 0 => '13', 1 => 'user', 2 => 'draft', 3 => '', )] Stack trace: * line 394 of /lib/dml/moodle_database.php: dml_read_exception thrown * line 232 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end() * line 678 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end() * line 1122 of /lib/dml/moodle_database.php: call to pgsql_native_moodle_database->get_records_sql() * line 1071 of /lib/dml/moodle_database.php: call to moodle_database->get_records_select() * line 266 of /lib/filestorage/file_storage.php: call to moodle_database->get_records() * line 127 of /lib/form/filepicker.php: call to file_storage->get_area_files() * line 1593 of /lib/formslib.php: call to MoodleQuickForm_filepicker->exportValue() * line 498 of /lib/formslib.php: call to MoodleQuickForm->exportValues() * line 448 of /lib/formslib.php: call to moodleform->validate_defined_fields() * line 545 of /lib/formslib.php: call to moodleform->is_validated() * line 141 of /user/editadvanced.php: call to moodleform->get_data()