2.0.1+ to 2.1 Upgrade > Quiz Submission > Database Transaction Error

2.0.1+ to 2.1 Upgrade > Quiz Submission > Database Transaction Error

by Manish Verma -
Number of replies: 3

Hi,

After the upgrade from 2.0.1+ to 2.1, when a quiz is submitted by student account, then following error is displayed:

Database transaction error

More information about this error

No such message comes when admin submits the quiz and the quiz is graded the usual way. The upgrade itself did not get stuck and looked smooth generally, though there were some messages pointing towards coding error detection noticed.

Manish.

Average of ratings: -
In reply to Manish Verma

Re: 2.0.1+ to 2.1 Upgrade > Quiz Submission > Database Transaction Error

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Please turn Debugging up to DEVELOPER level, then copy-and-paste the full error message here.

In reply to Tim Hunt

Re: 2.0.1+ to 2.1 Upgrade > Quiz Submission > Database Transaction Error

by Manish Verma -

Here is the message:

Database transaction error

More information about this error

Debug info: This code can not be excecuted in transaction
Stack trace:
  • line 2034 of /lib/dml/moodle_database.php: dml_transaction_exception thrown
  • line 59 of /lib/messagelib.php: call to moodle_database->transactions_forbidden()
  • line 1174 of /mod/quiz/locallib.php: call to message_send()
  • line 1270 of /mod/quiz/locallib.php: call to quiz_send_notification()
  • line 1003 of /mod/quiz/attemptlib.php: call to quiz_send_notification_emails()
  • line 1096 of /mod/quiz/attemptlib.php: call to quiz_attempt->quiz_send_notification_emails()
  • line 113 of /mod/quiz/processattempt.php: call to quiz_attempt->finish_attempt()
In reply to Manish Verma

Re: 2.0.1+ to 2.1 Upgrade > Quiz Submission > Database Transaction Error

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Drat! I can't believe no-one tested that: MDL-28166