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

SCO with >100 interactions can trigger PHP max_input_vars error

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: SCORM
    • Labels:
    • Affected Branches:
      MOODLE_23_STABLE

      Description

      We have a SCORM object with 134 interactions. It's an assignment for a stats module which involves filling in lots of data tables, so we genuinely do need to mark that many separate interactions.

      Because the SCORM module submits every single element in the data model as a separate form value each time an API.Commit() call is made, and because each completed interaction has ~8 data model elements associated with it, the Commit request contains over 1000 values.

      PHP has a configuration variable called max_input_vars which limits the number of values it will accept in a GET or POST request. By default, it's set to 1000. That means the remaining values just get chopped off, so the request fails in an interesting way: scoid is the last parameter added to the request, so the request returns "404, scoid not given".

      I'm filing this as a bug because there are much better ways of sending the data that don't involve breaking this limit, but it's low priority for us because we just increased the value of max_input_vars to 10000 and left it at that.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              danmarsden Dan Marsden
              Reporter:
              christianp Christian Perfect
              Participants:
              Component watchers:
              Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: