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

Large quiz won't submit due to PHP max_input_vars value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.4.4
    • Fix Version/s: None
    • Component/s: Questions, Quiz
    • Labels:
    • Workaround:
      • increase the max_input_vars in the php.ini
      • use multipage mode
    • Affected Branches:
      MOODLE_24_STABLE

      Description

      When submitting a large quiz (more than 600 questions) an error occurred with the following message :
      A required parameter (attempt) was missing

      this is due to missing fields in $_POST.
      Its size is imposed by the max_input_vars setting (1000 by default) in the php.ini file.

      Steps to reproduce :
      With a default php installation,
      1. create a quiz with more than 600 questions
      2. access the preview mode
      3. click on "Quiz navigation > Finish attempt..." or on the "Check" button of any answer.

      Result :
      the error message above is displayed

      What was expected :
      either the submit process is correctly done (the better case)
      or prevent the creator of a quiz to create a too large one.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                timhunt Tim Hunt
                Reporter:
                evillard Eric Villard
                Participants:
                Component watchers:
                Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: