Last pull from master - new topics are null
-
@Ali said:
Having same issue as well.
MongoDB version: 3.0.2Oh that's not good. I thought MongoDB 3 was going to be the fix.
-
I tried updating the plugins and....
Error: Failed to lookup view "500" in views directory "/opt/kae/public/templates"
at EventEmitter.app.render (/opt/kae/node_modules/express/lib/application.js:555:17)
at ServerResponse.res.render (/opt/kae/node_modules/express/lib/response.js:938:7)
at ServerResponse.res.render (/opt/kae/src/middleware/middleware.js:324:10)
at /opt/kae/src/routes/index.js:227:9
at /opt/kae/src/middleware/middleware.js:181:12
at /opt/kae/node_modules/async/lib/async.js:589:17
at done (/opt/kae/node_modules/async/lib/async.js:126:15)
at /opt/kae/node_modules/async/lib/async.js:32:16
at /opt/kae/node_modules/async/lib/async.js:586:21
at EventEmitter.app.render (/opt/kae/node_modules/express/lib/application.js:557:14) -
I just did a full, fresh install of NodeBB and was able to fix things that way. Not sure what was wrong, but that addressed both issues.
-
Broken version:
/opt/kae# npm ls mongodb
nodebb@0.7.0 /opt/kae
├─┬ connect-mongo@0.4.1 extraneous
│ └── mongodb@1.3.23
└── mongodb@1.4.8 extraneousnpm ERR! extraneous: connect-mongo@0.4.1 /opt/kae/node_modules/connect-mongo
npm ERR! extraneous: mongodb@1.4.8 /opt/kae/node_modules/mongodb
npm ERR! not ok code 0 -
/opt/kae# npm ls connect-mongo
nodebb@0.7.0 /opt/kae
└── connect-mongo@0.4.1 extraneousnpm ERR! extraneous: connect-mongo@0.4.1 /opt/kae/node_modules/connect-mongo
npm ERR! not ok code 0 -
@baris said:
Yeah nodebb 0.7.0 expects the mongodb dependency to be 2.0.0+ So if you do
npm ls mongodb
in the fresh install it will report it as 2.0.x.Thanks. Good to know.
-
Now that that is fixed, how to delete the dead thread?
http://community.kiddingaroundeurope.com/topic/null/testing-new-posts
-
You will have to remove it from the database manually.
db.objects.remove({_key: "topic:null"}); //remove object db.objects.remove({_key: "topics:recent", value: null}); //remove from recent db.objects.remove({_key: "cid:1:tids", value: null}); //remove from category db.objects.remove({_key: "uid:3:topics", value: null}); //remove from user
I picked the category id and user id from the api return at http://community.kiddingaroundeurope.com/api/recent
-
@baris Thanks! Looking good now.