# How to convert vBulletin 4 database to Discourse?

**URL:** <https://meta.discourse.org/t/how-to-convert-vbulletin-4-database-to-discourse/50029>\
**Category:** Support\
**Created:** [12.Сентябрь.2016 19:45:32 UTC](https://meta.discourse.org/t/how-to-convert-vbulletin-4-database-to-discourse/50029 "2016-09-12T19:45:32Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [14.Сентябрь.2016 02:50:30 UTC](https://meta.discourse.org/t/how-to-convert-vbulletin-4-database-to-discourse/50029/17 "2016-09-14T02:50:30Z")

</div>

> [@Matheeus](#):
>
> After giving this command, I get these errors:  
> “script/import\_scripts/vbulletin.rb:404: syntax error, unexpected keyword\_else, expecting keyword\_end  
> script/import\_scripts/vbulletin.rb:754: syntax error, unexpected keyword\_end, expecting end-of-input”

> [@Mittineague](#):
>
> There does look to be an extra end or a missing conditional in this area of the code.

Yes, there was a missing `if` condition and extra `end`, just fixed via:

[https://github.com/discourse/discourse/commit/92e716a1fd907ee96e9b7ef557e4a71843f49084](https://github.com/discourse/discourse/commit/92e716a1fd907ee96e9b7ef557e4a71843f49084)

---

_[View the full topic](https://meta.discourse.org/t/how-to-convert-vbulletin-4-database-to-discourse/50029)._
