All WordPress Comments Are Gone, What To Do?
I have no clue when my website comments went away, but it seemed that this problem started when WordPress updated itself to 4.0 on my website, www.brusimm.com. This update did NOT agree with my Thesis v1.8.5 installation, at all and that, was the problem. At least for me, after much deliberation and research.
So if you're a Thesis user, don't freak out and blame any one plugin, don't reinstall the update. Don't go off deactivating and reactivating every single plugin attached to your site or reinitializing plugin folders.
Nope, that was about a week's worth of my time tinkering with all that noise. When nothing worked, I focused my attention on looking for the error, in conjunction with my installed Thesis framework, and low and behold, I found an answer.
NOTE: This worked with my Thesis 1.8.5 installation. I do not believe it will work for any other version.
- Using an FTP client, navigate to " /wp-content/themes/thesis_185/lib/classes/ " folder.
- Back up then edit your "comments.php" at line 187 or this exact set of lines, whereever it may occur:
The ORIGINAL looks like this:
$wp_query->comments_by_type = &separate_comments($wp_query->comments);
$_comments = $wp_query->comments_by_type['comment'];
The NEW VERSION looks like this:
$wp_query->comments_by_type = separate_comments($wp_query->comments);
$_comments = &$wp_query->comments_by_type['comment'];
If you look carefully, all that actually happened was that the ampersand "&" moved from "&separate_comments" to "&$wp_query->comments_by_type" in the section.
That's it... a simple move of the Ampersand.