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

Installer causes uncaught promise

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MDL-71159-master
    • Hide
      1. Take your existing install
      2. Open the config.php in your editor
      3. Change the $CFG->prefix to something new (i.e. $CFG->prefix = 'mdlxxx_';)
      4. Open your browser to the installation page
      5. Open your browser developer tools and focus on the Console
      6. Clear the console
      7. Refresh the page
        1. Confirm that you do not see anything in the console relating to unchaught errors in promises
      8. Open the network tab in your browser
      9. Filter by XHR
        1. Confirm that you do not see any requests
      10. Complete the installation
      11. Disable caching for JS and strings (i.e. mdk run dev)
      12. In the "Sources" tab, open the lib/amd/src/prefetch.js file (Ctrl + O from the Sources will usually help with this)
      13. Find the processQueue function, and put a breakpoint on the first line (Probably line 77)
      14. Refresh the page
        1. Confirm that the breakpoint was hit
      15. Clear the breakpoint and press the Play button
        1. Confirm that there are no uncaught errors in the console
      Show
      Take your existing install Open the config.php in your editor Change the $CFG->prefix to something new (i.e. $CFG->prefix = 'mdlxxx_'; ) Open your browser to the installation page Open your browser developer tools and focus on the Console Clear the console Refresh the page Confirm that you do not see anything in the console relating to unchaught errors in promises Open the network tab in your browser Filter by XHR Confirm that you do not see any requests Complete the installation Disable caching for JS and strings (i.e. mdk run dev ) In the "Sources" tab, open the lib/amd/src/prefetch.js file (Ctrl + O from the Sources will usually help with this) Find the processQueue function, and put a breakpoint on the first line (Probably line 77) Refresh the page Confirm that the breakpoint was hit Clear the breakpoint and press the Play button Confirm that there are no uncaught errors in the console

      Steps to reproduce

      • Configure config.php for initial install process
      • Begin moodle installation process

      Expected results

      No JavaScript errors

      Actual results

      Uncaught (in promise) 
      Object { error: "Error reading from database", errorcode: "dmlreadexception", stacktrace: null, debuginfo: null, reproductionlink: null }
      

            dobedobedoh Andrew Lyons
            poltawski Dan Poltawski
            Simey Lameze Simey Lameze
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Shamim Rezaie Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 5 minutes
                4h 5m

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