Title: Comment Function issue
Last modified: August 20, 2016

---

# Comment Function issue

 *  [m_p](https://wordpress.org/support/users/m_p/)
 * (@m_p)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/comment-function-issue/)
 * Hey all, I just made my first custom wordpress theme and everything works great
   except when someone makes a comment on a blog post, I understand that this error
   is coming from a specific file, but I am not sure how to resolve it.
 * “Warning: call_user_func(twentyten_comments) [function.call-user-func]: First
   argument is expected to be a valid callback in /home7/connedm6/public_html/blog/
   wp-includes/comment-template.php on line 1334”

Viewing 1 replies (of 1 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/comment-function-issue/#post-2288601)
 * look into comments.php, search for a line with:
 *     ```
       wp_list_comments( array( 'callback' => 'twentyten_comment' ) );
       ```
   
 * this line is expecting to find a function:
 *     ```
       function twentyten_comment( $comment, $args, $depth ) {
       ...
       }
       ```
   
 * (should be in functions.php of your theme, but is probably not)
 * —-
    2 possibilities to fix the problem:
 * a: remove the callback from ‘wp_list_comments’:
 *     ```
       wp_list_comments();
       ```
   
 * b:
    copy the function ‘twentyten_comment’ from Twenty Ten functions.php (line
   321 to 362) and add it into functions.php of your theme. look into functions.
   php of Twenty Ten, and copy this function into

Viewing 1 replies (of 1 total)

The topic ‘Comment Function issue’ is closed to new replies.

## Tags

 * [comment](https://wordpress.org/support/topic-tag/comment/)
 * [wp-includes](https://wordpress.org/support/topic-tag/wp-includes/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/comment-function-issue/#post-2288601)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
