Migrating WordPress and Vanilla Forum to Discourse
Nick_Chomey is seeking to migrate custom posts from a WordPress Knowledge Base plugin to self-hosted Discourse Topics, preserving tags and formatting in markdown. angus suggests starting with the Generic Database script and reviewing similar migrations on meta.discourse.org/tag/migration.
Additionally, Nick_Chomey is experiencing issues importing a Vanilla Forum v3 to Discourse using the Vanilla porter, encountering a invalid byte sequence in UTF-8 error. However, Nick_Chomey discovered a similar issue on meta.discourse.org, which suggests that tinkering with the database encoding may resolve the problem.
I have a Knowledge Base plugin on WordPress whose custom posts I’d like to replace with self-hosted Discourse Topics, coded in markdown. It would be ideal if the tags could be migrated as well.
@angus mentioned in my previous topic that there might be a migration script that could help with this. Any tips?
After you’ve reviewed some of those scripts and topics and gotten to grip with what this involves, come back here to ask us if you have specific questions or get stuck with something and we can help you through it.
I’m also looking to migrate a Vanilla Forum v3 to Discourse. I seem to have exported everything find with the Vanilla porter. But I get this error when running the import script. Any ideas?
discourse@ip-172-26-0-201-app:/var/www/discourse$ RAILS_ENV=production ruby script/import_scripts/vanilla.rb /shared/uploads/export.txt
Loading existing groups...
Loading existing users...
Loading existing categories...
Loading existing posts...
Loading existing topics...
parsing file...
reading file...
Traceback (most recent call last):
5: from script/import_scripts/vanilla.rb:260:in `<main>'
4: from /var/www/discourse/script/import_scripts/base.rb:47:in `perform'
3: from script/import_scripts/vanilla.rb:22:in `execute'
2: from script/import_scripts/vanilla.rb:42:in `parse_file'
1: from script/import_scripts/vanilla.rb:77:in `read_file'
script/import_scripts/vanilla.rb:77:in `gsub': invalid byte sequence in UTF-8 (ArgumentError)
discourse@ip-172-26-0-201-app:/var/www/discourse$