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

Failure on assignment resubmission

    XMLWordPrintable

Details

    • MOODLE_34_STABLE, MOODLE_35_STABLE
    • MOODLE_34_STABLE, MOODLE_35_STABLE
    • master_MDL-63800
    • Hide
      1. In a course with enrolled students, create an assignment with the following settings:
        • Submission types: Online text
        • Feedback types: Feedback comments and Annotate PDF
        • Comment inline: Yes
        • Attempts reopened: Manually
      2. As a student, go to the assignment and some text as a submission.
      3. As a teacher go to the "View all submissions" page and choose "Allow another attempt" for this student.
      4. Run cron.

        php admin/cli/cron.php

      5. As a student, go to the assignment and choose "Add a new attempt".
      6. Confirm that the page loads okay.
      7. Verify you don't see an exception: "Exception - Argument 1 passed to core_renderer::user_picture() must be an instance of stdClass, string given, called in [dirroot]/mod/assign/renderer.php".
      Show
      In a course with enrolled students, create an assignment with the following settings: Submission types: Online text Feedback types: Feedback comments and Annotate PDF Comment inline: Yes Attempts reopened: Manually As a student, go to the assignment and some text as a submission. As a teacher go to the "View all submissions" page and choose "Allow another attempt" for this student. Run cron. php admin/cli/cron.php As a student, go to the assignment and choose "Add a new attempt". Confirm that the page loads okay. Verify you don't see an exception: "Exception - Argument 1 passed to core_renderer::user_picture() must be an instance of stdClass, string given, called in [dirroot] /mod/assign/renderer.php".

    Description

      One of our student reported that when he tries to resubmit assignment (as a new attempt) "Exception - Argument 1 passed to core_renderer::user_picture() must be an instance of stdClass, string given, called in [dirroor]/mod/assign/renderer.php on line 1106" is returned.

      Both student and grader don't have user pictures.

      I was unable to reproduce this issue by myself.

      Moodle 3.5.2 Build 20181023
      PHP Version 7.0.22-0ubuntu0.16.04.1

      Attachments

        Activity

          People

            danmarsden Dan Marsden
            ipostanogov ipostanogov
            Damyon Wiese Damyon Wiese
            Jun Pataleta Jun Pataleta
            Anna Carissa Sadia Anna Carissa Sadia
            Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              12/Nov/18

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h