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

Deleted user still appears in other user's contact list

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.8.8, 2.9.2
    • 2.5, 2.9
    • Messages
    • MOODLE_25_STABLE, MOODLE_29_STABLE
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • MDL-42626-master
    • Hide
      1. Create 4 users (u1, u2, u3, u4)
      2. Log-in as u1, add as contact to u2, as add blocked user to u3
      3. Log-in as u4, send a private message to u1
      4. Log-in as u1, check that you see in your contact list the user u2, in your blocked list u3 and in recent messages the message send by u4
      5. As admin, delete users: u2, u3 and u4
      6. Log-in again as u1, check that you don't see anymore users u2, u3 and u4
      Show
      Create 4 users (u1, u2, u3, u4) Log-in as u1, add as contact to u2, as add blocked user to u3 Log-in as u4, send a private message to u1 Log-in as u1, check that you see in your contact list the user u2, in your blocked list u3 and in recent messages the message send by u4 As admin, delete users: u2, u3 and u4 Log-in again as u1, check that you don't see anymore users u2, u3 and u4

      It appears that deleted users still appear in other user's contact list. Start with two user. User A adds user B as a contact. Delete user B.

      When user A visits the message page user B is in their contacts and click on them gives the following:

      Invalid user
      Debug info: SELECT id FROM

      {user}

      WHERE id = ? AND deleted = ?
      [array (
      0 => '3',
      1 => 0,
      )]
      Error code: invaliduser
      Stack trace:

      line 1390 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
      line 1366 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
      line 6358 of /lib/accesslib.php: call to moodle_database->get_record()
      line 2110 of /lib/navigationlib.php: call to context_user::instance()
      line 1269 of /lib/navigationlib.php: call to global_navigation->load_for_user()
      line 3003 of /lib/navigationlib.php: call to global_navigation->initialise()
      line 791 of /lib/pagelib.php: call to navbar->has_items()
      line 4 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
      line 866 of /lib/outputrenderers.php: call to include()
      line 796 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line 215 of /message/index.php: call to core_renderer->header()

            jleyva Juan Leyva
            andyjdavis Andrew Davis
            Simey Lameze Simey Lameze
            Andrew Lyons Andrew Lyons
            Jetha Chan Jetha Chan
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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