Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Enable comments/review bug
- This topic has 15 replies, 3 voices, and was last updated 4 years, 7 months ago by logan.
-
AuthorPosts
-
September 10, 2019 at 5:03 pm #225457iliasoftwareSpectatorSteps to receate the bug: 1.go to lms course page in backend https://eforensicsmag.com/wp-admin/post.php?post=52425&action=edit
- click publish
- even though the "allow comments" checkbox is selected it will always get deactivated after Publish
The only way to allow commnets is to use wordpress option with "Quick Edit" -> allow comments
September 10, 2019 at 5:04 pm #225458iliasoftwareSpectatorThis reply has been marked as private.September 10, 2019 at 5:06 pm #225459iliasoftwareSpectatorThis reply has been marked as private.September 11, 2019 at 11:26 am #225538loganMemberHello,
please follow these steps
- Please deactivate all installed 3rd party plugins(leave wplms plugins activated).
- Delete browsers cache especially cache plugin.
- Re-save permalinks
if above does not work only then Share page URL and admin credentials in a private reply with proper screenshots.
September 12, 2019 at 7:30 am #225630iliasoftwareSpectatorall plugins deactivated and all cache off. The bug still thereSeptember 12, 2019 at 11:41 am #225668iliasoftwareSpectatorThis reply has been marked as private.September 13, 2019 at 9:53 am #225807loganMemberThis reply has been marked as private.September 17, 2019 at 6:18 am #226261iliasoftwareSpectatorThis reply has been marked as private.September 17, 2019 at 7:32 am #226283loganMemberHello,
add this code in your customizer.php
Please paste this snippets in your wp-admin >> plugins >> editor >> wplms-customizer plugin >> wplms-customizer.php
Or in
Please add this code in your wplms-customizer.php file in wplms customizer plugin by using your FTP/SFTP/cpanel:
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'));
}
});
September 17, 2019 at 9:08 am #226311iliasoftwareSpectatorThis reply has been marked as private.September 18, 2019 at 1:34 pm #226593loganMemberHello, Please deactivate cache plugin and cookies of the browser then check if it works because i have pasted the same code for another user and that is working fine.
also, this is related to the Wordpress, you could search over the internet about this issue.September 18, 2019 at 2:18 pm #226622iliasoftwareSpectatorthere is no caching on the site, cookies are clean, used incognito mode. The bug is still there. http://eforensics.staging.wpengine.com/wp-admin/post.php?post=52425&action=edit please share a video where you enable comments in the link aboveSeptember 18, 2019 at 2:19 pm #226623iliasoftwareSpectatorits not related to wordpress, wordpress posts works normally, its related to wplms custom type posts "course"September 19, 2019 at 11:05 am #226750MkModeratorI applied the above code. it has enabled comment in your course. It was an issue from WordPress and we are enabling comment forcefully by changing functionality in WordPress. we manage to enable comment in the frontend, now it doesn't depend on backend setting. here is proof that it has been enabled forcefully in frontend. Refer: http://prntscr.com/p86l3uSeptember 19, 2019 at 3:59 pm #226806iliasoftwareSpectatorok thanks for the workaround -
AuthorPosts
- The topic ‘Enable comments/review bug’ is closed to new replies.