Assignment file upload error - moodle 3.2.1

Assignment file upload error - moodle 3.2.1

by Vittorio Alfieri -
Number of replies: 0

We have already open a bug tracker, but moderator ask me to submit here the problem to find someone who have any ideas.

When we try to upload a file into an assigment we receive this error:

Exception - Class 'assignsubmission_file\event\submission_created' not found

×Debug info: 
Error code: generalexceptionmessage
×Stack trace: * line 281 of /mod/assign/submission/file/locallib.php: Error thrown

  • line 6789 of /mod/assign/locallib.php: call to assign_submission_file->save()
  • line 6869 of /mod/assign/locallib.php: call to assign->save_submission()
  • line 437 of /mod/assign/locallib.php: call to assign->process_save_submission()
  • line 55 of /mod/assign/view.php: call to assign->view()

Now the situation become more complicated, because if the user press the continue button and return again into the assigment the file was uploaded correctly but the status was "not submitted" otherwise if the user do a page refresh (F5) without leave the error page the submission of assigment gone right and the page are load normaly.

The problem occur only for the first submisison if we upload a second file the error doesn't occur.

We use Chrome browser and the php error log doesn't show any information.

We have already checked the file permisison and cleared the cache but the problem persist.


Thanks in advance to all.


Attachment Error - mod_assign_view.php.png
Average of ratings: -