-
Bug
-
Resolution: Fixed
-
Minor
-
2.3.2
-
MOODLE_23_STABLE
-
MOODLE_23_STABLE
-
Steps to reproduce problem:
- Go to QA site: http://qa.moodle.net/
- Login as teacher
- Go to "Manage private files"
- Upload text file called test.txt and click save changes
- Go to a course and add a file resource using the uploaded text file as a shortcut/alias
- Edit text file and then go to "Manage private files" again
- Upload edited text file and choose "Overwrite" when the prompt appears after file upload
- Then click save changes
- Following error message appears:
Coding error detected, it must be fixed by a programmer: PHP catchable fatal error
|
|
Debug info: Argument 1 passed to file_storage::update_references_to_storedfile() must be an instance of stored_file, null given, called in /html/lib/filelib.php on line 835 and defined
|
Error code: codingerror
|
Stack trace:
|
line 397 of /lib/setuplib.php: coding_exception thrown
|
line 1823 of /lib/filestorage/file_storage.php: call to default_error_handler()
|
line 835 of /lib/filelib.php: call to file_storage->update_references_to_storedfile()
|
line 291 of /lib/filelib.php: call to file_save_draft_area_files()
|
line 64 of /user/files.php: call to file_postupdate_standard_filemanager()
|
Output buffer: <br /> <b>Notice</b>: Undefined variable: this in <b>/html/lib/filelib.php</b> on line <b>835</b><br />
|
- Also, another error message that appears is that in the function update_references_to_storedfile in lib/filestorage/file_storage is missing the reference to a global $DB object.
- is a regression caused by
-
MDL-34290 Bugs with synchronisation of files references and Dropbox improvement
-
- Closed
-
- is duplicated by
-
MDL-36133 impossible to update a linked file
-
- Closed
-
-
MDL-36166 link to relative folder not working
-
- Closed
-
- will help resolve
-
MDL-35361 updating (overwriting) a file in private area which is linked multiple times to courses - error
-
- Closed
-