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

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

    XMLWordPrintable

    Details

    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-58310-master
    • Sprint:
      3.4 Sprint 1

      Description

      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

       

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                23 Vote for this issue
                Watchers:
                41 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Jul/17