afflight
asked 6 years ago

After upgrading to 1.5.5, I keep getting the following error when trying to add comments to any answer: 
Sorry, comments are closed for this item.
Have you seen this before?

3 Answers
DominicStaff
answered 6 years ago

Please send me username & password of your site for further checking.

DominicStaff
answered 6 years ago

In this case, you can add the following code to the functions.php file in your theme folder. 

add_action(‘dwqa_before_single_question_comment’, ‘remove_action_jetpack_comment’);
function remove_action_jetpack_comment(){
remove_action( ‘comment_form_before’, array( Jetpack_Comments::init(), ‘comment_form_before’ ));
remove_action( ‘comment_form_after’, array( Jetpack_Comments::init(), ‘comment_form_after’ ), 1);
remove_action( ‘pre_comment_on_post’, array( Jetpack_Comments::init(), ‘pre_comment_on_post’ ), 1 );
remove_action( ‘comment_post’, array( Jetpack_Comments::init(), ‘add_comment_meta’ ) );
}

afflight
answered 6 years ago

Reverting back to 1.4.2.2 seems to work

Dominic Staff
replied 6 years ago

I sent and notified to our technical team about this issue, we will check it.

afflight
replied 6 years ago

Any update on this? Still doesn’t work in 1.5.6

Dominic Staff
replied 6 years ago

Please send me your FTP account for further checking, I have tested on our demo theme and the code working fine.

Powered by DW Question & Answer Pro