1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed xf_user_profile.ignored inconsistency

Discussion in 'Resolved Bug Reports' started by Jake Bunce, Jun 8, 2013.

  1. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Confirmed in 1.1.5

    To reproduce, ignore a user and check your profile record. The ignored field will contain just the user_id and username of the ignored user. Now rebuild the user cache in the Admin CP. The ignored field will now contain the entire user record of the ignored user.

    This is creating the following error when I rebuild the user cache and it processes a user with lots of ignored users:

     
  2. Mike

    Mike XenForo Developer Staff Member

    I've fixed this for 1.2 and any potential 1.1.6.
     
  3. Mike

    Mike XenForo Developer Staff Member

    For reference, it involves changing this line in library/XenForo/DataWriter/User.php:
    Code:
    $users = $this->_getUserIgnoreModel()->getIgnoredUsers($this->get('user_id'));
    to:
    Code:
    $users = $this->_getUserIgnoreModel()->getUserIgnoreCache($this->get('user_id'));
    The only effect I'm aware of is creating a template warning in debug mode only.
     

Share This Page