what happened in Recent.js ? (Is it possible cause in Database?)
-
NodeBB V1.6.0 (1.4.2 -> 1.4.3 -> 1.4.4 -> 1.4.5 -> 1.4.6 -> 1.5.0 -> 1.5.1 -> 1.5.2 -> 1.5.3 -> 1.6.0 );
Use MongoDB as driver.
When visit/recent
,it reported :5/10 11:46:45 [2313] - error: TypeError: Cannot read property 'toString' of null at /home/nodebb/src/topics/recent.js:87:51 at Array.filter (<anonymous>) at /home/nodebb/src/topics/recent.js:85:30 at nextTask (/home/nodebb/node_modules/async/dist/async.js:5297:14) at next (/home/nodebb/node_modules/async/dist/async.js:5304:9) at /home/nodebb/node_modules/async/dist/async.js:906:16 at /home/nodebb/node_modules/async/dist/async.js:3861:9 at /home/nodebb/node_modules/async/dist/async.js:421:16 at iterateeCallback (/home/nodebb/node_modules/async/dist/async.js:928:24) at /home/nodebb/node_modules/async/dist/async.js:906:16 at /home/nodebb/node_modules/async/dist/async.js:3858:13 at /home/nodebb/src/database/mongo/sorted.js:64:5 at handleCallback (/home/nodebb/node_modules/mongodb/lib/utils.js:120:56) at /home/nodebb/node_modules/mongodb/lib/cursor.js:860:16 at handleCallback (/home/nodebb/node_modules/mongodb-core/lib/cursor.js:171:5) at setCursorNotified (/home/nodebb/node_modules/mongodb-core/lib/cursor.js:515:3) 5/10 11:46:45 [2313] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 5/10 11:46:45 [2313] - info: [app] Database connection closed. 5/10 11:46:45 [2313] - info: [app] Web server closed to connections. 5/10 11:46:45 [2313] - info: [app] Shutdown complete. [cluster] Child Process (2313) has exited (code: 1, signal: null) [cluster] Spinning up another process... 5/10 11:46:45 [2322] - error: TypeError: Cannot read property 'toString' of null at /home/nodebb/src/topics/recent.js:87:51 at Array.filter (<anonymous>) at /home/nodebb/src/topics/recent.js:85:30 at nextTask (/home/nodebb/node_modules/async/dist/async.js:5297:14) at next (/home/nodebb/node_modules/async/dist/async.js:5304:9) at /home/nodebb/node_modules/async/dist/async.js:906:16 at /home/nodebb/node_modules/async/dist/async.js:3861:9 at /home/nodebb/node_modules/async/dist/async.js:421:16 at iterateeCallback (/home/nodebb/node_modules/async/dist/async.js:928:24) at /home/nodebb/node_modules/async/dist/async.js:906:16 at /home/nodebb/node_modules/async/dist/async.js:3858:13 at /home/nodebb/src/database/mongo/sorted.js:64:5 at handleCallback (/home/nodebb/node_modules/mongodb/lib/utils.js:120:56) at /home/nodebb/node_modules/mongodb/lib/cursor.js:860:16 at handleCallback (/home/nodebb/node_modules/mongodb-core/lib/cursor.js:171:5) at setCursorNotified (/home/nodebb/node_modules/mongodb-core/lib/cursor.js:515:3) 5/10 11:46:45 [2322] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 5/10 11:46:45 [2322] - info: [app] Database connection closed. 5/10 11:46:45 [2322] - info: [app] Web server closed to connections. 5/10 11:46:45 [2322] - info: [app] Shutdown complete. [cluster] Child Process (2322) has exited (code: 1, signal: null) [cluster] Spinning up another process...
I have installed Recent Card Plugins,but it crashed(Can't display the card in home page).So,I disabled it.
-
@baris said in what happened in Recent.js ? (Is it possible cause in Database?):
Seems like you have a topic with an invalid cid, should be fixed in master.
I have changed the branch into
master
,and it can run well now. Thanks you very much.
Copyright © 2024 NodeBB | Contributors