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

Impossible to grade essays when Lesson is Available for group members only

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.2.7, 2.3.4
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      Hide

      Please test this across all supported DBs.

      1. As admin, 'enablegroupmembersonly' setting (site admin > development > experimental > experimental setting)
      2. Create group within the course
      3. Create a Lesson and make it available for group members only and select one Grouping from the Grouping dropdown list.
      4. Include at least one Essay in that lesson.
      5. Students take the Lesson.
      6. Teacher clicks on the Grade essays tab.
      7. Repeat test with a non-group members lesson
      Show
      Please test this across all supported DBs. As admin, 'enablegroupmembersonly' setting (site admin > development > experimental > experimental setting) Create group within the course Create a Lesson and make it available for group members only and select one Grouping from the Grouping dropdown list. Include at least one Essay in that lesson. Students take the Lesson. Teacher clicks on the Grade essays tab. Repeat test with a non-group members lesson
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Replication steps:

      1. Set a Lesson to Available for group members only and select one Grouping from the Grouping dropdown list.
      2. Include at least one Essay in that lesson.
      3. Students take the Lesson.
      4. Teacher clicks on the Grade essays tab.

      Error message is thrown:

      -----------------------------------------------------------------------------------------------
      Notice: Undefined offset: 8 in moodle\mod\lesson\essay.php on line 330
       
      Notice: Undefined offset: 8 in moodle\mod\lesson\essay.php on line 375
      Coding error detected, it must be fixed by a programmer: PHP catchable fatal error
      More information about this error
      Debug info: Argument 1 passed to core_renderer::user_picture() must be an instance of stdClass, null given, called in moodle\mod\lesson\essay.php on line 375 and defined 
      Error code: codingerror
      Stack trace:
      line 397 of \lib\setuplib.php: coding_exception thrown
      line 1884 of \lib\outputrenderers.php: call to default_error_handler()
      line 375 of \mod\lesson\essay.php: call to core_renderer->user_picture()
      ------------------------------------------------------------------------

      and it's impossible to continue

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jan/13