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

Failure in assignment cron task when group submission requires file conversion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1
    • Component/s: Assignment
    • Labels:
    • Testing Instructions:
      Hide
      Test 1
      1. Create a course with two students.
      2. Create a groups and assign the users to that group.
      3. Create an assignment with 'Students submit in groups' to 'Yes'.
      4. Log in as the student and submit an image as your submission.
      5. Run "php admin/tool/task/cli/schedule_task.php --execute=\\assignfeedback_editpdf\\task
        convert_submissions"
      6. Ensure there are no errors.
      Test 2
      1. Create a course with one student.
      2. Create an assignment with 'Students submit in groups' to 'No'.
      3. Log in as the student and submit an image as your submission.
      4. Run "php admin/tool/task/cli/schedule_task.php --execute=\\assignfeedback_editpdf\\task
        convert_submissions"
      5. Ensure there are no errors.
      Show
      Test 1 Create a course with two students. Create a groups and assign the users to that group. Create an assignment with 'Students submit in groups' to 'Yes'. Log in as the student and submit an image as your submission. Run "php admin/tool/task/cli/schedule_task.php --execute=\\assignfeedback_editpdf\\task convert_submissions" Ensure there are no errors. Test 2 Create a course with one student. Create an assignment with 'Students submit in groups' to 'No'. Log in as the student and submit an image as your submission. Run "php admin/tool/task/cli/schedule_task.php --execute=\\assignfeedback_editpdf\\task convert_submissions" Ensure there are no errors.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-53811_master

      Description

      This is a bug in the new unoconv handling in mod_assign - when looking at group submissions, this error is generated:

      Execute scheduled task: Prepare submissions for annotation (assignfeedback_editpdf\task\convert_submissions)
      Convert 3 submission attempt(s) for assignment 31
      PHP Warning:  Illegal offset type in isset or empty in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/assign/locallib.php on line 2454
       
      Warning: Illegal offset type in isset or empty in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/assign/locallib.php on line 2454
      PHP Warning:  Illegal offset type in isset or empty in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/assign/locallib.php on line 2478
       
      Warning: Illegal offset type in isset or empty in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/assign/locallib.php on line 2478
      PHP Warning:  Illegal offset type in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/assign/locallib.php on line 2485
       
      Warning: Illegal offset type in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/assign/locallib.php on line 2485
      PHP Warning:  Illegal offset type in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/assign/locallib.php on line 2466
       
      Warning: Illegal offset type in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/assign/locallib.php on line 2466
      PHP Warning:  Illegal offset type in isset or empty in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/assign/locallib.php on line 2454
       
      Warning: Illegal offset type in isset or empty in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/assign/locallib.php on line 2454
      PHP Warning:  Illegal offset type in isset or empty in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/assign/locallib.php on line 2478
       
      Warning: Illegal offset type in isset or empty in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/assign/locallib.php on line 2478
      PHP Warning:  Illegal offset type in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/assign/locallib.php on line 2485
       
      Warning: Illegal offset type in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/assign/locallib.php on line 2485
      PHP Warning:  Illegal offset type in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/assign/locallib.php on line 2466
       
      Warning: Illegal offset type in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/assign/locallib.php on line 2466
      
      

        Attachments

          Activity

            People

            Assignee:
            markn Mark Nelson
            Reporter:
            damyon Damyon Wiese
            Peer reviewer:
            cameron1729
            Integrator:
            Dan Poltawski
            Tester:
            Jun Pataleta
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              23/May/16