Home › Forums › Legacy Support › Support queries › Update Issues › Unable to activate comments (reviews) on courses.
- This topic has 15 replies, 4 voices, and was last updated 5 years, 10 months ago by Anshuman Sahu.
-
AuthorPosts
-
February 25, 2017 at 4:12 pm #97579carlosmerSpectatorI can not activate comments on courses so reviews are not display in the course home page. I go to Edit Course, back end, and I check Allow comments, I save settings, and then again Allow comments is unchecked. It only happens with courses. Pages or posts work ok. The only change I can do is go from Checked to Unchecked Allow comments. But not from unchecked to checked because changes won't safe. I have tried everything. I changed all WP discussion settings. I activated WPLMS comments on pages setting. I deactivated all the plugins. I change from Blank Child to WPLMS. Nothing. This is really important because all costumers come to see other people reviews before buying and right now they are not displayedFebruary 25, 2017 at 5:32 pm #97583carlosmerSpectatorOk I was able to activate Courses Comments from All Courses } Go to the course } Quick edit (Not Edit), and activate Comments. I still can not allow comments from Edit Course but I don't really care since from Quick edit it works.February 27, 2017 at 11:04 am #97755Anshuman SahuKeymasterWell this is strange .Can you please share your url of such course and admin credentials to check the issue at your end .August 27, 2018 at 11:49 am #173729chinolzSpectatorHi i have the exact problem, was the issue resolved? the allow comments keeps getting unchecked on publish course. The only way to enable comments is to use quick edit*August 27, 2018 at 1:27 pm #173751Anshuman SahuKeymaster
We have seen such a issue on some sites but could not replicate it on our own test sites .
As a quick fix .Please try adding this code in your wplms-customizer.php file in wplms customizer plugin :
add_action('init',function(){
wp_update_post(array('ID'=>2927,'comment_status' => 'open'));
});
After adding code reload the site and then remove it .
please change the " 2927 " with the course id in above code.August 28, 2018 at 10:10 am #173867chinolzSpectatori dont need a quick fix, i can enable comments using quick edit. What i need is a permanent solution for wplms bug. Each time the course is updated the reviews will be disabled. On the site with multiple courses and users its impossible to remember to "quick fix" the comments everytime something gets updatedAugust 28, 2018 at 12:59 pm #173904Anshuman SahuKeymasterWell as I said we have already spent hours of out time checking this issue on your site but could not find a valid reason behind it and hence the issue was not fixed . We will check it again .Till then please add the code given above and do not remove it .August 29, 2018 at 6:23 am #173999chinolzSpectatorThe code doesnt fix the issue, this happens on all courses not one specific course. And the code given by Diana for global posts not workingAugust 29, 2018 at 11:05 am #174034Anshuman SahuKeymasterOk please remove the above code and try out this one to eable comments on all of your courses whether its turned of or not : add the code in your wplms-customizer.php in wplms customzier plugin : add_action('wplms_after_course_description',function(){ global $post; $post->comment_status="open"; });August 29, 2018 at 11:35 am #174041chinolzSpectatorthe code doesnt workAugust 29, 2018 at 11:37 am #174043chinolzSpectatorThis reply has been marked as private.August 29, 2018 at 12:07 pm #174055chinolzSpectatorok the code bypassed allow comments (its still disabled in backend) however its still showing reviews on front end for now its okAugust 29, 2018 at 12:14 pm #174058chinolzSpectatorplease close the topicAugust 30, 2018 at 2:16 pm #174248Anshuman SahuKeymasterWell the complete code would be this : add_action('wplms_after_course_description',function(){ global $post; $post->comment_status="open"; }); add_action('bp_before_course_body',function(){ global $post; $post->comment_status="open"; }); add_action('wplms_before_start_course',function(){ $course_id = 0; if(isset($_POST) && isset($_POST['course_id'])){ $course_id = $_POST['course_id']; } if(empty($course_id ) && !empty($_COOKIE['course_id'])){ $course_id = $_COOKIE['course_id']; } if(!empty($course_id)){ wp_update_post(array('ID'=>$course_id,'comment_status' => 'open')); } });January 15, 2019 at 6:01 am #192491rajib_chowdhuryParticipantis there any review shortcode i can use. Actually, i want the students to review me once they completely finish an unit or entire course . -
AuthorPosts
- The topic ‘Unable to activate comments (reviews) on courses.’ is closed to new replies.