Potential issue with GDPR consent page ("export posts" crashes nodebb)

Solved Technical Support
  • #1


    My setup: Version: 1.9.2 (synced with master).

    Pressing "export uploaded content" creates an empty zip file - maybe the user should get a message instead? (anyway this is a minor issue)

    Pressing "export posts" crashes nodebb:
    error: TypeError: Cannot read property 'content' of null
    at /nodebb/src/controllers/user.js:122:32
    at Array.map (native)
    at /nodebb/src/controllers/user.js:121:20
    at /nodebb/node_modules/async/dist/async.js:1126:9
    at iteratorSymbol (/nodebb/node_modules/async/dist/async.js:473:16)
    at iteratorCallback (/nodebb/node_modules/async/dist/async.js:1050:13)
    at /nodebb/node_modules/async/dist/async.js:958:16
    at /nodebb/node_modules/async/dist/async.js:1123:13
    at iteratorSymbol (/nodebb/node_modules/async/dist/async.js:473:16)
    at next (/nodebb/node_modules/async/dist/async.js:5315:29)
    at /nodebb/node_modules/async/dist/async.js:958:16
    at /nodebb/src/posts.js:107:4
    at nextTask (/nodebb/node_modules/async/dist/async.js:5310:14)
    at next (/nodebb/node_modules/async/dist/async.js:5317:9)
    at /nodebb/node_modules/async/dist/async.js:958:16
    at fireFilterHook (/nodebb/src/plugins/hooks.js:114:11)

    Not sure how to go about fixing this...

  • GNU/Linux

    Latest master should fix the latter. For the former, perhaps you actually have no uploads mapped to your user? What do you see in the uploads page in your user profile?

  • #3

    Its working perfectly now thank you so much!

    A comment is generated: "[user/export/uploads] Collating uploads for uid..." when pressing "export uploaded content". Not sure if this is left intentionally.

    Anyway, all good now thanks!

  • GNU/Linux

    @JJSagan Yes, that is normal, just an informative echo to indicate that the process has started.

Suggested Topics

| | | |