Error when editing a section

Error when editing a section

by Fernando Souza -
Number of replies: 5

Hi guys,


I'm having a problem when I try to edit the summary block.

The error message I get is: "Can not read file, either file does not exist or there are permission problems"

And then a link to this: http://docs.moodle.org/28/en/error/moodle/storedfilecannotread

Any idea on how to fix this problem?


Thanks

Average of ratings: -
In reply to Fernando Souza

Re: Error when editing a section

by Heather Williams -

Can you provide more information? What file is it saying does not exist (a full stack trace from turning up debugging level would be helpful). What version of Moodle are you running and have you checked the permissions on the files and folders?

In reply to Heather Williams

Re: Error when editing a section

by Fernando Souza -

Hi,

Thank you for the reply.

The version is Moodle 2.8.5+ and here is the error message:


Debug info: [dataroot]/filedir/6d/74/6d741064f0579af5c89bfdf7730ca0d02d1d1030
Error code: storedfilecannotread
Stack trace:
  • line 187 of /lib/filestorage/stored_file.php: file_exception thrown
  • line 881 of /lib/filestorage/stored_file.php: call to stored_file->update()
  • line 424 of /lib/filelib.php: call to stored_file->set_source()
  • line 193 of /lib/filelib.php: call to file_prepare_draft_area()
  • line 91 of /course/editsection_form.php: call to file_prepare_standard_editor()
  • line 56 of /course/editsection.php: call to editsection_form->set_data()

I checked moodledata folder and it seems that file actually don't exist. Can't really understand why.

In reply to Heather Williams

Re: Error when editing a section

by Fernando Souza -

Hi,

Thank you for the reply.

The version is Moodle 2.8.5+ and here is the error message:


Debug info: [dataroot]/filedir/6d/74/6d741064f0579af5c89bfdf7730ca0d02d1d1030
Error code: storedfilecannotread
Stack trace:
  • line 187 of /lib/filestorage/stored_file.php: file_exception thrown
  • line 881 of /lib/filestorage/stored_file.php: call to stored_file->update()
  • line 424 of /lib/filelib.php: call to stored_file->set_source()
  • line 193 of /lib/filelib.php: call to file_prepare_draft_area()
  • line 91 of /course/editsection_form.php: call to file_prepare_standard_editor()
  • line 56 of /course/editsection.php: call to editsection_form->set_data()

I checked moodledata folder and it seems that file actually don't exist. Can't really understand why.

In reply to Fernando Souza

Re: Error when editing a section

by Fernando Souza -

Ok, forget it! Thanks for your help.


I just found out someone has moved the moodledata folder somewhere else. D'oh!


Sorry!

Average of ratings: Useful (1)