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

Failed to prefetch template JS Error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1.6, 3.2.3
    • 3.1.5, 3.2, 3.3
    • JavaScript
    • MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
    • MOODLE_31_STABLE, MOODLE_32_STABLE
    • MDL-58317-master
    • Hide

      Apply the testing commit (patch file attached to this issue). 

      Enable debugging, disable cachejs.

      Visit test.php - verify there are not error popups after 10 seconds.

      Show
      Apply the testing commit (patch file attached to this issue).  Enable debugging, disable cachejs. Visit test.php - verify there are not error popups after 10 seconds.

      It is possible to trigger a "failed to pre-fetch template" JS error with a particular nesting of templates. 

      This is due to not waiting for all promises to complete before rendering a template.

       

            damyon Damyon Wiese
            damyon Damyon Wiese
            Ryan Wyllie Ryan Wyllie
            Dan Poltawski Dan Poltawski
            Jake Dallimore Jake Dallimore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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