Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67215

generalexceptionmessage when attempting to save an annotated PDF assignment submission

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.8
    • 3.8
    • Assignment
    • MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • MDL-67215-master
    • Hide

      Requirements:

      1. A course with a teacher and student enrolled.
      2. An assignment with PDF annotation enabled
      3. A submission made by student

      Testing:

      1. Log in as the teacher
      2. Go to the assignment and view all submissions
      3. Grade the student's submission.
      4. When in the grading interface, rotate the document and add an annotation
      5. Save the changes
      6. Confirm no error comes up.
      Show
      Requirements: A course with a teacher and student enrolled. An assignment with PDF annotation enabled A submission made by student Testing: Log in as the teacher Go to the assignment and view all submissions Grade the student's submission. When in the grading interface, rotate the document and add an annotation Save the changes Confirm no error comes up.

      As reported by moien.abadi in MDLQA-13869, when a teacher attempts to save a rotated annotated PDF assignment submission the following error is displayed:

      generalexceptionmessage

      Exception - Width or height parameter needs to be larger than zero.
      File: .../editpdf/fpdi/FpdiTrait.php
      Line: 468
      Stack trace:
      Error code: generalexceptionmessage

      • line 468 of /mod/assign/feedback/editpdf/fpdi/FpdiTrait.php: InvalidArgumentException thrown
      • line 130 of /mod/assign/feedback/editpdf/fpdi/Tcpdf/Fpdi.php: call to setasign\Fpdi\Tcpdf\Fpdi->getImportedPageSize()
      • line 782 of /mod/assign/feedback/editpdf/classes/pdf.php: call to setasign\Fpdi\Tcpdf\Fpdi->getTemplateSize()
      • line 704 of /mod/assign/feedback/editpdf/classes/document_services.php: call to assignfeedback_editpdf\pdf->add_image_page()
      • line 271 of /mod/assign/feedback/editpdf/locallib.php: call to assignfeedback_editpdf\document_services::generate_feedback_document()
      • line 8315 of /mod/assign/locallib.php: call to assign_feedback_editpdf->save()
      • line 8482 of /mod/assign/locallib.php: call to assign->apply_grade_to_user()
      • line 1584 of /mod/assign/externallib.php: call to assign->save_grade()
      • line ? of unknownfile: call to mod_assign_external::submit_grading_form()
      • line 244 of /lib/externallib.php: call to call_user_func_array()
      • line 79 of /lib/ajax/service.php: call to external_api::call_external_function()

            peterdias Peter Dias
            tsala Helen Foster
            Jake Dallimore Jake Dallimore
            Adrian Greeve Adrian Greeve
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 11 minutes
                1h 11m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.