HackBerkeley / habitat

Hackers@Berkeley's apps to help people hack better!
2 stars 5 forks source link

Error on hack viewing page (comments) #41

Open viyer opened 11 years ago

viyer commented 11 years ago

Example: http://habitat.hackersatberkeley.com/projects/andii-acn7p91

TypeError: /app/views/hack.ejs:89 87| <% keys.unshift(k); %> 88| <% } %>

89| <% for (var c = keys.length, n=0; n<c; n++) { %> 90| <% if (hack.comments[keys[n]] .poster != undefined) { %> 91|

92|
<%= "POSTER: " + hack.comments[keys[n]].poster %>

Cannot read property 'poster' of null at eval at (/app/node_modules/ejs/lib/ejs.js:234:12) at /app/node_modules/ejs/lib/ejs.js:239:15 at Object.render (/app/node_modules/ejs/lib/ejs.js:277:13) at Object. (/app/node_modules/ejs/lib/ejs.js:303:22) at View.engine (/app/node_modules/ejs-locals/index.js:85:7) at View.render (/app/node_modules/express/lib/view.js:75:8) at Function.render (/app/node_modules/express/lib/application.js:504:10) at ServerResponse.render (/app/node_modules/express/lib/response.js:753:7) at Promise. (/app/server.js:319:8) at Promise. (/app/node_modules/mongoose/lib/promise.js:128:8)

Sumukh commented 11 years ago

I can't get the error on any other page but I do see two icons for that project. (second url) http://habitat.hackersatberkeley.com/projects/andii-acn7p91

Screenshot 2013-03-01 at 17 02

Sumukh commented 11 years ago

Perhaps this is something with just the test database (the one on mongolab.com)