flymansWife
Member
Posted 2 years ago #
I imported my wordpress.com blog to my new wordpress.org blog on my domain i recently purchased. it seems to have imported everything without any issues except that comment threading did not stay intact. any replies i may have made to commentors are showing up as the last few comments rather than showing up as replies...
any idea how to fix this??
Change your wordpress.org theme to that which has threaded comments coded and styled into it. Some possibilities:
http://wordpress.org/extend/themes/tags/threaded-comments
flymansWife
Member
Posted 2 years ago #
my theme does have threaded comments. and i tested them. i am able to reply and it shows up properly. the import just didn't keep the threaded comments.
There's a patch here, http://core.trac.wordpress.org/ticket/8019 but that would seem to require redoing the import which meanse dropping tables, redoing wp-admin/install.php, then do the import.
Backup your existing database before proceeding.
flymansWife
Member
Posted 2 years ago #
i'm sorry, I've looked at that link and i'm just incredibly confused... what exactly do i need to do? i'm guessing i need to install some sort of a patch from that page but i'm not sure what link to use and where to install/add the patch.
basically i need some step by step instructions... can someone help? i'm also not sure what exactly i need to be backing up before proceeding.
thanks for getting me on the right track!
You should backup your database just in case you need it. WordPress Backups explains backing up you database as well as your files.
The patch is another thing. Review the SVN article and the Resources there...Westi's blog post on "using Tortise SVN in Windows" is good (just use http://svn.automattic.com/wordpress/tags/2.8.4 as the URL of the Checkout URL of repository.)
Here's wp-admin/includes/wordpress.php at 2.8.4, with fix from http://core.trac.wordpress.org/attachment/ticket/8019/wordpress.php.diff
So just replace the existing wp-admin/includes/wordpress.php with this.
Note: I haven't tested this.
If this doesn't work for you please comment about that at trac http://core.trac.wordpress.org/ticket/8019
Darn, I didn't paste the link to the pastebin...
replace the existing wp-admin/includes/wordpress.php with this:
http://wordpress.pastebin.ca/1574674
flymansWife
Member
Posted 2 years ago #
Michael - are you saying not to do the patch and just replace the php file?
I provided the whole wordpress.php, which includes the patch, just in case people didn't want to hassle with the SVN/patch thing.
flymansWife
Member
Posted 2 years ago #
ugh bummer... that didn't solve it. i replaced the wordpress.php file and then did a new import and still nothing :-( all of the author replies are showing up at the end of the comments rather than as replies.
Darn.
If you don't have a zillion comments, guess you could consider fixing the comment_parent field in your wp_comments table...
Ugly choice you say....
Have noted in Trac that your problem was not resolved by the fix there.
Please, flymansWife, hold on to that export file just in case it might help one of the devs research the issue. Thanks.
flymansWife
Member
Posted 2 years ago #
thanks for your help in trying to resolve the issue....
pbarron
Member
Posted 2 years ago #
Michael: I've been working with flymansWife, and wanted to let you know that the wordpress.php fix does in fact solve this issue. The problem with flymansWife's earlier attempt was that after installing the new file, she re-imported her export file into the old database, so nothing changed. I repeated her steps on a test blog, deleted and replaced the database, did a quick reinstall of WP, then imported the export file with success. Threaded comments were restored.
Thanks for your work on this! Much appreciated.
Scordisian
Member
Posted 2 years ago #
Is there a fix for this for WP-mu as well? I noticed this file doesn't excist in there?
I would guess yes, but not sure. Maybe someone in the MU forums would know:
http://mu.wordpress.org/forums/