{"action":"created","issue":{"url":"https://api.github.com/repos/humhub/humhub/issues/1584","repository_url":"https://api.github.com/repos/humhub/humhub","labels_url":"https://api.github.com/repos/humhub/humhub/issues/1584/labels{/name}","comments_url":"https://api.github.com/repos/humhub/humhub/issues/1584/comments","events_url":"https://api.github.com/repos/humhub/humhub/issues/1584/events","html_url":"https://github.com/humhub/humhub/issues/1584","id":144390062,"number":1584,"title":"Member directory shows duplicate users","user":{"login":"caspre24","id":6763514,"avatar_url":"https://avatars.githubusercontent.com/u/6763514?v=3","gravatar_id":"","url":"https://api.github.com/users/caspre24","html_url":"https://github.com/caspre24","followers_url":"https://api.github.com/users/caspre24/followers","following_url":"https://api.github.com/users/caspre24/following{/other_user}","gists_url":"https://api.github.com/users/caspre24/gists{/gist_id}","starred_url":"https://api.github.com/users/caspre24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caspre24/subscriptions","organizations_url":"https://api.github.com/users/caspre24/orgs","repos_url":"https://api.github.com/users/caspre24/repos","events_url":"https://api.github.com/users/caspre24/events{/privacy}","received_events_url":"https://api.github.com/users/caspre24/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/humhub/humhub/labels/Status:Need%20investigation","name":"Status:Need investigation","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-29T21:12:45Z","updated_at":"2016-04-04T12:24:42Z","closed_at":"2016-04-04T12:24:42Z","body":"In the member directory listing some users are listed multiple times (ranges from 2 up to 5 or 6 times).\r\nI confirmed that in the database, these users exist only once (user table lists correct users).\r\nI tracked down the problem to\r\nhttps://github.com/humhub/humhub/blob/master/protected/humhub/modules/directory/controllers/DirectoryController.php#L96 where the `$searchResultSet` already contains duplicate entries, but I'm a total Yii noob, so I don't know where to go from here on.\r\n\r\nInterestingly, saving a user \"deduplicates\" him, but not permanently. What I mean is the following:\r\nLets assume we have a user Bob and he is listed multiple times.\r\nEither through Administration->Users->Edit Bob or, if logged in as Bob, through Account Settings, bring up the edit user dialog.\r\nIt's irrelevant if any value is changed, but if I click \"save\"/\"save profile\", Bob is now listed only once in the directory.\r\nI did this with all my users two days ago, but now, there are again 3 users showing up 3 or 4 times. And they haven't even logged in since then.\r\n\r\nMy specs:\r\nDebian 8 Kernel 3.16.0-4-amd64 x86_64\r\nnginx 1.8.1\r\nPHP 5.6.17-0+deb8u1\r\nMySQL  Ver 14.14 Distrib 5.5.47\r\nHumHub 1.0.0"},"comment":{"url":"https://api.github.com/repos/humhub/humhub/issues/comments/205273566","html_url":"https://github.com/humhub/humhub/issues/1584#issuecomment-205273566","issue_url":"https://api.github.com/repos/humhub/humhub/issues/1584","id":205273566,"user":{"login":"caspre24","id":6763514,"avatar_url":"https://avatars.githubusercontent.com/u/6763514?v=3","gravatar_id":"","url":"https://api.github.com/users/caspre24","html_url":"https://github.com/caspre24","followers_url":"https://api.github.com/users/caspre24/followers","following_url":"https://api.github.com/users/caspre24/following{/other_user}","gists_url":"https://api.github.com/users/caspre24/gists{/gist_id}","starred_url":"https://api.github.com/users/caspre24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caspre24/subscriptions","organizations_url":"https://api.github.com/users/caspre24/orgs","repos_url":"https://api.github.com/users/caspre24/repos","events_url":"https://api.github.com/users/caspre24/events{/privacy}","received_events_url":"https://api.github.com/users/caspre24/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T12:24:42Z","updated_at":"2016-04-04T12:24:42Z","body":"It seems the problem solved itself. Even with cron jobs running, no users were duplicated since my last \"deduplication\"."}}