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

SCO with >100 interactions can trigger PHP max_input_vars error

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.3
    • None
    • SCORM
    • 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

              danmarsden Dan Marsden
              christianp Christian Perfect
              Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: