• 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:
    https://www.theworshipcommunity.com/sunday-setlists-110/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter fmckinnon

    (@fmckinnon)

    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?

    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.

    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.

    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]

    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. ??

    bookyeti – glad it worked for you!

    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

    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.

    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.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Valid Callback Errors on comment-template.php’ is closed to new replies.