Enable comments/review bug

Home Forums Legacy Support Support queries How-to & Troubleshooting Enable comments/review bug

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #225457
    iliasoftware
    Spectator
    Steps to receate the bug: 1.go to lms course page in backend https://eforensicsmag.com/wp-admin/post.php?post=52425&action=edit
    1. click publish

    2. 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

    #225458
    iliasoftware
    Spectator
    This reply has been marked as private.
    #225459
    iliasoftware
    Spectator
    This reply has been marked as private.
    #225538
    logan
    Member

    Hello,

    please follow these steps

    1. Please deactivate all installed 3rd party plugins(leave wplms plugins activated).
    2. Delete browsers cache especially cache plugin.
    3. Re-save permalinks

    if above does not work only then Share page URL and admin credentials in a private reply with proper screenshots.

    #225630
    iliasoftware
    Spectator
    all plugins deactivated and all cache off. The bug still there
    #225668
    iliasoftware
    Spectator
    This reply has been marked as private.
    #225807
    logan
    Member
    This reply has been marked as private.
    #226261
    iliasoftware
    Spectator
    This reply has been marked as private.
    #226283
    logan
    Member

    Hello,

    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'));

       }

    });

    #226311
    iliasoftware
    Spectator
    This reply has been marked as private.
    #226593
    logan
    Member
    Hello, 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.
    #226622
    iliasoftware
    Spectator
    there 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 above
    #226623
    iliasoftware
    Spectator
    its not related to wordpress, wordpress posts works normally, its related to wplms custom type posts "course"
    #226750
    Mk
    Moderator
    I 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/p86l3u
    #226806
    iliasoftware
    Spectator
    ok thanks for the workaround
Viewing 15 posts - 1 through 15 (of 16 total)
  • The topic ‘Enable comments/review bug’ is closed to new replies.