Jetpack by WordPress.com
[resolved] jpcarousel_auto_close_comments warning and closed comments (3 posts)

  1. thinkero
    Posted 2 years ago #

    I'm running the last versions of WP and Jetpack. My comments are closed for all articles, but the WordPress option is set to allow them. I don't know why the comment form is disabled.

    I'm receiving a lot of warnings like the next one. I'm thinking my situation is related to jetpack plugin. Jetpack Comments module is not activated.

    PHP Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'jpcarousel_auto_close_comments' was given in .../httpdocs/wp-includes/plugin.php on line 199

    Thank you for any useful reply!


  2. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

    Posted 2 years ago #

    Jetpack doesn't include any jpcarousel_auto_close_comments function. Did you, by any chance, try to add a custom function to automatically close comments on the Carousel view as we've explained here:

    If so, could you try to remove that function and see if it helps?

  3. thinkero
    Posted 2 years ago #

    Yes, the warning was generated by the following code:

    function jpcarousel_close_comments() {
    return false;
    add_filter( 'comments_open', 'jpcarousel_auto_close_comments');

    Thank you very much for your help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic