Upgrading from 0.7.3 to 0.8.2 / 0.9.0



  • Hello,

    I am attempting a test to upgrade from 0.7.3 to 0.8.2, however, whenever I visit my categories page, the app throws an error like below:

    error: TypeError: Cannot read property 'cid' of null
    at async.waterfall.category.children (/home/ubuntu/nodebb-0.8/src/categories.js:330:43)
    at fn (/home/ubuntu/nodebb-0.8/node_modules/async/lib/async.js:717:34)
    at /home/ubuntu/nodebb-0.8/node_modules/async/lib/async.js:1170:16
    at /home/ubuntu/nodebb-0.8/node_modules/async/lib/async.js:172:37
    at /home/ubuntu/nodebb-0.8/node_modules/async/lib/async.js:677:43
    at /home/ubuntu/nodebb-0.8/node_modules/async/lib/async.js:173:37
    at Object.async.waterfall (/home/ubuntu/nodebb-0.8/node_modules/async/lib/async.js:681:44)
    at getChildrenRecursive (/home/ubuntu/nodebb-0.8/src/categories.js:328:9)
    at /home/ubuntu/nodebb-0.8/src/categories.js:348:6
    at /home/ubuntu/nodebb-0.8/node_modules/async/lib/async.js:187:20
    
    TypeError: Cannot read property 'cid' of null
    at async.waterfall.category.children (/home/ubuntu/nodebb-0.8/src/categories.js:330:43)
    at fn (/home/ubuntu/nodebb-0.8/node_modules/async/lib/async.js:717:34)
    at /home/ubuntu/nodebb-0.8/node_modules/async/lib/async.js:1170:16
    at /home/ubuntu/nodebb-0.8/node_modules/async/lib/async.js:172:37
    at /home/ubuntu/nodebb-0.8/node_modules/async/lib/async.js:677:43
    at /home/ubuntu/nodebb-0.8/node_modules/async/lib/async.js:173:37
    at Object.async.waterfall (/home/ubuntu/nodebb-0.8/node_modules/async/lib/async.js:681:44)
    at getChildrenRecursive (/home/ubuntu/nodebb-0.8/src/categories.js:328:9)
    at /home/ubuntu/nodebb-0.8/src/categories.js:348:6
    at /home/ubuntu/nodebb-0.8/node_modules/async/lib/async.js:187:20
    

    I'm able to actually upgrade from 0.7.3 to 0.9.0 with none of these errors. What should I do, without losing my categories and all their posts?


  • Admin

    I am assuming you are getting this error on 0.7.3 or 0.8.2 cuz that stack trace doesn't point to the correct place in 0.9.0, I suggest making a backup and upgrading to 0.9.0 and check if everything is working.


  • Plugin & Theme Dev

    @nuchin What steps did you follow to upgrade from 0.7.3 to 0.8.2?

    Which theme are you using and the version of that theme?



  • I've already tried to go straight from 0.7.3 -> 0.9.0 with success. Plugin support hasn't caught up yet though.

    @pichalite , I'm using a 2nd instance of nodebb, with a 2nd mongodb instance. I first upgraded my plugins to the latest, ran ./nodebb upgrade while on 0.7.3

    I then:
    git checkout v0.8.x
    git pull (just in case)
    ./nodebb upgrade

    running in dev mode just crashes and relaunches when hitting the categories page. When I first installed the forum, I was using v0.8.0 and switched to v.7.x since the plugin support wasn't updated yet.

    I am using the Vanilla theme and it upgraded to 4.0.8 after switching to v0.8.2


 

| |