# vBulletin import\_script bug in importing children categories

**URL:** <https://meta.discourse.org/t/vbulletin-import-script-bug-in-importing-children-categories/143769>\
**Category:** Product Support\
**Created:** [March 10, 2020, 5:43am UTC](https://meta.discourse.org/t/vbulletin-import-script-bug-in-importing-children-categories/143769 "2020-03-10T05:43:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)\
**Post date:** [March 10, 2020, 5:43am UTC](https://meta.discourse.org/t/vbulletin-import-script-bug-in-importing-children-categories/143769/1 "2020-03-10T05:43:37Z")

</div>

Dear All,

Well, first of all, a `BIG SHOUT OUT OF THANK YOU` to `Discourse`. `Discourse` is a work of art and very impressive. After over a decade with vBulletin, we could not find any forum software to port to (it was all just ‘same ole, same ole’.. blah blah), until `Discourse`. `THANK YOU`

Currently, I am in test bed mode, importing from` vB 3.8.X` to the latest version of `Discourse` in a `docker container`, both firsts for me. In fact, before this week, I never thought I would write a single line of `Ruby` but `Discourse` is so good, it’s worth it.

The `import script``vbulletin.rb` is chugging along now for a day or so; and for the most part, it is working fine. In fact, it is extremely impressive. A few times it tossed an error, but when I restarted the script, the error went away.

I did find a bug in `importing children categories`. (that will not go away on restart) and here it is:

```importing

Traceback (most recent call last):

5: from script/import_scripts/vbulletin.rb:942:in `<main>'

4: from /var/www/discourse/script/import_scripts/base.rb:47:in `perform'

3: from script/import_scripts/vbulletin.rb:84:in `execute'

2: from script/import_scripts/vbulletin.rb:287:in `import_categories'

1: from script/import_scripts/vbulletin.rb:287:in `each'

script/import_scripts/vbulletin.rb:289:in `block in import_categories': undefined method `[]' for nil:NilClass (NoMethodError)

root@localhost-app:/var/www/discourse# su discourse -c 'bundle exec ruby script/import_scripts/vbulletin.rb'

```

My plan to address this is lame. I was going to `redump` the vB database and make all `child` forums `parents` and then do the entire migration again; but then I thought maybe I should be more social and post his as a bug report.

Any suggestions on a better way to fix this other than my lame noob idea above?

If not, I plan to just dump again, make adjustments in the DB manually, and migrate again, which I am sure is a lame noob way to get this fixed.

Thanks!

---

_[View the full topic](https://meta.discourse.org/t/vbulletin-import-script-bug-in-importing-children-categories/143769)._
