MyBB importer script failing at creating users stage


(SentinelX101) #1

When running the mybb.rb importer script I get the following error.

loading existing groups...
loading existing users...
loading existing categories...
loading existing posts...
loading existing topics...

creating users
/var/www/discourse/script/import_scripts/mybb.rb:51:in `block in import_users': undefined local variable or method `users' for #<ImportScripts::MyBB:0x007f1cb24e0108> (NameError)
        from /var/www/discourse/script/import_scripts/base.rb:670:in `block in batches'
        from /var/www/discourse/script/import_scripts/base.rb:669:in `loop'
        from /var/www/discourse/script/import_scripts/base.rb:669:in `batches'
        from /var/www/discourse/script/import_scripts/mybb.rb:39:in `import_users'
        from /var/www/discourse/script/import_scripts/mybb.rb:24:in `execute'
        from /var/www/discourse/script/import_scripts/base.rb:45:in `perform'
        from /var/www/discourse/script/import_scripts/mybb.rb:189:in `<main>'

I was following these exact steps from a previous user who was importing their database from MyBB to Discourse when the error occurred.

Thanks.


(Kane York) #2

My bad… users should be results here:


(Arpit Jalan) #3

https://github.com/techAPJ/discourse/commit/38d8d46a4bfaee62ffb589a9d93991a0e31ae244


Core dump when running the MyBB import script
(Arpit Jalan) #4