TypeError: Cannot read property 'loggedIn' of undefined



  • Getting Cannot read property 'loggedIn' of undefined error in console.

    I can't point out in which route page this error happens.

    Can anyone give me some hints?

    nodebb (err): TypeError: Cannot read property 'loggedIn' of undefined
    nodebb (err):     at helpers.displayMenuItem (/site/www/public/src/modules/helpers.js:20:44)
    nodebb (err):     at checkConditionalHelpers (/site/www/node_modules/templates.js/lib/templates.js:269:76)
    nodebb (err):     at parse (/site/www/node_modules/templates.js/lib/templates.js:424:15)
    nodebb (err):     at parseTemplate (/site/www/node_modules/templates.js/lib/templates.js:133:14)
    nodebb (err):     at Object.templates.parse (/site/www/node_modules/templates.js/lib/templates.js:119:11)
    nodebb (err):     at View.express [as engine] (/site/www/node_modules/templates.js/lib/templates.js:172:30)
    nodebb (err):     at View.render (/site/www/node_modules/express/lib/view.js:126:8)
    nodebb (err):     at tryRender (/site/www/node_modules/express/lib/application.js:639:10)
    nodebb (err):     at EventEmitter.render (/site/www/node_modules/express/lib/application.js:591:3)
    nodebb (err):     at /site/www/src/middleware/header.js:159:13
    nodebb (err):     at fireFilterHook (/site/www/src/plugins/hooks.js:103:11)
    nodebb (err):     at Object.Plugins.fireHook (/site/www/src/plugins/hooks.js:87:5)
    nodebb (err):     at /site/www/src/middleware/header.js:154:12
    nodebb (err):     at /site/www/node_modules/async/lib/async.js:726:13
    nodebb (err):     at /site/www/node_modules/async/lib/async.js:52:16
    nodebb (err):     at done (/site/www/node_modules/async/lib/async.js:246:17)
    

  • Admin

    What git hash and theme? Looks like the same issue here https://community.nodebb.org/post/56422


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.