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

Invalid param error when adding page resource with completion tracking.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: Repositories
    • Labels:
    • Affected Branches:
      MOODLE_23_STABLE

      Description

      To reproduce:
      enable completion tracking for the site and course. Add page resource to a course and set completion tracking to "show activity as complete when conditions are met" and untick the required view option.

      The following error occurs:

      Invalid array parameter detected in required_param(): page
       
          line 597 of /lib/moodlelib.php: call to debugging()
          line 48 of /repository/wikimedia/lib.php: call to optional_param()
          line 907 of /repository/lib.php: call to repository_wikimedia->__construct()
          line 2646 of /repository/lib.php: call to repository::get_instances()
          line 311 of /lib/form/editor.php: call to initialise_filepicker()
          line 183 of /lib/pear/HTML/QuickForm/Renderer/Tableless.php: call to MoodleQuickForm_editor->toHtml()
          line 2384 of /lib/formslib.php: call to HTML_QuickForm_Renderer_Tableless->renderElement()
          line 403 of /lib/pear/HTML/QuickForm/element.php: call to MoodleQuickForm_Renderer->renderElement()
          line 1631 of /lib/pear/HTML/QuickForm.php: call to HTML_QuickForm_element->accept()
          line 1414 of /lib/formslib.php: call to HTML_QuickForm->accept()
          line 1674 of /lib/pear/HTML/QuickForm.php: call to MoodleQuickForm->accept()
          line 435 of /lib/pear/HTML/Common.php: call to HTML_QuickForm->toHtml()
          line 204 of /lib/pear/HTML/QuickForm/DHTMLRulesTableless.php: call to HTML_Common->display()
          line 896 of /lib/formslib.php: call to HTML_QuickForm_DHTMLRulesTableless->display()
          line 662 of /course/modedit.php: call to moodleform->display()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              moodle.com moodle.com
              Reporter:
              rwijaya Rossiani Wijaya
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: