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

Error occurs whenever in progress ajax request is cancelled (random "undefined" popup)

XMLWordPrintable

    • MOODLE_32_STABLE
    • MOODLE_32_STABLE, MOODLE_33_STABLE
    • MDL-58310-master
    • Hide

      Test on all browsers

      1. Log in as a user
      2. Add sleep(10) to lib/ajax/service.php right before the echo json_encode($responses); (to simulate a lot of work to do)
      3. Click rapidly through a few different pages, before the messaging and notification icons/panels get enough time to load
      4. Make sure you don't get an error pop up modal. On chrome/firefox check that you see the error in the console. No need to do this on multiple browsers
      5. Go to the dashboard
      6. Before it loads, click to go to site home (or anywhere else)
      7. Make sure no error shows
      8. After half a second, but still before the page loads, press stop on the browser (or press the hotkey... usually escape)
      9. Make sure no error pop up modal shows
      10. Remove the sleep(10) from lib/ajax/service.php
      11. Go to some AJAX-y part of moodle (e.g. Site administration > Plugins > Activity modules > External tool > Manage tools)
      12. Cause an error (e.g. Add a tool with the url http://lti.tools/test/tp.php and click the return "with an error" link)
      13. Make sure the error displays as an in-page notification
      14. Add a echo "." to lib/ajax/service.php Make sure you get a pop up error modal
      Show
      Test on all browsers Log in as a user Add sleep(10) to lib/ajax/service.php right before the echo json_encode($responses); (to simulate a lot of work to do) Click rapidly through a few different pages, before the messaging and notification icons/panels get enough time to load Make sure you don't get an error pop up modal. On chrome/firefox check that you see the error in the console. No need to do this on multiple browsers Go to the dashboard Before it loads, click to go to site home (or anywhere else) Make sure no error shows After half a second, but still before the page loads, press stop on the browser (or press the hotkey... usually escape) Make sure no error pop up modal shows Remove the sleep(10) from lib/ajax/service.php Go to some AJAX-y part of moodle (e.g. Site administration > Plugins > Activity modules > External tool > Manage tools) Cause an error (e.g. Add a tool with the url http://lti.tools/test/tp.php and click the return "with an error" link) Make sure the error displays as an in-page notification Add a echo "." to lib/ajax/service.php Make sure you get a pop up error modal
    • 3.4 Sprint 1

      I am reporting a problem that has been happening to myself and others.  The links below will point you to discussion about this problem on Moodle.org.

      Sometimes an "undefined" dialog box will appear in Moodle 3.2.  Not sure why, but it seems to me that it has only started happening in Moodle 3.2.  I dismiss it by hitting my escape key.  The problem is that I cannot reproduce it myself.  It seems to randomly pop up at different times.  In some discussions, Ken seemed to think that it might have something to do with the new user tour feature, and this makes sense to me.  I am currently using the MORE theme, no user tours, and this undefined box pops up at different times.  

      I am posting this problem as a bug so that we can direct people who also experience this to share some comments and insights here in tracker.

      I will provide some links to Moodle.org discussions about it.

      3.2.2 upgrade: https://moodle.org/mod/forum/discuss.php?d=349136#p1408624]

      New Installation... : https://moodle.org/mod/forum/discuss.php?d=348362#p1405341

       

        1. warning.png
          59 kB
          Marina Glancy
        2. image-2017-04-04-12-07-00-379.png
          171 kB
          Luca Bösch
        3. Screen Shot 2017-04-05 at 9.57.41 AM.png
          134 kB
          Mike Churchward
        4. warning leads to undefined popup when calling unread conversations service.jpg
          123 kB
          Andreas Wagner
        5. image-2017-07-13-14-57-04-055.png
          82 kB
          David Paniagua Ruano

            Votes:
            23 Vote for this issue
            Watchers:
            38 Start watching this issue

              Created:
              Updated:
              Resolved:

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