Title: WP Comments PHP error
Last modified: August 21, 2016

---

# WP Comments PHP error

 *  Resolved [andrewdaugdaug](https://wordpress.org/support/users/andrewdaugdaug/)
 * (@andrewdaugdaug)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-comments-php-error/)
 * 1. Go to this blog post:
    [http://losingmyreligion.tv/?p=152](http://losingmyreligion.tv/?p=152)
 * 2. Try adding a post and then click on send. You will see the error that says:
   ———————————
   Warning: call_user_func() expects parameter 1 to be a valid callback, function‘
   advanced_comment’ not found or invalid function name in /home/freedomf/public_html/
   LosingMyReligion.tv/wp-includes/comment-template.php on line 1694 ———————————
 * 3. Please advise. Thank you.

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-comments-php-error/#post-4873210)
 * what is the code in comments.php of your theme, in the line with `wp_list_comments(......)`?
 * does the function `advanced_comment()` exist anywhere in your theme or in any
   activated plugin?
 * [http://codex.wordpress.org/Function_Reference/wp_list_comments](http://codex.wordpress.org/Function_Reference/wp_list_comments)
 * > `'callback'`
   >  ( callback ) The name of a custom function to use to open and
   > display each comment. Using this will make your custom function get called 
   > to display each comment, bypassing all internal WordPress functionality in 
   > this respect. Use to customize comments display for extreme changes to the 
   > HTML layout. Note that your callback must include the opening <div>,
   >  1. , or
   >  2.  -  tag (corresponding with the style parameter), but not the closing tags.
   >        WordPress will supply the closing tag automatically, or you can use end-
   >        callback to override this default. The callback is separate from the end-
   >        callback to facilitate hierarchical comments. Use with caution.
 * PS:
    what theme are you using and where did you download the theme from?
 *  Thread Starter [andrewdaugdaug](https://wordpress.org/support/users/andrewdaugdaug/)
 * (@andrewdaugdaug)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-comments-php-error/#post-4873293)
 * Hi [@alchymyth](https://wordpress.org/support/users/alchymyth/), thank you for
   the quick response! I really appreciate it.
 * I am using a custom theme made by someone else.
 * Where can I possibly check so can I find this function advanced_comment()? Can
   I possibly see this inside the /custom_theme_folder?
 * Please advise. Thanks!
 *  Thread Starter [andrewdaugdaug](https://wordpress.org/support/users/andrewdaugdaug/)
 * (@andrewdaugdaug)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-comments-php-error/#post-4873294)
 * The code under the custom comments.php file is :
 * <?php wp_list_comments(‘type=comment&callback=advanced_comment’); //this is the
   important part that ensures we call our custom comment layout defined above
    ?
   >
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-comments-php-error/#post-4873298)
 * to remove the error message or warning, change the line to:
 *     ```
       <?php wp_list_comments('type=comment'); //this is the important part that ensures we call our custom comment layout defined above
       ?>
       ```
   
 * if the function is not in _functions.php_ of your theme, then any further help
   through this forum is quite impossible for a custom made theme.
 * try to contact whoever made the theme for you.
 *  Thread Starter [andrewdaugdaug](https://wordpress.org/support/users/andrewdaugdaug/)
 * (@andrewdaugdaug)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-comments-php-error/#post-4873299)
 * [@alchymyth](https://wordpress.org/support/users/alchymyth/)
 * You’re a genuine WP genius!
 * Thanks a lot! It worked now!!!! 😀

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

The topic ‘WP Comments PHP error’ is closed to new replies.

 * 5 replies
 * 2 participants
 * Last reply from: [andrewdaugdaug](https://wordpress.org/support/users/andrewdaugdaug/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/wp-comments-php-error/#post-4873299)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
