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

Can not bulk delete users

    XMLWordPrintable

    Details

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

      Description

      As Admin

      Go to Bulk User Commands

      Select users based on email domain

      Select All to Bulk Delete

      Error message appears (Have done this twice with different lots of users)

      Debug info: SELECT id FROM

      {user} WHERE id = ? AND deleted = ?
      [array (
      0 => '53',
      1 => 0,
      )]
      Error code: invaliduser
      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 6404 of \lib\accesslib.php: call to moodle_database->get_record()
      line 2382 of \message\lib.php: call to context_user::instance()
      line 2328 of \message\lib.php: call to message_mark_message_read()
      line 4224 of \lib\moodlelib.php: call to message_move_userfrom_unread2read()
      line 30 of \admin\user\user_bulk_delete.php: call to delete_user()

      Debug info: SELECT id FROM {user}

      WHERE id = ? AND deleted = ?
      [array (
      0 => '80',
      1 => 0,
      )]
      Error code: invaliduser
      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 6404 of \lib\accesslib.php: call to moodle_database->get_record()
      line 2382 of \message\lib.php: call to context_user::instance()
      line 2328 of \message\lib.php: call to message_mark_message_read()
      line 4224 of \lib\moodlelib.php: call to message_move_userfrom_unread2read()
      line 30 of \admin\user\user_bulk_delete.php: call to delete_user()

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jgcracknell James Cracknell
                Participants:
                Component watchers:
                Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: