Hi @julianlam, I pulled the new code and can confirm the text was replaced with an icon. Thank you!
MyBB to NodeBB Importer?
-
@Nifty My Mybb version is 1.6.12
Do you think I need to upgrade it in 1.8 before doing my database export?My forum is in French, could the accents been an issue in the import?
-
@TaLoche They change a few fields from 1.6 -> 1.8. I can give you a modified export if you like. It's not a big deal. The accents should not be a problem.
-
@Nifty You're the man! So I just send you my DB export and you would be able to modify the export?
-
@TaLoche No need for a dump. Give me 10h to check it out.
-
@Nifty You have 10h Jack Bauer style then. Thanks again!
-
-
Now you're talking!
-
But it all has a price... :
-
@Nifty let me know if you run into issues
-
@Nifty said:
But it all has a price... :
Some people go skydiving to experience life on the edge, I run master NodeBB in production.
-
@Nifty said:
But it all has a price... :
I'm okay with that kind of invoice to pay, since I'm stuck without you!
-
@TaLoche It was the soft delete option of Mybb1.8. I removed it. Just Upgrade the import plugin and you are fine.
-
@Nifty Thanks a lot for this!
I gave it a go and it didn't work. So, I started a fresh installation of Nodebb and Mysql, exported my database in Mysql and this time, I got the users, the categories and the topics. But in each topic I've only got the first post (OP).A few topics have all their posts but that's like 2% of the topics.
Sorry to bother you with all this!
-
@a_5mith Hey, we run
master
in production too! -
@a_5mith, remember when you didn't take risks like that - but I convinced you it was a great idea, so you gave it a go - and then everything broke?
Everything's been a lot smoother than then lately xD -
cd /path/to/where/this/plugin/is/installed/nodebb-plugin-import-mybbex
Then edit test.js, with your favorite editor to enter your real database info
it's this file https://github.com/NiftyXXL/nodebb-plugin-import-mybbex/blob/master/test.jsthen try this
node test.js
after that's done, it should have written a
tmp.json
file, open it, it's probably big, but deal with it, take a look at the data, can you find the posts?if there are too much stuff in there, change this line
from
fs.writeFileSync('./tmp.json', JSON.stringify(results, undefined, 2));
to
fs.writeFileSync('./tmp.json', JSON.stringify(results[4], undefined, 2));
this will only write the posts to
tmp.json
, then open it again and take a look.if the posts are not in there, that means it's this exporter's issue, if they are, that means it's my plugin's issue
I can help so much without access to the data or the server.
-
@TaLoche Did you saved the Log Files to the Server ?
-
-
@ bentael I edited my test.js, put all the info for my database (name, user, password), put the file back.
And ran node test.js but I got this:
[email protected]:~$ module.js:340
throw err;
^
Error: Cannot find module '/home/taloche/forum/test.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3 -
@TaLoche You run into a known Problem, it is fixed on nodebb 0.6 but not in 0.5x. Please change the following file
Find this file NodeBB/src/groups.js LINE-454, change
From
if (err) {To
if (err && err.message !== '[[error:group-already-exists]]') {
Kill nodebb before. And then just re import. Thanks to @bentael for this solution.