TypeError: Cannot read property 'replace' of undefined



  • Just go this error on my nodebb.. version 1.0.2

    upgraded to v 1.0.3 and i think it stopped.. but who knows? It started to happen from nowhere ...

    13/4 14:29 [29270] - error: TypeError: Cannot read property 'replace' of undefined
        at S.decodeHtmlEntities (/home/forum/NodeBB/node_modules/string/lib/string.js:140:12)
        at /home/forum/NodeBB/src/notifications.js:453:60
        at Array.forEach (native)
        at /home/forum/NodeBB/src/notifications.js:426:20
        at Array.reduce (native)
        at Object.Notifications.merge (/home/forum/NodeBB/src/notifications.js:403:28)
        at /home/forum/NodeBB/src/user/notifications.js:96:19
        at fn (/home/forum/NodeBB/node_modules/async/lib/async.js:746:34)
        at /home/forum/NodeBB/node_modules/async/lib/async.js:1213:16
        at /home/forum/NodeBB/node_modules/async/lib/async.js:166:37
        at /home/forum/NodeBB/node_modules/async/lib/async.js:706:43
        at /home/forum/NodeBB/node_modules/async/lib/async.js:167:37
        at /home/forum/NodeBB/node_modules/async/lib/async.js:1209:30
        at /home/forum/NodeBB/src/user/notifications.js:139:4
        at /home/forum/NodeBB/src/user/notifications.js:185:5
        at /home/forum/NodeBB/node_modules/async/lib/async.js:726:13
    TypeError: Cannot read property 'replace' of undefined
        at S.decodeHtmlEntities (/home/forum/NodeBB/node_modules/string/lib/string.js:140:12)
        at /home/forum/NodeBB/src/notifications.js:453:60
        at Array.forEach (native)
        at /home/forum/NodeBB/src/notifications.js:426:20
        at Array.reduce (native)
        at Object.Notifications.merge (/home/forum/NodeBB/src/notifications.js:403:28)
        at /home/forum/NodeBB/src/user/notifications.js:96:19
        at fn (/home/forum/NodeBB/node_modules/async/lib/async.js:746:34)
        at /home/forum/NodeBB/node_modules/async/lib/async.js:1213:16
        at /home/forum/NodeBB/node_modules/async/lib/async.js:166:37
        at /home/forum/NodeBB/node_modules/async/lib/async.js:706:43
        at /home/forum/NodeBB/node_modules/async/lib/async.js:167:37
        at /home/forum/NodeBB/node_modules/async/lib/async.js:1209:30
        at /home/forum/NodeBB/src/user/notifications.js:139:4
        at /home/forum/NodeBB/src/user/notifications.js:185:5
        at /home/forum/NodeBB/node_modules/async/lib/async.js:726:13
    
    

  • GNU/Linux

    It happens when you click on notifications.
    I had this issue and solved it by switching on weekly branch.


Log in to reply
 


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