Cannot read file. Either the file does not exist or there is a permission problem.

Cannot read file. Either the file does not exist or there is a permission problem.

by Rob Nielson -
Number of replies: 0

Hello!

I have a bit of a problem...

All of the graphic files are missing from my server. I have no idea how/why they disappeared.  Fortunately, I do have backups of them so I can replace them. But, I don't know how to figure out where they should go on the server.

I tried to edit a quiz and put the pic back in but when I click on "edit settings" I get this:


Debug info: [dataroot]/filedir/f8/96/f896d9aa25d2f7ccc390a2df240abd7401281725

Error code: storedfilecannotread
×Stack trace:
  • line 187 of /lib/filestorage/stored_file.php: file_exception thrown
  • line 871 of /lib/filestorage/stored_file.php: call to stored_file->update()
  • line 424 of /lib/filelib.php: call to stored_file->set_source()
  • line 166 of /course/modedit.php: call to file_prepare_draft_area()


So I'm unable to edit moodle at all. I would like to back up all my courses and upgrade to the latest version. But I can't back it up due to this error. I believe i'm currently on 3.0+.


Thanks for your help!

Average of ratings: -