500 TypeError: Cannot call method 'collection' of null
345 views
Skip to first unread message
Muhammad Al-Syrwan
unread,
Aug 9, 2012, 1:35:08 AM8/9/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to microco...@googlegroups.com
another error
Express
500 TypeError: Cannot call method 'collection' of null
at Object.exports.fetchActivities (/home/mhdsyrwan/node_tests/microcommunity/providers/activities-provider.js:98:5)
at /home/mhdsyrwan/node_tests/microcommunity/app.js:109:22
at callbacks (/home/mhdsyrwan/node_tests/microcommunity/node_modules/express/lib/router/index.js:177:11)
at param (/home/mhdsyrwan/node_tests/microcommunity/node_modules/express/lib/router/index.js:151:11)
at pass (/home/mhdsyrwan/node_tests/microcommunity/node_modules/express/lib/router/index.js:158:5)
at Router._dispatch (/home/mhdsyrwan/node_tests/microcommunity/node_modules/express/lib/router/index.js:185:5)
at Object.router (/home/mhdsyrwan/node_tests/microcommunity/node_modules/express/lib/router/index.js:45:10)
at Context.next (/home/mhdsyrwan/node_tests/microcommunity/node_modules/express/node_modules/connect/lib/proto.js:191:15)
at Context.actions.pass (/home/mhdsyrwan/node_tests/microcommunity/node_modules/passport/lib/passport/context/http/actions.js:64:8)
at SessionStrategy.authenticate (/home/mhdsyrwan/node_tests/microcommunity/node_modules/passport/lib/passport/strategies/session.js:51:10)
Amjad
unread,
Aug 9, 2012, 5:12:39 AM8/9/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to microco...@googlegroups.com
I'm not having this problem.
That is happening as I think because you are trying to load the web app in the browser before connecting to the database (which takes 2-3 seconds after running the app.js file).
Muhammad Al-Syrwan
unread,
Aug 9, 2012, 8:40:07 AM8/9/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to microco...@googlegroups.com
it's solved now , so strange ... the server was configured to start automatically when computer starts, but now it's not !!
Walid A.H
unread,
Aug 9, 2012, 10:20:29 AM8/9/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to microco...@googlegroups.com
i have the same problem :(... mhd how did you solve it ?
Muhammad Al-Syrwan
unread,
Aug 9, 2012, 4:34:53 PM8/9/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to microco...@googlegroups.com
sudo mongod
Mr.TAMER
unread,
Aug 9, 2012, 7:43:18 PM8/9/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to microco...@googlegroups.com
@MHDSyrwan What a short and decisive answer :D
--
Mr.TAMER
Muhammad Al-Syrwan
unread,
Aug 9, 2012, 11:01:58 PM8/9/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to microco...@googlegroups.com
Sorry
you can start the mongo server by typing
sudo mongod
if any error occurred try to execute
sudo mkdir /data
sudo mkdir /data/db
sudo mongod
Mr.TAMER
unread,
Aug 9, 2012, 11:04:59 PM8/9/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to microco...@googlegroups.com
@MHDSyrwan What a precise and detailed answer :P
--
Mr.TAMER
Muhammad Al-Syrwan
unread,
Aug 10, 2012, 2:34:00 AM8/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message