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

Messaging page breaks if a conversation exists from a deleted user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.2.1, 3.3
    • Fix Version/s: 3.2.2
    • Component/s: Messages
    • Labels:

      Description

      User messages shows error window if user had messages from deleted user.
      This started just in 3.2.1 version before was fine.

      Debug info: SELECT id FROM

      {user}

      WHERE id = ? AND deleted = ?
      [array (
      0 => '9186',
      1 => 0,
      )]
      Error code: invaliduser
      Stack trace:
      line 1526 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
      line 1502 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
      line 6188 of /lib/accesslib.php: call to moodle_database->get_record()
      line 282 of /user/lib.php: call to context_user::instance()
      line 203 of /message/classes/helper.php: call to user_get_user_details()
      line 182 of /message/classes/helper.php: call to core_message\helper::show_online_status()
      line 497 of /message/classes/api.php: call to core_message\helper::create_contact()
      line 108 of /message/index.php: call to core_message\api::get_conversations()

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Mar/17