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

1.8 -> 1.9 gradebook upgrade issues

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Gradebook
    • Labels:
      None
    • Environment:
      OS: Windows Vista
      Web environment:
          Apache 2.0.61
          PHP 5.2.5
          MySQL 5.0.45

    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Grades and assignments don't make it to the 1.9 gradebook when upgrading from 1.8. Here is the test case:

      1. Fresh 1.8 install
      2. Create a test course
      3. Create some students and assign them to the course
      4. Create 3 assignments: 1 simple file upload, 1 advanced file upload and 1 online activity
      5. For the first 2 assignments, add some grades to some of the students. Add no grades to the 3rd
      6. Checkout a fresh 1.9 Moodle
      7. Point its config.php file to the 1.8 DB
      8. Access the 1.9 moodle's admin folder to start the upgrade
      9. Complete the DB upgrade
      10. Log in as admin
      11. Finish the upgrade if needed
      12. Leave all default settings as they are
      13. Go the test course's gradebook -> grader report

      I only see 2 assignments out of the 3

      Moreover, if I go to the assignment that is missing from the gradebook, and try to view the grades I had assigned in 1.8, I get the following errors for each student:

                                                                1. START OF DEBUG OUTPUT ##############################
                                                                  ( ! ) Notice: Undefined offset: 0 in D:\VertrigoServ\www\moodle_19\mod\assignment\lib.php on line 1159
                                                                  Call Stack
      1. Time Memory Function Location
        1 0.0186 83304 {main}( ) ..(null):0
        2 1.0114 16266128 assignment_base->submissions( ) ..(null):43
        3 1.0114 16269112 assignment_base->display_submissions( ) ..(null):522

        ( ! ) Notice: Trying to get property of non-object in D:\VertrigoServ\www\moodle_19\mod\assignment\lib.php on line 1159
        Call Stack
        # Time Memory Function Location
        1 0.0186 83304 {main}

        ( ) ..(null):0
        2 1.0114 16266128 assignment_base->submissions( ) ..(null):43
        3 1.0114 16269112 assignment_base->display_submissions( ) ..(null):522

      ( ! ) Notice: Trying to get property of non-object in D:\VertrigoServ\www\moodle_19\mod\assignment\lib.php on line 1222
      Call Stack

      1. Time Memory Function Location
        1 0.0186 83304 {main}( ) ..(null):0
        2 1.0114 16266128 assignment_base->submissions( ) ..(null):43
        3 1.0114 16269112 assignment_base->display_submissions( ) ..(null):522

        ( ! ) Notice: Trying to get property of non-object in D:\VertrigoServ\www\moodle_19\mod\assignment\lib.php on line 1222
        Call Stack
        # Time Memory Function Location
        1 0.0186 83304 {main}

        ( ) ..(null):0
        2 1.0114 16266128 assignment_base->submissions( ) ..(null):43
        3 1.0114 16269112 assignment_base->display_submissions( ) ..(null):522

      ( ! ) Notice: Trying to get property of non-object in D:\VertrigoServ\www\moodle_19\mod\assignment\lib.php on line 1233
      Call Stack

      1. Time Memory Function Location
        1 0.0186 83304 {main}( ) ..(null):0
        2 1.0114 16266128 assignment_base->submissions( ) ..(null):43
        3 1.0114 16269112 assignment_base->display_submissions( ) ..(null):522

        ( ! ) Notice: Trying to get property of non-object in D:\VertrigoServ\www\moodle_19\mod\assignment\lib.php on line 1233
        Call Stack
        # Time Memory Function Location
        1 0.0186 83304 {main}

        ( ) ..(null):0
        2 1.0114 16266128 assignment_base->submissions( ) ..(null):43
        3 1.0114 16269112 assignment_base->display_submissions( ) ..(null):522

      ( ! ) Notice: Trying to get property of non-object in D:\VertrigoServ\www\moodle_19\mod\assignment\lib.php on line 1260
      Call Stack

      1. Time Memory Function Location
        1 0.0186 83304 {main}

        ( ) ..(null):0
        2 1.0114 16266128 assignment_base->submissions( ) ..(null):43
        3 1.0114 16269112 assignment_base->display_submissions( ) ..(null):522

                                                                    1. END OF DEBUG OUTPUT ##############################

      Also, none of the grades I had created in 1.8 are visible on that page.

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            nicolasconnault Nicolas Connault
            Tester:
            Nicolas Connault
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08