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

Exception Too few arguments to function repository Moodle 3.2.2 Php 7.1.2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.2
    • Fix Version/s: 3.1.6, 3.2.3
    • Component/s: Repositories
    • Labels:
    • Testing Instructions:
      Hide
      Prerequisites.
      1. Setup a WebDAV repository.
      Test 1
      1. In a course, add a new file resource.
      2. In the filepicker, start selecting a file by navigating to a WebDAV repository instance and choosing a file
      3. In the "Select ***" dialog you can set the fields as you like, this does not have an impact.
      4. Press "Select this file"
      5. Verify that no exception is raised (neither shown as a popup nor on console)
      6. Verify that the uploaded file is shown in the file chooser.
      Show
      Prerequisites. Setup a WebDAV repository. Test 1 In a course, add a new file resource. In the filepicker, start selecting a file by navigating to a WebDAV repository instance and choosing a file In the "Select ***" dialog you can set the fields as you like, this does not have an impact. Press "Select this file" Verify that no exception is raised (neither shown as a popup nor on console) Verify that the uploaded file is shown in the file chooser.
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Pull Master Branch:
      MDL-58372-master

      Description

      We now have version 3.2.2+ of Moodle and 7.1.2 of PHP but since we upgraded the PHP server from version 5.4 to version 7.1.2, we can no longer use our OwnCloud application via the webdav Repositorie. Here is the error message:

      Exception : Too few arguments to function repository::prepare_file(), 0 passed in [dirroot]/repository/webdav/lib.php on line 75 and exactly 1 expected

      See https://youtu.be/dfx6wM-gu2k

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jan.dagefoerde Jan Dageförde
              Reporter:
              jalam gabriel jalam
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              David Monllaó
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/May/17