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

Timeline block showing a JS error in the console

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.6.3
    • 3.6.1, 3.7
    • Blocks
    • MOODLE_36_STABLE, MOODLE_37_STABLE
    • MOODLE_36_STABLE
    • MDL-64425-master
    • Hide
      1. Open the browser console.
      2. Log in as admin
      3. Add the Timeline block to your dashboard.
      4. Make sure the following error is not displayed in the console.

        M.util.get_string: invalid value type for $a->active
        

      Show
      Open the browser console. Log in as admin Add the Timeline block to your dashboard. Make sure the following error is not displayed in the console. M.util.get_string: invalid value type for $a->active

      Just noticed this JS error in my console:

      yui_combo.php:5828 M.util.get_string: invalid value type for $a->active
      INSTANCE.log @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:5828
      

      Debugging a bit it seems it is calling get_string function passing the third argument active as boolean.

            lameze Simey Lameze
            lameze Simey Lameze
            Peter Dias Peter Dias
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 22 minutes
                22m

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