• @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

  • Plugin & Theme Dev

    @TaLoche

    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.js

    then 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 ?


  • Thanks guys for your help.

    @Nifty I'll send you as requested my db export.

    @bentael I'll give it a go right now to see what happens. Thanks for your help.

    Chloe-OBrian-24-Season-7-Ep11.jpg


  • @ 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:

    taloche@mynodebb:~$ 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.


  • Hi again Nifty, I had made that change, since everytime I follow @bentael's steps to set up the import plugin.

    Just in case, I did it again and still the same error.

  • Plugin & Theme Dev

    @TaLoche said:

    Error: Cannot find module '/home/taloche/forum/test.js'

    You're calling node test.js from working directory that does not have a test.js file in it. are you in the NodeBB root directory?

    test.js is not in the NodeBB directory root, judging on your forum path, and depending how you install the mybbex exporter, I think that test.js should be either

    in here:
    /home/taloche/forum/node_modules/nodebb-plugin-import-mybbex/

    or

    in here:
    /home/taloche/forum/node_modules/nodebb-plugin-import/node_modules/nodebb-plugin-import-mybbex/

    didn't you edit it?

    just find it, cd /to/that/directory then run node test.js and the tmp.js would be a sibling to test.js

  • Plugin & Theme Dev

    so, ASSSUMING this is the right directory, here are the steps again

    cd /home/taloche/forum/node_modules/nodebb-plugin-import-mybbex/
    

    edit test.js somehow, put in the right DB info

    node test.js
    

    remember your working directory is already /home/taloche/forum/node_modules/nodebb-plugin-import-mybbex/


  • @bentael Thanks for getting back to me and for all your help. In the end, Nifty took over my access to DigitalOcean and managed to set up Nodebb with my Mybb import.
    It didn't work out the way he wanted, he had to dump on my droplet, the install he had worked out on his own computer with the import already included.

    His guess was that my droplet was fighting the import since I had chosen the 512mo ram plan.

Suggested Topics

  • 2
  • 13
  • 24
  • 8
  • 11
| |