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

Edit PDF Ajax error saving pages.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Assignment
    • Labels:
    • Testing Instructions:
      Hide
      1. Create an assignment with Annotate PDF enabled, File submissions enabled, upload a pdf as a student, login as a teacher and grade the student
      2. Open the PDF editor
      3. Add a line
      4. Close the PDF editor
      5. Reopen the PDF editor
      6. Verify the line loads in the position is was before you closed the editor
      Show
      Create an assignment with Annotate PDF enabled, File submissions enabled, upload a pdf as a student, login as a teacher and grade the student Open the PDF editor Add a line Close the PDF editor Reopen the PDF editor Verify the line loads in the position is was before you closed the editor
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-42150-master
    • Story Points:
      1
    • Sprint:
      FRONTEND Sprint 5

      Description

      Errors saving pages.

      {"error":"Coding error detected, it must be fixed by a programmer: PHP catchable fatal error","stacktrace":"* line 393 of \/lib\/setuplib.php: coding_exception thrown\n* line 294 of \/mod\/assign\/feedback\/editpdf\/classes\/page_editor.php: call to default_error_handler()\n* line 174 of \/mod\/assign\/feedback\/editpdf\/classes\/page_editor.php: call to assignfeedback_editpdf\\page_editor::add_annotation()\n* line 103 of \/mod\/assign\/feedback\/editpdf\/ajax.php: call to assignfeedback_editpdf\\page_editor::set_annotations()\n","debuginfo":"Argument 1 passed to assignfeedback_editpdf\\page_editor::add_annotation() must be an instance of assignfeedback_editpdf\\annotation, instance of stdClass given, called in [dirroot]\/mod\/assign\/feedback\/editpdf\/classes\/page_editor.php on line 174 and defined\nError code: codingerror","reproductionlink":"http:\/\/damyon.moodle.local\/im\/"}

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              damyon Damyon Wiese
              Reporter:
              damyon Damyon Wiese
              Integrator:
              Dan Poltawski
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                18/Nov/13