WordPress.org

Ready to get started?Download WordPress

Forums

Valid Callback Errors on comment-template.php (10 posts)

  1. fmckinnon
    Member
    Posted 3 years ago #

    OK - I had the vBulletin Bridge enabled on our wordpress site, and we were using vbulletin as our comment engine. I disabled it, and now, all of the twitter and/or pingback links/comments are showing up throughout the site with the following errors:

    Warning: call_user_func(twentyten_comment) [function.call-user-func]: First argument is expected to be a valid callback in /home2/twcadmin/public_html/wp-includes/comment-template.php on line 1335

    As best as I can tell, any previous comments (actual comments) are gone, which makes sense, because they are in the vbulletin forums.

    All of these errors seem to be where a trackback (mostly tweets, RTs, etc) would have been.

    Any suggestions on how to clean it up?
    See an example at:
    http://www.theworshipcommunity.com/sunday-setlists-110/

  2. fmckinnon
    Member
    Posted 3 years ago #

    OK - this apparently has NOTHING to do w/ the vbulletin bridge - I've totally removed it and uploaded all new install of wordpress ...

    This error is happening everywhere - even when users leave comments:

    Warning: call_user_func(twentyten_comment) [function.call-user-func]: First argument is expected to be a valid callback in /home2/twcadmin/public_html/wp-includes/comment-template.php on line 1335

    Warning: call_user_func(twentyten_comment) [function.call-user-func]: First argument is expected to be a valid callback in /home2/twcadmin/public_html/wp-includes/comment-template.php on line 1335

    I've googled and searched and I'm finding tons of sites generating this error in the last few days.

    DOES ANYONE KNOW HOW TO FIX THIS?

  3. dgraydesign
    Member
    Posted 3 years ago #

    I'm experiencing the same thing. If you figured it out, I'd love to know the solution. If not, it would be nice if someone could help out.

  4. dgraydesign
    Member
    Posted 3 years ago #

    Just found this fix on another forum post. It works:

    edit this line from comments.php:
    wp_list_comments( array( 'callback' => 'twentyten_comment' ) );
    and change 'tentyten_comment' to the function name of an existing 'comments' function; i.e. the name of the comments function you are working on at the moment in functions.php of the theme.

    or bring it back to the 'empty' state:
    wp_list_comments();
    which should remove the error message.

  5. bcinelli
    Member
    Posted 3 years ago #

    I found the fix to this error. For some reason the coding was picking up one of the default themes that comes with wordpress that has the twentyten coding in it. I went into the default WordPress theme and pulled out the comments.php code and pasted it into my comments.php on my new custom made theme.

    Bingo Bango Bongo .. worked perfectly. Here's the coding so you don't have to go far.

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

  6. bookyeti
    Member
    Posted 3 years ago #

    dgraydesign - I just want to thank you very much for posting your solution. I just upgraded to 3.1.1 and got the same error message wherever someone left a comment. I followed the instructions you posted and it solved the problem. :)

  7. dgraydesign
    Member
    Posted 3 years ago #

    bookyeti - glad it worked for you!

  8. Chuck Reynolds
    Member
    Posted 3 years ago #

    if you're doing this with custom theme based off of twentyten or a child theme of twentyten you need to then include the twentyten_comments() function from twentyten/functions.php into your functions file. It's erroring because that function isn't there

  9. soflanetworking
    Member
    Posted 2 years ago #

    was having this error on all of IT Solutions blog post

    It was nice being able to find this post, it fixed my issue straight away.

  10. drunberg_collegian
    Member
    Posted 2 years ago #

    I'm having this same problem, except I don't have a comments.php file. There is just comment.php and comment-template.php. The comment.php in my theme looks very different from the comments.php in the default theme. It doesn't even have the wp_list_comments( array( 'callback' => 'twentyten_comment' ) ); line in it, so I don't really know what to do.

    I'm using a custom made theme from someone who designed it for our college newspaper last year, so I'm kind of walking into this blind. Anybody have any ideas? Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.