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
(@m_p)
14 years, 9 months ago
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”