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

Trying to import grades into course with no gradable items produces exceptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.0.6
    • 3.11.7
    • Gradebook
    • MOODLE_311_STABLE
    • MOODLE_400_STABLE
    • Hide

      Test in empty course

      1. Log in as admin
      2. Create a new course
      3. Navigate to Grades
      4. Select Import > CSV file
      5. Upload C1 Grades-20220517_1352-comma_separated.csv
      6. Press Upload grades
      7. Confirm no exceptions are shown
      8. Set the following under Identify user by
        • Map from: ID number
        • Map to: ID number
      9. Press Upload grades
      10. Confirm no exceptions are shown
      11. Confirm you see the error User mapping error (this is expected)

      Test in populated course (regression test)

      1. Create a new user
        • ID number: msmith101
      2. Enrol them in the course as a student
      3. Create a new assignment activity in the course
      4. Navigate to Grades
      5. Select Import > CSV file
      6. Upload C1 Grades-20220517_1352-comma_separated.csv
      7. Press Upload grades
      8. Set the following under Identify user by
        • Map from: ID number
        • Map to: ID number
      9. Set the following under Grade item mappings
        • Assignment: ASD (Real): Assignment: <YOUR ASSIGNMENT>
      10. Press Upload grades
      11. Confirm grade import success message
      12. Navigate to Grades
      13. Confirm imported grades are present for user
      Show
      Test in empty course Log in as admin Create a new course Navigate to Grades Select Import > CSV file Upload C1 Grades-20220517_1352-comma_separated.csv Press Upload grades Confirm no exceptions are shown Set the following under Identify user by Map from: ID number Map to: ID number Press Upload grades Confirm no exceptions are shown Confirm you see the error User mapping error (this is expected) Test in populated course (regression test) Create a new user ID number: msmith101 Enrol them in the course as a student Create a new assignment activity in the course Navigate to Grades Select Import > CSV file Upload C1 Grades-20220517_1352-comma_separated.csv Press Upload grades Set the following under Identify user by Map from: ID number Map to: ID number Set the following under Grade item mappings Assignment: ASD (Real): Assignment: <YOUR ASSIGNMENT> Press Upload grades Confirm grade import success message Navigate to Grades Confirm imported grades are present for user

      If on a new course, or one without activities, you try to import grades then you get the following exceptions from the forms library:

      Argument 1 of HTML_Select::loadArray is not a valid array
      Backtrace :
       
      Array
      (
          [0] => Array
              (
                  [file] => /var/www/html/lib/pear/PEAR.php
                  [line] => 545
                  [function] => __construct
                  [class] => PEAR_Error
                  [type] => ->
                  [args] => Array
                      (
                          [0] => Argument 1 of HTML_Select::loadArray is not a valid array
                          [1] => 
                          [2] => 16
                          [3] => pear_handle_error
                          [4] => 
                      )
       
              )
      

      Jira won't let me add the 57K line backtrace - attached here: MDL-74780 Error.txt

        1. C1 Grades-20220517_1352-comma_separated.csv
          0.2 kB
        2. MDL-74780_master_empty_1.png
          MDL-74780_master_empty_1.png
          92 kB
        3. MDL-74780_master_empty_2.png
          MDL-74780_master_empty_2.png
          50 kB
        4. MDL-74780_master_populated_1.png
          MDL-74780_master_populated_1.png
          46 kB
        5. MDL-74780_master_populated_2.png
          MDL-74780_master_populated_2.png
          79 kB
        6. MDL-74780_v400_empty_1.png
          MDL-74780_v400_empty_1.png
          94 kB
        7. MDL-74780_v400_empty_2.png
          MDL-74780_v400_empty_2.png
          48 kB
        8. MDL-74780_v400_populated_1.png
          MDL-74780_v400_populated_1.png
          44 kB
        9. MDL-74780_v400_populated_2.png
          MDL-74780_v400_populated_2.png
          78 kB
        10. MDL-74780 Error.png
          MDL-74780 Error.png
          46 kB
        11. MDL-74780 Error.txt
          2.71 MB

            pholden Paul Holden
            pholden Paul Holden
            Carlos Escobedo Carlos Escobedo
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 50 minutes
                1h 50m

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