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

Fixed User ignore limimit (Server-Error XenGallery/Model/Media.php)

Discussion in 'Resolved Bug Reports' started by Bugfix, Aug 17, 2016.

  1. Bugfix

    Bugfix Member

    Hello,

    we have this problem:
    Code:
    array_key_exists() expects parameter 2 to be array, boolean given - library/XenGallery/Model/Media.php:1068
    The reason for this is a user with about 2500 ignores in his ignore list.
    The field "ignored" in table "xf_user_profile" cannot hold the whole data and strips it - so the content isn't a correct serialized array anymore and cannot be unserialized.
    Can I simply edit the datatype of the column from "text" to "longtext" or is there another (better) solution?

    Best regards,
    bugfix
     
    semprot likes this.
  2. Mike

    Mike XenForo Developer Staff Member

    Don't ignore 2500 people? :)

    I actually thought that we had an ignore limit in place as this has come up once before (related to an import). The general fix here is probably going to be more along the lines of limiting how many people you can ignore (like we limit how many you can follow). I can't imagine that ignoring 2500 people is particularly beneficial to this person...

    This may manifest itself within the gallery, but it's probably more likely to be something that we'll fix in the core, so I'm moving this to the main bugs forum.
     
    Amaury likes this.
  3. The Sandman

    The Sandman Well-Known Member

    Out of curiosity, did this member intentionally ignore 2500 people one by one or is this in itself the result of some other action?
     
  4. Bugfix

    Bugfix Member

    Thank you for the info. I really do not know why or how this user did this - just wanted to tell you, because even if it's not reasonable - it's still a bug :p
    Limiting this feature is of course the best solution!
     
  5. Bugfix

    Bugfix Member

    Sorry - I can't answer it. I do not know a way of doing this without adding it one by one - so I assume this was the way.
     
  6. Xon

    Xon Well-Known Member

    That's impressive, I'm surprised that wasn't causing issues well before that stage.

    I was having detectable issues with a number of users with +500 ignored users. I ended up writing (and releasing for free) User Ignore Limit add-on after I cleared that user's ignore cache and list.
     
    semprot likes this.
  7. Mike

    Mike XenForo Developer Staff Member

    I've now added a 1000 person ignore limit, similar to following. Realistically, it could probably go lower, though this is initially to limit server errors.
     
    Bugfix, semprot and Xon like this.

Share This Page