I can at least say that it not only happens for those cases where older posts link to newer ones.
I got one example where I first found the issue.
Original Post ID: 842948 links to Page 22 of a thread that already existed and at least the start post (&start=220) has an ID lower than the linking post (842880)
After import this original post (which was posted only days before the dump was created) links to a 7 year old thread where the first post has an original ID of 1353.
I can’t seem to find any hints on why this happens, any similarities in numbers in any way… The original link was just a plain posted URL which was auto linked by phpBB. Those links in general don’t cause any issues - they work in several other places.
Generally I don’t expect the import to go well immediately. I’m really happy to how it went so far but I assume this issue might be one of the hardest to fix, especially because I don’t have any clue of setting up a dev/debug environment with Discourse yet. Might need to dig into that soon.
Hi,
From what I remember, the phpbb importer was by default filling the Discourse user full name by guessing from the user email address. Am I right and is it still the case? I can’t find anything about this in the importer files…
This is something I wouldn’t want to happen in the next forum I may import.
Also, another question.
On the current phpbb forum, there are custom user fields (like users facebook or instagram urls). I would like to import this in Discourse custom fields. I guess I’ll do something like first installing and configuring Discourse by adding these custom user field, then importing the phpbb data from my custom import script?
Is there a reliable way to estimate the monthly volume of emails that Discourse will send to users after a migration from phpbb? New user registrations, mentions and replies, weekly digests and so on… Phpbb sends very few emails by default and I think we’ll have to change the current email provider.
I don’t currently have much stats from the actual phpbb. It exists since 2013, with 200000 messages and 5500 members. New members register everyday.
With only 20 posts per day I think you’d probably be looking at 3000 emails a month, at most, well within the free Mailgun plan.
However seeing as you’re migrating with lots of users I’d recommend you turn off the digest emails for everyone who hasn’t been to your forum within the last month or two (they can always turn it on themselves if they want). You can do that with a query in the Rails console, but it’s been a year since I did it for mine, so I don’t remember the exact code sorry.
That should actually be something the import script could do for you IMO, ideally with a setting for the time since last visit to enable digest emails.
Indeed After my first phpbb import on my current forum, I had to decrease the default value; my email provider automatically blocked the used address because of all the digest emails sent. It was flagged as spam.
It’s not quite the same thing. There’s a difference IMO between sending digest emails to someone for X months since their last visit when they signed up for it - just because they don’t visit the forum doesn’t mean they’re not reading the digest emails - and sending digest emails to a user who never signed up for them because they registered in the previous forum, which may not even be legal in some jurisdictions! You could simply turn off digests for every migrated user, and they can turn then on for themselves, or you could do as I did and turn them off for everyone except those who visited within the last month and who therefore would have seen the “we’re going to migrate the forum soon” announcement. I think that’s a fair middle ground.
It’s also practical - our phpBB forum had gained thousands of spammer accounts within the last year and sending the digest to them four times a month would have used all our free mailgun allowance and then started costing a lot. Reducing “clean up inactive users after days” eventually cleaned them up.
Not sure if this belongs here or in a separate topic. But it’s about migrating from phpbb 3 so here I am.
I have successfully migrated to discourse with 1 database. However I have 3 different, separate communities (3 different languages, 3 different phpbb installs), which ideally I would all have merged into one big happy discourse forum.
My question is: how would I go about doing this? What do I need to change in the import script / phpbb 3 database / anywhere else?
There are a few users who have accounts on both forums, (a few maybe even on all 3), but there is no single sign on so they have a different account on each forum with the same username. They are all different installs and different databases.
It won’t work out of the box, because the import script stores the original IDs in the Discourse database and it won’t import data from an additional forum if it finds a record with the same ID. However, I can think of two ways of solving this:
Hard: You need to edit the import script in various places and add a prefix for each forum to the import_id custom fields stored for posts, topics, categories and users.
Easy, but you will lose the ability for incremental imports: Delete the custom fields after each import.
Após os primeiros testes antes do Ano Novo, estamos retomando o nosso projeto de migração. Um dos maiores problemas ainda é a falha na reescrita de links, e estou pensando na melhor forma de lidar com isso.
@gerhard meu conhecimento de programação é muito básico e não tenho nenhum conhecimento em Rails em geral ou na estrutura do Discourse em detalhes — portanto, peço paciência com a minha pergunta: haveria alguma chance de lidar com o caso em que o importador não encontra um post importado com o ID fornecido no link e, em vez de substituí-lo por um link incorreto, anexar algum texto que informe o usuário/administrador e torne esses links problemáticos encontráveis após a importação?
Minha principal preocupação com o funcionamento atual é que esses links parecem ter sido substituídos com sucesso, e não há como encontrá-los e corrigi-los manualmente após a importação.
Obrigado por qualquer ajuda que você possa me dar — é muito apreciada.
Uma maneira de fazer isso é reescrever o script para que ele não substitua esses links até que todas as postagens tenham sido importadas. Se precisar de ajuda e tiver um orçamento, entre em contato comigo ou publique em Marketplace.
Infelizmente, este projeto tem um orçamento reduzido e acho que o problema não é importante o suficiente para justificar gastar dinheiro com isso, mas é definitivamente bom saber que você estaria disponível para isso.
Outra pergunta: notei que o bbcode parece ser tratado de forma diferente durante a importação. [size], por exemplo, é simplesmente deixado como texto, enquanto [color] parece ser removido completamente. Eu queria reutilizar a cor e descobri que existe um plugin do Discourse para isso, mas então notei que ele também parece ser removido na importação. A postagem inicial diz que os bbcodes podem ser importados, mas não encontrei nenhuma configuração que controle quais deles podem ou não ser importados.
Se houver uma possibilidade, eu preferiria remover as tags de tamanho e deixar a cor. Há algo que estou perdendo sobre como isso é tratado e como isso poderia ser alterado?
Acabei de descobrir que os tópicos que foram podados no meu fórum phpBB e que eu achava que haviam sumido foram de alguma forma transferidos para o Discourse.
Estou tentando fazer isso, mas estou perdido nas instruções. A qual arquivo de configurações você se refere aqui? E quando devo fazer isso: antes ou depois da importação?
Obrigado antecipadamente!
edit: então acho que você se refere aos arquivos de configuração de emojis no Painel Administrativo (Admin CP)? Existe alguma maneira de fazer isso importando um arquivo de texto ou algo assim? Tenho cerca de 100 smilies personalizados e preferiria de alguma forma copiar esse mapeamento para o Discourse. Isso é possível? (Se eu pudesse copiar o arquivo smily.pak do phpBB para as configurações do Discourse de alguma forma?)
Acho que o phpBB lida com tópicos podados de forma diferente dos tópicos deletados normalmente. Nesse caso, isso não é suportado no momento. Você precisará descobrir como o phpBB marca tópicos podados como deletados e ajustar o script de importação.
Certo, claro! Faz muito tempo desde que fiz a primeira conversão. Eu tinha esquecido completamente disso, obrigada!
Sobre os tópicos podados, sim, achei que fosse algo assim. Não é um grande problema para o meu fórum, mas foi surpreendente e talvez seja bom avisar aos outros que isso pode acontecer.