Open Krastanov opened 11 years ago
It sounds like you're trying to import a comment for a post which doesn't have a title, which is invalid in Juvia (and I'm not sure how it's valid in WordPress).
I suspected something like this, so I removed all drafts without titles (only drafts were like this and they did not contain any comments obviously), however it continues to fail in the same way with the same error message.
For some reason, completely unknown to me, removing all nav_bar_item
s from wp_posts
made it work. They definitely have title though...
So here is my workaround.
In Wordpress' control panel: Appearance->Menus: remove the "Pages" menu. This removes all post_type=nav_bar_item
from wp_posts
. Now the import should work.
I do not know why this happens, but I believe a fix for this would be to blacklist nav_bar_item
from def self.process_post(post, db, options)
in lib/juvia/migrators/word_press.rb
.
By the way the workaround does not remove these pages (i.e. topics), just the references to them for the navbar. And at least some of these pages do not contain comments at all, but when in the navbar still cause problems.
On trying to import I get the following error page:
The console reports this:
The first 11 comments are nonetheless successfully imported. I trashed them in wordpress and tried again. The same failure, and no new comments transfered. Then I trashed the rest of the comments one by one in wordpress. The same failure. Even when I have no more comments in wordpress (i.e. all of them are in the trash folder) I get the same error.
I can provide a wordpress xml dump for testing.
Any suggestions?
EDIT: see below for a workaround.