Giving this a huge bump.
Currently struggeling to get a phpBB 3.0.X version migrated.
Which plugin shall I use actually? There are so many versions of the phpBB importer available.
Personally I have tested this and the 3.1 one.
These two returnt the following
2018-07-07T10:17:11.049Z  - [31merror[39m: message=Cannot find module '/home/web/nodebb/nodebb-plugin-import-phpbb'
Cannot find module './build/index.js', stack=Error: Cannot find module '/home/web/nodebb/nodebb-plugin-import-phpbb'
Cannot find module './build/index.js'
at nodebbRequire (/home/web/nodebb/node_modules/nodebb-plugin-require/index.js:72:10)
at safeRequire (/home/web/nodebb/node_modules/nodebb-plugin-import/server/exporter/index.js:41:9)
at searchModulesCache (/home/web/nodebb/node_modules/nodebb-plugin-import/server/exporter/index.js:24:13)
at reloadModule (/home/web/nodebb/node_modules/nodebb-plugin-import/server/exporter/index.js:47:3)
at cb (/home/web/nodebb/node_modules/npm/lib/install.js:253:18)
at LOOP (/home/web/nodebb/node_modules/npm/node_modules/slide/lib/chain.js:7:26)
at tryCatcher (/home/web/nodebb/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
at Promise.successAdapter [as _fulfillmentHandler0] (/home/web/nodebb/node_modules/npm/node_modules/bluebird/js/release/nodeify.js:22:30)
at Promise._settlePromise (/home/web/nodebb/node_modules/npm/node_modules/bluebird/js/release/promise.js:566:21)
at Promise._settlePromise0 (/home/web/nodebb/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/home/web/nodebb/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
at Async._drainQueue (/home/web/nodebb/node_modules/npm/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/home/web/nodebb/node_modules/npm/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues [as _onImmediate] (/home/web/nodebb/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
It seems like both versions are heavily outdated. Would be great, if I could be spared a conversion from phpBB to SMF to NodeBB.
Shall I use an older version of NodeBB maybe to perform the import?
What was the last one known to be working with this plugin? 0.6 or 0.7?
I've been trying to get a few tweaks made on the fileownership plugin I started last week along with another of mine that is dependent upon its data and I've run into a wall.
As posted last week, it was listening for the fileUpload hook. The problem with that is you end up putting data in the database for a file that might be decoupled from the message ( deleted, etc. ) and then you end up with file references cluttering the database.
Today I moved it to the topicPost/topicReply filter. This was a little better in that I knew I was dealing with the final state of the attached files for an initial post/reply ( fails utterly with edits... ) message but the file has not been moved/cloned from "/tmp" to the nodebb filesystem making it difficult to get any metadata ( size, etc ) from the file.
I tried moving it to the topicPost/topicReply actions, which occur later - but it was rather inconsistent.
This has me thinking a few things.
One - I'm doing a lot of this wrong headed and I need to completely rethink storage to account for editing messages.
Two - I need a hook that fires after the file has been moved from the tmp filesystem into the nodebb space. Does one exist?