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

PHP7.1 JS error in pdf annotations in assignment grading

    XMLWordPrintable

Details

    • 3.2 Sprint 7

    Description

      There are four failing behat tests on PHP7.1,

       Failed steps:
       
          And I should see "Page 1 of 3" # /home/moodle/moodles/m/moodle/mod/assign/feedback/editpdf/tests/behat/annotate_pdf.feature:56
            "Page 1 of 3" text was not found in the page (Behat\Mink\Exception\ExpectationException)
       
          And I wait until the page is ready # /home/moodle/moodles/m/moodle/mod/assign/feedback/editpdf/tests/behat/annotate_pdf.feature:132
            Javascript code and/or AJAX requests are not ready after 10 seconds. There is a Javascript error or the code is extremely slow. (Exception)
       
          And I wait until the page is ready # /home/moodle/moodles/m/moodle/mod/assign/feedback/editpdf/tests/behat/group_annotations.feature:54
            Javascript code and/or AJAX requests are not ready after 10 seconds. There is a Javascript error or the code is extremely slow. (Exception)
       
          And I wait until the page is ready # /home/moodle/moodles/m/moodle/mod/assign/feedback/editpdf/tests/behat/group_annotations.feature:54
            Javascript code and/or AJAX requests are not ready after 10 seconds. There is a Javascript error or the code is extremely slow. (Exception)
      

      when repeating the test steps manually I get en error popup:

      missing response
      File:
      http://php71.localhost/m/lib/requirejs.php/1473039847/core/first.js
      Line:
      18
       
      ln: 170
      http://php71.localhost/m/lib/requirejs.php/14
      c
      ln: 251
      http://php71.localhost/m/lib/javascript.php/1
      r.Callbacks/i
      ln: 1023
      http://php71.localhost/m/lib/javascript.php/1
      r.Callbacks/j.fireWith
      ln: 466
      http://php71.localhost/m/lib/javascript.php/1
      A
      ln: 2762
      http://php71.localhost/m/lib/javascript.php/1
      .send/c/<
      ln: 3108
      http://php71.localhost/m/lib/javascript.php/1
      .send
      ln: 3826
      http://php71.localhost/m/lib/javascript.php/1
      .ajax
      ln: 1118
      http://php71.localhost/m/lib/requirejs.php/14
      .call
      ln: 159
      http://php71.localhost/m/lib/requirejs.php/14
      c
      ln: 413
      http://php71.localhost/m/lib/requirejs.php/14
      .loadFragment
      ln: 3587
      http://php71.localhost/m/lib/requirejs.php/14
      i.prototype._refreshGradingPanel/</<
      ln: 251
      http://php71.localhost/m/lib/javascript.php/1
      r.Callbacks/i
      ln: 1023
      http://php71.localhost/m/lib/javascript.php/1
      r.Callbacks/j.fireWith
      ln: 1039
      http://php71.localhost/m/lib/javascript.php/1
      .Deferred/</f[b[0]]
      ln: 615
      http://php71.localhost/m/lib/requirejs.php/14
      i.prototype._niceReplaceNodeContents/</<
      ln: 2040
      http://php71.localhost/m/lib/javascript.php/1
      r.speed/e.complete
      ln: 251
      http://php71.localhost/m/lib/javascript.php/1
      r.Callbacks/i
      ln: 1023
      http://php71.localhost/m/lib/javascript.php/1
      r.Callbacks/j.fireWith
      ln: 303
      http://php71.localhost/m/lib/javascript.php/1
      gb/i
      ln: 3751
      http://php71.localhost/m/lib/javascript.php/1
      r.fx.tick
      ln: 48
      http://php71.localhost/m/lib/javascript.php/1
      ab
      

      Note, error only happens when teacher/admin opens student's submission FOR THE FIRST TIME. When opening for the second time the page loads fine

      Attachments

        Issue Links

          Activity

            People

              lameze Simey Lameze
              marina Marina Glancy
              Marina Glancy Marina Glancy
              Dan Poltawski Dan Poltawski
              Adrian Greeve Adrian Greeve
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5/Dec/16