• 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)
  • 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.