Also I notice that on the back end if I edit that course page the box saying “allow comments” is turned off. I clicked on “allow comments” and when i update the page it is unchecked again.. not sure if this is interlinked?
Yes, this is linked. Appreciate your ability to find the issue
Okay, that's strange that it is not working only for one course
Use this code and add in wp-admin > Plugins > editor > select wplms customizer plugin > wplms-customizer.php
add_action('init',function(){
wp_update_post(array('ID'=>2927,'comment_status' => 'open'));
});
please change the ” 2927 ” with the course id in above code.
Then check again if the issue is fixed or not