[1.5] Comments not showing when viewing single post
-
As stated, when viewing a single post, the comments to my post do not show up. Any ideas? This is a template I use for 1.2 that I am porting to 1.5 and this looks to be my last hump to moving it over to my main site…
https://www.philpeeps.com/wp/
https://www.philpeeps.com/wp15/
-
You can just use the comments.php from the default theme and put any modifications into that one. That would be the quickest solution.
Will do then. Gotta go to a meeting with a client now. Will check back in with results later today. ??
MtDewVirus,
I copied the default (kubrick) comments.php file over to my selected theme folder, and now I can view my comments. Carrying over the modifications should be a breeze now.
Thanks for your assistance!
Well, the game’s not over yet. ??
Apparently, the template download for Kubrick (v1.2.6) off of binarybonsai is different than the one that’s being used as the default for WP. For example, around line 16 there’s this:
/* This variable is for alternating comment background */
$oddcomment = 'alt';And further down there’s this:
if("alt" == $oddcomment) {$oddcomment="";}
The download I got from binarybonsai has all that except “alt” is replaced with “graybox”. Okay, so, if I used the code as is (with the alt) the comments do no alternate background colors. If I change the “alt” in
if("alt" == $oddcomment) {$oddcomment="";}
to “graybox” they do change. No biggie, easily fixable. I’m basically just pointing this out in case anyone needs to know and make the change.Also in the binarybonsai download there’s this bit of script which does not exist in the default:
<script type="text/javascript">
<!--
function ShowInfo() {
document.getElementById("authorinfo").style.display = "";
document.getElementById("showinfo").style.display = "none";
document.getElementById("hideinfo").style.display = "";
}function HideInfo() {
document.getElementById("authorinfo").style.display = "none";
document.getElementById("showinfo").style.display = "";
document.getElementById("hideinfo").style.display = "none";
}
-->
</script>Now, I’m now code whiz so correct me if I’m wrong, but is this script responsible for collapsing the personal information fields (name, e-mail, URI) that I originally had working before the upgrade? Again, no big deal here because I would think I could just reinsert the code; I’m just trying to understand how all this is coming together and if the v1.2.6 was supposed to be used as the default, but changed before WP v1.5 was released.
So, with all that said, after using the default comments.php, I tried sending a comment, and got a blank page after hitting “submit”. In the URL, wp-comments-post.php was referenced. That may be what it’s supposed to do, but I only point it out to describe what I’m seeing.
Whew, my fingers are tired. Time to post. ??
bump
I’ve been doing some more testing. I switched over to the default theme — I didn’t change any of that. Just wanted to see if it’d work in it’s basic form.
I click on a “comments” link and get to that post’s page. I see the comments that existed beforehand and I enter a test comment. I still get a blank page. ???
I’m assuming that by using the default theme that it’s using only the files in the “default” directory in “themes”, right? If that’s the case, then that rules out the changes I’ve made in other files.
So does that help narrow down the list of potential culprits?
I’m running out of ideas. Anybody have some?
I have a little more information in case it sparks an idea for a solution. I’m very eager to get this fixed. ??
I can verify that no matter what theme I select in “Presentation” that I am unable to send a comment.
When selecting either the classic or Kubrick theme, comments are seen at the bottom of the post (single page), but I’m getting a blank page after submitting a comment. The comment is not making it to my database because it’s not showing up in the comments panel.
Hope I haven’t missed anythihg from the above. I am using 1.5, have no ‘themes’ folder at all, and am not able to have the ‘comments’ feature available immediatly beneath a posting to my Blog
You have no Themes folder? Then you have no themes at all. Download WordPress again and upload /themes/ to /wp-content/.
Did you just copy over the Kubrick theme directly into the root? If you did, that is highly not recommended.
Oops! Yes, I do have a Themes folder. I was looking in the wrong place. I’ve reverted to Dave O’Shea’s theme for now as the ‘Comments’ link is more evident there.
I need to dig this up again. I’m using a new theme now (Blix), and still using WP v1.5.
Just this morning I’ve discovered my comments don’t work. They used to work since switching themes.
I see the form just fine, submit my comments just fine and get no errors when submitting, but the comments just go off into cyberspace somewhere.
They’re not being moderated and it doesn’t appear that Spam Karma is catching them because nothing new is showing up in my digest.
I’ve recently made changes to:
functions.php
template-functions-post.php and
template-functions-category.phpdue to other bugs that were needing to be fixed. Could they be involved? I’ve also made a few changes to my sidebar.php, I’m pretty sure I’ve steered clear of anything to do with comments.
Any advice is much appreciated. ??
here’s my site: https://familywebwatch.com/blog/
I have more information.
On a whim I tried out the Rin theme to see if there was a chance I could post a comment. It’s on my test blog here: https://familywebwatch.com/blog_test/
I thought maybe working from a clean copy of something else could rule out a few things. The result? Still no comments made it to the page. ??
So, thinking it had to do with the files I modifed (the ones listed above) I replaced them, but got this error message:
Fatal error: Cannot redeclare timer_start() (previously declared in /hsphere/local/home/galen5/familywebwatch.com/blog_test/wp-settings.php:23) in /hsphere/local/home/galen5/familywebwatch.com/blog_test/wp-includes/functions.php on line 479
I’d be lying if I told you I knew what that meant.
Can anyone offer some suggestions?
I put back the modified files that I listed above, so if anyone checks out the page to witness the error message firsthand, you won’t see it.
I can tell you though that I can rule out the possibility of my IP being blocked somehow because I’ve tried it from both home and work. I also tried re-modifying my comments.php back to the original (I had modified it slightly for gravatar). That didn’t change anything. It was a desperate attempt, but had to try.
This is so maddening because it’s operating so smoothly, just not keeping the comments though. Aaargggh!
- The topic ‘[1.5] Comments not showing when viewing single post’ is closed to new replies.