WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. thinkero
    Member
    Posted 7 months 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!

    http://wordpress.org/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 7 months 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:
    http://jetpack.me/2013/08/20/automatically-close-comments-carousel/

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

  3. thinkero
    Member
    Posted 7 months 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!

Reply

You must log in to post.

About this Plugin

About this Topic