• Resolved andrewdaugdaug

    (@andrewdaugdaug)


    1. Go to this blog post:
    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)
  • 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.ww.wp.xz.cn/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>,

      , or

        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

    (@andrewdaugdaug)

    Hi @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

    (@andrewdaugdaug)

    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
    ?>

    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

    (@andrewdaugdaug)

    @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.