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

Teachers may experience a 'Call to undefined method' exception in Assignment

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.4.9
    • Assignment
    • MOODLE_404_STABLE
    • MDL-85474_405
    • MDL-85474_500
    • Hide
      1. Add an Assignment activity with 'Require students to click the submit button' set to Yes.
      2. Edit the submission for a student, add a file. The submission should now have a Draft status.
      3. In the grading table, from the Status action menu for the draft submission, open in a new tab with the 'Prevent submission changes' option.
      4. Still on the grading table tab as in step 3, from the same submission's Status action menu, choose the 'Submit for grading' option.
      5. Observe a notice is shown reading "Submissions closed" and the presence of a Continue button.
      Show
      Add an Assignment activity with 'Require students to click the submit button' set to Yes. Edit the submission for a student, add a file. The submission should now have a Draft status. In the grading table, from the Status action menu for the draft submission, open in a new tab with the 'Prevent submission changes' option. Still on the grading table tab as in step 3, from the same submission's Status action menu, choose the 'Submit for grading' option. Observe a notice is shown reading "Submissions closed" and the presence of a Continue button.
    • Hide

      Code verified against automated checks.

      Checked MDL-85474 using repository: https://github.com/jonof/moodle.git

      More information about this report

      Built on: Thu May 15 03:48:28 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-85474 using repository: https://github.com/jonof/moodle.git MOODLE_405_STABLE (0 errors / 0 warnings) [branch: MDL-85474_405 | CI Job ] MOODLE_500_STABLE (0 errors / 0 warnings) [branch: MDL-85474_500 | CI Job ] main (0 errors / 0 warnings) [branch: MDL-85474 | CI Job ] More information about this report Built on: Thu May 15 03:48:28 UTC 2025

      In rather uncommon situations, a teacher submitting an Assignment for a student may experience a "Call to undefined method assign::view_error_page()" exception. Additionally, notices produced within calls to assign::process_submit_other_for_grading(), assign::process_submit_for_grading(), and assign::submit_for_grading() are not propagated up for display to the user because $notices parameters to those functions are not defined as call-by-reference.

      To reproduce:

      1. Add an Assignment activity with 'Require students to click the submit button' set to Yes.
      2. Edit the submission for a student, add a file. The submission should now have a Draft status.
      3. In the grading table, from the Status action menu for the draft submission, open in a new tab with the 'Prevent submission changes' option.
      4. Still on the grading table tab as in step 3, from the same submission's Status action menu, choose the 'Submit for grading' option.
      5. Observe the exception: Exception - Call to undefined method assign::view_error_page()

            jonof Jonathon Fowler
            jonof Jonathon Fowler
            Jayce Birrell Jayce Birrell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 16 minutes
                3h 16m

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