Title: Valid Callback Errors on comment-template.php
Last modified: August 19, 2016

---

# Valid Callback Errors on comment-template.php

 *  [fmckinnon](https://wordpress.org/support/users/fmckinnon/)
 * (@fmckinnon)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/valid-callback-errors-on-comment-templatephp/)
 * 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/](http://www.theworshipcommunity.com/sunday-setlists-110/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Thread Starter [fmckinnon](https://wordpress.org/support/users/fmckinnon/)
 * (@fmckinnon)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/valid-callback-errors-on-comment-templatephp/#post-1650452)
 * 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?**
 *  [dgraydesign](https://wordpress.org/support/users/dgraydesign/)
 * (@dgraydesign)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/valid-callback-errors-on-comment-templatephp/#post-1650514)
 * 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.
 *  [dgraydesign](https://wordpress.org/support/users/dgraydesign/)
 * (@dgraydesign)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/valid-callback-errors-on-comment-templatephp/#post-1650515)
 * 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.
 *  [bcinelli](https://wordpress.org/support/users/bcinelli/)
 * (@bcinelli)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/valid-callback-errors-on-comment-templatephp/#post-1650559)
 * 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](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *  [bookyeti](https://wordpress.org/support/users/bookyeti/)
 * (@bookyeti)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/valid-callback-errors-on-comment-templatephp/#post-1650561)
 * **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. 
   🙂
 *  [dgraydesign](https://wordpress.org/support/users/dgraydesign/)
 * (@dgraydesign)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/valid-callback-errors-on-comment-templatephp/#post-1650562)
 * **bookyeti** – glad it worked for you!
 *  [Chuck Reynolds](https://wordpress.org/support/users/ryno267/)
 * (@ryno267)
 * [15 years ago](https://wordpress.org/support/topic/valid-callback-errors-on-comment-templatephp/#post-1650571)
 * 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
 *  [soflanetworking](https://wordpress.org/support/users/soflanetworking/)
 * (@soflanetworking)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/valid-callback-errors-on-comment-templatephp/#post-1650576)
 * was having this error on all of [IT Solutions blog post](http://soflanetworking.com/wordpress/)
 * It was nice being able to find this post, it fixed my issue straight away.
 *  [drunberg_collegian](https://wordpress.org/support/users/drunberg_collegian/)
 * (@drunberg_collegian)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/valid-callback-errors-on-comment-templatephp/#post-1650577)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 7 participants
 * Last reply from: [drunberg_collegian](https://wordpress.org/support/users/drunberg_collegian/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/valid-callback-errors-on-comment-templatephp/#post-1650577)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
