{"action":"created","issue":{"url":"https://api.github.com/repos/pencilblue/pencilblue/issues/894","labels_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/894/labels{/name}","comments_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/894/comments","events_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/894/events","html_url":"https://github.com/pencilblue/pencilblue/issues/894","id":121138619,"number":894,"title":"TypeError: Cannot read property 'username' of undefined","user":{"login":"CodeTahoe","id":16159852,"avatar_url":"https://avatars.githubusercontent.com/u/16159852?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeTahoe","html_url":"https://github.com/CodeTahoe","followers_url":"https://api.github.com/users/CodeTahoe/followers","following_url":"https://api.github.com/users/CodeTahoe/following{/other_user}","gists_url":"https://api.github.com/users/CodeTahoe/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeTahoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeTahoe/subscriptions","organizations_url":"https://api.github.com/users/CodeTahoe/orgs","repos_url":"https://api.github.com/users/CodeTahoe/repos","events_url":"https://api.github.com/users/CodeTahoe/events{/privacy}","received_events_url":"https://api.github.com/users/CodeTahoe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-09T01:13:57Z","updated_at":"2015-12-09T01:31:23Z","closed_at":null,"body":"I can no longer go to `****.com/admin/content/pages`\r\n\r\nThe error I get is `TypeError: Cannot read property 'username' of undefined`\r\n\r\nStack Trace below:\r\n```\r\n2015-12-09T01:07:40.162Z - error: [1] RequestHandler: An error occurred during controller execution. URL=[GET:/admin/content/pages] ROUTE={\"path\":\"admin/content/pages\",\"pattern\":\"^/admin/content/pages[/]{0,1}$\",\"path_vars\":{},\"expression\":{},\"themes\":{\"pencilblue\":{\"GET\":{\"method\":\"GET\",\"path\":\"/admin/content/pages\",\"access_level\":2,\"auth_required\":true,\"content_type\":\"text/html\"}}}}\r\nTypeError: Cannot read property 'username' of undefined\r\n    at UserService.getFormattedName (../pencil_blue/include/service/entities/user_service.js:97:24)\r\n    at ../pencil_blue/include/service/entities/user_service.js:140:47\r\n    at ../pencil_blue/include/dao/dao.js:271:17\r\n    at handleCallback (../pencil_blue/node_modules/mongodb/lib/utils.js:95:12)\r\n    at ../pencil_blue/node_modules/mongodb/lib/cursor.js:590:16\r\n    at handleCallback (../pencil_blue/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:234:5)\r\n    at setCursorDeadAndNotified (../pencil_blue/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:424:3)\r\n    at nextFunction (../pencil_blue/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:586:7)\r\n    at Cursor.next (../pencil_blue/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:614:3)\r\n    at fetchDocs (../pencil_blue/node_modules/mongodb/lib/cursor.js:586:10)\r\n```\r\nIn the above I removed the full file path as that's based on the system, and doesn't really matter"},"comment":{"url":"https://api.github.com/repos/pencilblue/pencilblue/issues/comments/163077941","html_url":"https://github.com/pencilblue/pencilblue/issues/894#issuecomment-163077941","issue_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/894","id":163077941,"user":{"login":"CodeTahoe","id":16159852,"avatar_url":"https://avatars.githubusercontent.com/u/16159852?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeTahoe","html_url":"https://github.com/CodeTahoe","followers_url":"https://api.github.com/users/CodeTahoe/followers","following_url":"https://api.github.com/users/CodeTahoe/following{/other_user}","gists_url":"https://api.github.com/users/CodeTahoe/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeTahoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeTahoe/subscriptions","organizations_url":"https://api.github.com/users/CodeTahoe/orgs","repos_url":"https://api.github.com/users/CodeTahoe/repos","events_url":"https://api.github.com/users/CodeTahoe/events{/privacy}","received_events_url":"https://api.github.com/users/CodeTahoe/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T01:31:23Z","updated_at":"2015-12-09T01:31:23Z","body":"Yep, that's what it was, I pulled my hack out after fixing the bad data, and it works... There should be a reset to default of 'none' or the uid: of 1 (the initial user / admin )"}}