{"action":"created","issue":{"url":"https://api.github.com/repos/NodeBB/NodeBB/issues/5974","repository_url":"https://api.github.com/repos/NodeBB/NodeBB","labels_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/5974/labels{/name}","comments_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/5974/comments","events_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/5974/events","html_url":"https://github.com/NodeBB/NodeBB/issues/5974","id":263726622,"number":5974,"title":"NodeBB crash when we we click on 'Chats' icon","user":{"login":"jkandasa","id":1004403,"avatar_url":"https://avatars2.githubusercontent.com/u/1004403?v=4","gravatar_id":"","url":"https://api.github.com/users/jkandasa","html_url":"https://github.com/jkandasa","followers_url":"https://api.github.com/users/jkandasa/followers","following_url":"https://api.github.com/users/jkandasa/following{/other_user}","gists_url":"https://api.github.com/users/jkandasa/gists{/gist_id}","starred_url":"https://api.github.com/users/jkandasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkandasa/subscriptions","organizations_url":"https://api.github.com/users/jkandasa/orgs","repos_url":"https://api.github.com/users/jkandasa/repos","events_url":"https://api.github.com/users/jkandasa/events{/privacy}","received_events_url":"https://api.github.com/users/jkandasa/received_events","type":"User","site_admin":false},"labels":[{"id":36902445,"url":"https://api.github.com/repos/NodeBB/NodeBB/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"barisusakli","id":2583394,"avatar_url":"https://avatars0.githubusercontent.com/u/2583394?v=4","gravatar_id":"","url":"https://api.github.com/users/barisusakli","html_url":"https://github.com/barisusakli","followers_url":"https://api.github.com/users/barisusakli/followers","following_url":"https://api.github.com/users/barisusakli/following{/other_user}","gists_url":"https://api.github.com/users/barisusakli/gists{/gist_id}","starred_url":"https://api.github.com/users/barisusakli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barisusakli/subscriptions","organizations_url":"https://api.github.com/users/barisusakli/orgs","repos_url":"https://api.github.com/users/barisusakli/repos","events_url":"https://api.github.com/users/barisusakli/events{/privacy}","received_events_url":"https://api.github.com/users/barisusakli/received_events","type":"User","site_admin":false},"assignees":[{"login":"barisusakli","id":2583394,"avatar_url":"https://avatars0.githubusercontent.com/u/2583394?v=4","gravatar_id":"","url":"https://api.github.com/users/barisusakli","html_url":"https://github.com/barisusakli","followers_url":"https://api.github.com/users/barisusakli/followers","following_url":"https://api.github.com/users/barisusakli/following{/other_user}","gists_url":"https://api.github.com/users/barisusakli/gists{/gist_id}","starred_url":"https://api.github.com/users/barisusakli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barisusakli/subscriptions","organizations_url":"https://api.github.com/users/barisusakli/orgs","repos_url":"https://api.github.com/users/barisusakli/repos","events_url":"https://api.github.com/users/barisusakli/events{/privacy}","received_events_url":"https://api.github.com/users/barisusakli/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/NodeBB/NodeBB/milestones/63","html_url":"https://github.com/NodeBB/NodeBB/milestone/63","labels_url":"https://api.github.com/repos/NodeBB/NodeBB/milestones/63/labels","id":2831367,"number":63,"title":"1.6.2","description":"","creator":{"login":"julianlam","id":923011,"avatar_url":"https://avatars1.githubusercontent.com/u/923011?v=4","gravatar_id":"","url":"https://api.github.com/users/julianlam","html_url":"https://github.com/julianlam","followers_url":"https://api.github.com/users/julianlam/followers","following_url":"https://api.github.com/users/julianlam/following{/other_user}","gists_url":"https://api.github.com/users/julianlam/gists{/gist_id}","starred_url":"https://api.github.com/users/julianlam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianlam/subscriptions","organizations_url":"https://api.github.com/users/julianlam/orgs","repos_url":"https://api.github.com/users/julianlam/repos","events_url":"https://api.github.com/users/julianlam/events{/privacy}","received_events_url":"https://api.github.com/users/julianlam/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":5,"state":"open","created_at":"2017-10-11T19:34:53Z","updated_at":"2017-10-13T13:37:06Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2017-10-08T15:37:54Z","updated_at":"2017-10-13T16:06:47Z","closed_at":"2017-10-12T21:05:30Z","author_association":"NONE","body":"- **NodeBB version:** v1.6.0\r\n- **NodeBB git hash:** 02370b30d934006fe1db8575cccf6a42ac71431e\r\n- **Database type:** mongo\r\n- **Database version:** online database mlab.com\r\n- **Exact steps to cause this issue:**\r\n1. Upgraded from version v0.9.x\r\n2. When I click on `Chats` icon application throws following error.\r\n![image](https://user-images.githubusercontent.com/1004403/31318167-6f174772-ac6b-11e7-9436-686e3b4e4d77.png)\r\n```\r\n8/10 12:23:10 [16860] - error:  TypeError: Cannot set property 'users' of undefined\r\n    at /opt/applications/nodebb/src/messaging.js:156:16\r\n    at Array.forEach (native)\r\n    at async.waterfall.plugins.fireHook.rooms (/opt/applications/nodebb/src/messaging.js:155:21)\r\n    at nextTask (/opt/applications/nodebb/node_modules/async/dist/async.js:5297:14)\r\n    at next (/opt/applications/nodebb/node_modules/async/dist/async.js:5304:9)\r\n    at /opt/applications/nodebb/node_modules/async/dist/async.js:906:16\r\n    at /opt/applications/nodebb/node_modules/async/dist/async.js:3861:9\r\n    at /opt/applications/nodebb/node_modules/async/dist/async.js:421:16\r\n    at iterateeCallback (/opt/applications/nodebb/node_modules/async/dist/async.js:928:24)\r\n    at /opt/applications/nodebb/node_modules/async/dist/async.js:906:16\r\n    at /opt/applications/nodebb/node_modules/async/dist/async.js:3858:13\r\n    at /opt/applications/nodebb/node_modules/async/dist/async.js:1074:9\r\n    at /opt/applications/nodebb/node_modules/async/dist/async.js:421:16\r\n    at iteratorCallback (/opt/applications/nodebb/node_modules/async/dist/async.js:998:13)\r\n    at /opt/applications/nodebb/node_modules/async/dist/async.js:906:16\r\n    at /opt/applications/nodebb/node_modules/async/dist/async.js:1071:13\r\n8/10 12:23:10 [16860] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.\r\n8/10 12:23:10 [16860] - info: [app] Database connection closed.\r\n8/10 12:23:10 [16860] - info: [app] Web server closed to connections.\r\n8/10 12:23:10 [16860] - info: [app] Shutdown complete.\r\n[cluster] Child Process (16860) has exited (code: 1, signal: null)\r\n[cluster] Spinning up another process...\r\n8/10 12:23:11 [16889] - info: Initializing NodeBB v1.6.0 https://forum.mycontroller.org\r\n8/10 12:23:13 [16889] - info: [socket.io] Restricting access to origin: https://forum.mycontroller.org:*\r\n8/10 12:23:14 [16889] - info: Routes added\r\n8/10 12:23:14 [16889] - info: NodeBB Ready\r\n8/10 12:23:14 [16889] - info: Enabling 'trust proxy'\r\n8/10 12:23:14 [16889] - info: NodeBB is now listening on: 0.0.0.0:4567\r\n```\r\n\r\n- **What you expected:**\r\nShould list previous chat history\r\n- **What happened instead:**\r\nThrows exception and application restarted.\r\n\r\nI did console.log** and I have the data on this step. If you need I can post that data too."},"comment":{"url":"https://api.github.com/repos/NodeBB/NodeBB/issues/comments/336496357","html_url":"https://github.com/NodeBB/NodeBB/issues/5974#issuecomment-336496357","issue_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/5974","id":336496357,"user":{"login":"jkandasa","id":1004403,"avatar_url":"https://avatars2.githubusercontent.com/u/1004403?v=4","gravatar_id":"","url":"https://api.github.com/users/jkandasa","html_url":"https://github.com/jkandasa","followers_url":"https://api.github.com/users/jkandasa/followers","following_url":"https://api.github.com/users/jkandasa/following{/other_user}","gists_url":"https://api.github.com/users/jkandasa/gists{/gist_id}","starred_url":"https://api.github.com/users/jkandasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkandasa/subscriptions","organizations_url":"https://api.github.com/users/jkandasa/orgs","repos_url":"https://api.github.com/users/jkandasa/repos","events_url":"https://api.github.com/users/jkandasa/events{/privacy}","received_events_url":"https://api.github.com/users/jkandasa/received_events","type":"User","site_admin":false},"created_at":"2017-10-13T16:06:47Z","updated_at":"2017-10-13T16:06:47Z","author_association":"NONE","body":"@barisusakli thank you!\r\n@pitaj Please guide me to run this upgrade script. I do not have much knowledge on javascript."}}
{"actor":{"display_login":"jkandasa"}}