Composer-Defaults fails with latest master



  • Hi Devs,

    Pulled the latest code today.
    There seems to be an issue with composer-defaults failing at websockets line 128:

    error: uncaughtException: Cannot read property 'children' of undefined
    TypeError: Cannot read property 'children' of undefined
    at /home/nodebb/www/nodebb/node_modules/nodebb-plugin-composer-default/websockets.js:128:73

    Any idea what went wrong?

    Here is the relevant piece of code from websockets.js:

    const hasChildren = !!c.children.length;
    				if (hasChildren) {
    					c.disabledClass = true;
    				} else if (c.parent) {
    					cidToCategory[c.parent.cid].children = cidToCategory[c.parent.cid].children.filter(child => {
    						return child.cid !== c.cid;
    					});
    				}
    

  • GNU/Linux Admin

    What are you doing when the error shows up?



  • Hi @julian that's a tough one.
    I have been trying to debug this issue before I posted but was unable to re-create the crash.
    All I have is the logs to go with, unfortunately.
    I posted in hope that this error may be related to something that was worked on in the past few days.
    My apology for not being so helpful.
    JJ.



  • Anyone ending here, the issue was observed by @baris and being discussed in this post:

    https://community.nodebb.org/topic/13492/redactor-crashes-nodebb


Log in to reply
 

Suggested Topics

| |