-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
3.3.5
-
MOODLE_33_STABLE
DESCRIPTION
The \assignfeedback_editpdf\task\convert_submissions task is reporting "Conversion failed with error: Could not find readonly pages for grade <assign_grade.id>" for numerous submissions.
These same submissions if opened for grading by the instructor never render a PDF file.
The error can be replicated as documented below on the first conversion attempt. However, I have observed in multiple environments, but have been unable to replicate from scratch, that some submissions fail to convert with the error every time the task runs.
STEPS TO REPLICATE
Note: These steps will replicate the error at least once, I have not been able to replicate from scratch submissions which fail with this error on every execution of the task.
1. Create a new assignment.
2. In the assignment settings, under Submission types select both "Online text" and "File submissions".
3. As a student make a submission to the assignment entering some online text and uploading a basic .docx file.
4. Go to Site administration > Server > Scheduled tasks.
5. Click "Run now" for the "Prepare submissions for annotation" task.
OBSERVED BEHAVIOR:
Task output reports:
Convert 1 submission attempt(s) for assignment 294
Conversion failed with error:Could not find readonly pages for grade 154
EXPECTED BEHAVIOR:
Submissions converted to PDF without any errors.
REPLICATION LOCATIONS
Moodle 3.3.3 and 3.3.5.
ADDITIONAL INVESTIGATION NOTES
1. It appears that the initial conversion attempt takes the online text part of the submission stored in mdl_assignsubmission_onlinetext and creates an html file with the contents. I see a record added to the mdl_files table with component=assignfeedback_editpdf and filearea=importhtml.
2. For the submissions which never convert I never see mdl_files records created for the pages, readonlypages, or combined fileareas.
3. The reported error is returned by public static function get_pages_images_for_attempt in /mod/assign/feedback/editpdf/classes/document_services..php.
USER IMPACT
At one institution there are over a thousand assignment submissions encountering this error. Instructors are unable to rely upon the PDF annotation feedback options when so many submissions are not being converted successfully.
- has been marked as being related by
-
MDL-75898 Assignment readonly pages can be requested when they do not exist
-
- Closed
-