WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] I have messed up my comments. (form only, no comments) (10 posts)

  1. giant slayer
    Member
    Posted 2 years ago #

    I tried using the facebook comments for a while with little success. I have tried to restore the default comments back to my wordpress site.

    For some reason the comments are not being displayed. The comment box for leaving a comment is visible and people can leave a comment, but the comments are not showing up.

    I have copied the comments.php from the 2011 theme and have comments enabled in the admin section. Does anyone have any clue what I might have done? The code for my comments.php is at the bottom of the post. Here is a link to an image I know has a comment.

    Thanks!!
    --christopher

    [Code moderated as per the Forum Rules. Please use the pastebin]

  2. Anthony
    Member
    Posted 2 years ago #

    Your comments.php is identical to a working copy I am currently using. Have you tried replacing your WordPress files?(please backup first) maybe the problem is there.

  3. giant slayer
    Member
    Posted 2 years ago #

    I have not tried replacing them. For whatever reason, it appears that something is stopping or blocking wp_list_comments from executing. I checked my functions file and found no functions related to anything dealing with comments.

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

  5. giant slayer
    Member
    Posted 2 years ago #

    Ok, so I deactivated all the plugins and the comments never showed. I tried the 2011 theme and the comments were present. Where might I look within my theme to find what would cause the comments to not be visible while the the comment form is visible?

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    Does your single.php file use <?php wp_list_comments();?>?

  7. giant slayer
    Member
    Posted 2 years ago #

    No, not in the single.php, but it is in the comments.php
    I think I may have found the problem.

  8. giant slayer
    Member
    Posted 2 years ago #

    No, I did not find what is going on.

  9. giant slayer
    Member
    Posted 2 years ago #

    I got a little closer. My post is now seeing that there is two comments, but when it goes to list the comments, the following error is given.

    Warning: call_user_func(twentyeleven_comment) [function.call-user-func]: First argument is expected to be a valid callback in /home/content/g/i/a/giantslayer/html/wp-includes/comment-template.php on line 1334

  10. giant slayer
    Member
    Posted 2 years ago #

    I got it.
    thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic