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

Error when submitting group submission while not in a group

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.7
    • Fix Version/s: None
    • Component/s: Assignment
    • Labels:
    • Affected Branches:
      MOODLE_27_STABLE

      Description

      Set up an assignment with:

      • File submission
      • Group submission
      • Student submit for all group
      • A group set in group submission settings
      1. Login as a student that is not part of any group
      2. Submit a PDF
      3. The following wild error appears

      Can not find data record in database table groups.
       
      More information about this error
       
      Debug info: SELECT * FROM {groups} WHERE id = ?
      [array (
      0 => '0',
      )]
      Error code: invalidrecord
      Stack trace:
      line 1451 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
      line 1427 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
      line 5329 of /mod/assign/locallib.php: call to moodle_database->get_record()
      line 136 of /mod/assign/classes/event/assessable_submitted.php: call to assign->format_submission_for_log()
      line 700 of /lib/classes/event/base.php: call to mod_assign\event\assessable_submitted->get_legacy_logdata()
      line 5547 of /mod/assign/locallib.php: call to core\event\base->trigger()
      line 5582 of /mod/assign/locallib.php: call to assign->save_submission()
      line 391 of /mod/assign/locallib.php: call to assign->process_save_submission()
      line 53 of /mod/assign/view.php: call to assign->view()
      Output buffer: <div class="notifytiny debuggingmessage" data-rel="debugging">Error calling message processor email<ul style="text-align: left" data-rel="backtrace"><li>line 231 of /lib/messagelib.php: call to debugging()</li><li>line 4583 of /mod/assign/locallib.php: call to message_send()</li><li>line 4612 of /mod/assign/locallib.php: call to assign::send_assignment_notification()</li><li>line 4671 of /mod/assign/locallib.php: call to assign->send_notification()</li><li>line 5545 of /mod/assign/locallib.php: call to assign->notify_student_submission_receipt()</li><li>line 5582 of /mod/assign/locallib.php: call to assign->save_submission()</li><li>line 391 of /mod/assign/locallib.php: call to assign->process_save_submission()</li><li>line 53 of /mod/assign/view.php: call to assign->view()</li></ul></div><div class="notifytiny debuggingmessage" data-rel="debugging">Error calling message processor email<ul style="text-align: left" data-rel="backtrace"><li>line 231 of /lib/messagelib.php: call to debugging()</li><li>line 4583 of /mod/assign/locallib.php: call to message_send()</li><li>line 4612 of /mod/assign/locallib.php: call to assign::send_assignment_notification()</li><li>line 4704 of /mod/assign/locallib.php: call to assign->send_notification()</li><li>line 5546 of /mod/assign/locallib.php: call to assign->notify_graders()</li><li>line 5582 of /mod/assign/locallib.php: call to assign->save_submission()</li><li>line 391 of /mod/assign/locallib.php: call to assign->process_save_submission()</li><li>line 53 of /mod/assign/view.php: call to assign->view()</li></ul></div><div class="notifytiny debuggingmessage" data-rel="debugging">Error calling message processor email<ul style="text-align: left" data-rel="backtrace"><li>line 231 of /lib/messagelib.php: call to debugging()</li><li>line 4583 of /mod/assign/locallib.php: call to message_send()</li><li>line 4612 of /mod/assign/locallib.php: call to assign::send_assignment_notification()</li><li>line 4704 of /mod/assign/locallib.php: call to assign->send_notification()</li><li>line 5546 of /mod/assign/locallib.php: call to assign->notify_graders()</li><li>line 5582 of /mod/assign/locallib.php: call to assign->save_submission()</li><li>line 391 of /mod/assign/locallib.php: call to assign->process_save_submission()</li><li>line 53 of /mod/assign/view.php: call to assign->view()</li></ul></div><div class="notifytiny debuggingmessage" data-rel="debugging">Error calling message processor email<ul style="text-align: left" data-rel="backtrace"><li>line 231 of /lib/messagelib.php: call to debugging()</li><li>line 4583 of /mod/assign/locallib.php: call to message_send()</li><li>line 4612 of /mod/assign/locallib.php: call to assign::send_assignment_notification()</li><li>line 4704 of /mod/assign/locallib.php: call to assign->send_notification()</li><li>line 5546 of /mod/assign/locallib.php: call to assign->notify_graders()</li><li>line 5582 of /mod/assign/locallib.php: call to assign->save_submission()</li><li>line 391 of /mod/assign/locallib.php: call to assign->process_save_submission()</li><li>line 53 of /mod/assign/view.php: call to assign->view()</li></ul></div><div class="notifytiny debuggingmessage" data-rel="debugging">Error calling message processor email<ul style="text-align: left" data-rel="backtrace"><li>line 231 of /lib/messagelib.php: call to debugging()</li><li>line 4583 of /mod/assign/locallib.php: call to message_send()</li><li>line 4612 of /mod/assign/locallib.php: call to assign::send_assignment_notification()</li><li>line 4704 of /mod/assign/locallib.php: call to assign->send_notification()</li><li>line 5546 of /mod/assign/locallib.php: call to assign->notify_graders()</li><li>line 5582 of /mod/assign/locallib.php: call to assign->save_submission()</li><li>line 391 of /mod/assign/locallib.php: call to assign->process_save_submission()</li><li>line 53 of /mod/assign/view.php: call to assign->view()</li></ul></div><div class="notifytiny debuggingmessage" data-rel="debugging">Error calling message processor email<ul style="text-align: left" data-rel="backtrace"><li>line 231 of /lib/messagelib.php: call to debugging()</li><li>line 4583 of /mod/assign/locallib.php: call to message_send()</li><li>line 4612 of /mod/assign/locallib.php: call to assign::send_assignment_notification()</li><li>line 4704 of /mod/assign/locallib.php: call to assign->send_notification()</li><li>line 5546 of /mod/assign/locallib.php: call to assign->notify_graders()</li><li>line 5582 of /mod/assign/locallib.php: call to assign->save_submission()</li><li>line 391 of /mod/assign/locallib.php: call to assign->process_save_submission()</li><li>line 53 of /mod/assign/view.php: call to assign->view()</li></ul></div><div class="notifytiny debuggingmessage" data-rel="debugging">Error calling message processor email<ul style="text-align: left" data-rel="backtrace"><li>line 231 of /lib/messagelib.php: call to debugging()</li><li>line 4583 of /mod/assign/locallib.php: call to message_send()</li><li>line 4612 of /mod/assign/locallib.php: call to assign::send_assignment_notification()</li><li>line 4704 of /mod/assign/locallib.php: call to assign->send_notification()</li><li>line 5546 of /mod/assign/locallib.php: call to assign->notify_graders()</li><li>line 5582 of /mod/assign/locallib.php: call to assign->save_submission()</li><li>line 391 of /mod/assign/locallib.php: call to assign->process_save_submission()</li><li>line 53 of /mod/assign/view.php: call to assign->view()</li></ul></div><div class="notifytiny debuggingmessage" data-rel="debugging">Error calling message processor email<ul style="text-align: left" data-rel="backtrace"><li>line 231 of /lib/messagelib.php: call to debugging()</li><li>line 4583 of /mod/assign/locallib.php: call to message_send()</li><li>line 4612 of /mod/assign/locallib.php: call to assign::send_assignment_notification()</li><li>line 4704 of /mod/assign/locallib.php: call to assign->send_notification()</li><li>line 5546 of /mod/assign/locallib.php: call to assign->notify_graders()</li><li>line 5582 of /mod/assign/locallib.php: call to assign->save_submission()</li><li>line 391 of /mod/assign/locallib.php: call to assign->process_save_submission()</li><li>line 53 of /mod/assign/view.php: call to assign->view()</li></ul></div>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              fred Frédéric Massart
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: