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

SCO with >100 interactions can trigger PHP max_input_vars error

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 2.3
    • SCORM
    • MOODLE_23_STABLE

      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.

            danmarsden Dan Marsden
            christianp Christian Perfect
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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