MyBB importer script failing at creating users stage

AI-generated summary

A user is experiencing an issue with the MyBB importer script, specifically at the user creation stage, resulting in a NameError due to an undefined local variable or method users. SentinelX101 provided the error message and the steps they followed, which were previously successful for another user.

rking identified the issue, stating that users should be replaced with results in the script. A reference to the correct line in the code is provided. Additionally, techAPJ shared a commit that may be related to the fix.

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.

My bad… users should be results here:

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