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

Quiz tries to send email messages while still in the process_attempt transaction -> exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.1.1
    • 2.1, 2.2
    • Quiz
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_21_STABLE
    • Hide

      If you need to keep your quizzes open, turn off notification emails temporarily.

      Show
      If you need to keep your quizzes open, turn off notification emails temporarily.
    • Hide

      1. Create a quiz in a course with students and teachers.
      2. Override the permission so that some combination of confirmation emails for students and notification emails for teachers is enabled.
      3. Complete the quiz as a student. Ensure there are no errors.
      4. Wait for cron to run.
      5. Verify that the expected messages have been sent.

      Show
      1. Create a quiz in a course with students and teachers. 2. Override the permission so that some combination of confirmation emails for students and notification emails for teachers is enabled. 3. Complete the quiz as a student. Ensure there are no errors. 4. Wait for cron to run. 5. Verify that the expected messages have been sent.

      The messaging system does not allow sending message in a transaction. The code needs to be reordered.

            timhunt Tim Hunt
            timhunt Tim Hunt
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Sam Hemelryk Sam Hemelryk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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