• Resolved ozoebi

    (@ozoebi)


    Critical Error in Tutol LMS i cant see the LMS Dashboard when i click in Tutor LMS only shows de advertising to buy the Pro Vertion and nothing more.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter ozoebi

    (@ozoebi)

      Hi @ozoebi ,

      Thank you for reaching out. I’m sorry to hear that you’re experiencing a critical error with Tutor LMS and unable to access the LMS Dashboard. Let’s try the following steps to troubleshoot and resolve the issue:

      • Check for Plugin Conflicts:
        • Please deactivate all other plugins except for Tutor LMS and see if the dashboard appears. If it does, reactivate the plugins one by one to identify the conflicting plugin.
      • Check Theme Compatibility:
        • Switch to a default WordPress theme (e.g., Twenty Twenty-One) and see if the issue persists. If the dashboard appears, there may be a conflict with your current theme.
      • Enable WordPress Debug Mode:
        • Add the following lines to your wp-config.php file to enable debugging:
      define('WP_DEBUG', true); 
      define('WP_DEBUG_LOG', true);
      define('WP_DEBUG_DISPLAY', false);

      Check the wp-content/debug.log file for any error messages that could provide more insight into the issue.

      • Update Tutor LMS:
        • Ensure you have the latest version of Tutor LMS installed. Updating the plugin can sometimes resolve issues.
      • Reinstall Tutor LMS:
        • Deactivate and delete the Tutor LMS plugin.
        • Reinstall the plugin from the WordPress repository.

        If the issue persists after following these steps, please let me know. We may need to explore further troubleshooting steps or involve the Tutor LMS support team for additional assistance.

        Thank you for your patience and cooperation.

        Best regards,
        Dip Saha

        Thread Starter ozoebi

        (@ozoebi)

        Thanks for the answer i just tried all the steps and still with the same issue, was not fixed with any of the steps.

        Hello @ozoebi,

        Please add the following code to your theme’s functions.php file.

        $instructor_role = tutor()->instructor_role;
        remove_role($instructor_role);
        add_role( $instructor_role, __('Tutor Instructor', 'tutor'), array() );

        $custom_post_type_permission = array(
        //Manage Instructor
        'manage_tutor_instructor',
        //Tutor Posts Type Permission
        'edit_tutor_course',
        'read_tutor_course',
        'delete_tutor_course',
        'delete_tutor_courses',
        'edit_tutor_courses',
        'edit_others_tutor_courses',
        'read_private_tutor_courses',
        'edit_tutor_courses',
        'edit_tutor_lesson',
        'read_tutor_lesson',
        'delete_tutor_lesson',
        'delete_tutor_lessons',
        'edit_tutor_lessons',
        'edit_others_tutor_lessons',
        'read_private_tutor_lessons',
        'edit_tutor_lessons',
        'publish_tutor_lessons',
        'edit_tutor_quiz',
        'read_tutor_quiz',
        'delete_tutor_quiz',
        'delete_tutor_quizzes',
        'edit_tutor_quizzes',
        'edit_others_tutor_quizzes',
        'read_private_tutor_quizzes',
        'edit_tutor_quizzes',
        'publish_tutor_quizzes',
        'edit_tutor_question',
        'read_tutor_question',
        'delete_tutor_question',
        'delete_tutor_questions',
        'edit_tutor_questions',
        'edit_others_tutor_questions',
        'publish_tutor_questions',
        'read_private_tutor_questions',
        'edit_tutor_questions',
        );
        $administrator = get_role( 'administrator' );
        if ( $administrator ) {
        $administrator_cap = array (
        'manage_tutor',
        );
        $administrator_cap = array_merge($administrator_cap, $custom_post_type_permission);
        $administrator_cap[] = 'publish_tutor_courses';
        foreach ($administrator_cap as $cap){
        $administrator->add_cap( $cap );
        }
        }

        Please try this step and let us know if the issue persists.

        Best regards,

        Mohammad Nafiz

        Thread Starter ozoebi

        (@ozoebi)

        Thanks Mohammad with this code i solve the issue, Why i had this error? and why this code was the answer?

        dear @ozoebi,

        This approach resolves access issues and ensures that user roles have the appropriate permissions to interact with Tutor LMS effectively.

        • This reply was modified 7 months, 3 weeks ago by Laura.

        Hello @ozoebi,

        I’m glad to hear that the provided code resolved your issue! Let me explain why this problem occurred.

        The critical error you encountered and the inability to see the LMS Dashboard were likely due to a permissions issue. WordPress uses a system of roles and capabilities to control what users can and cannot do on your site. Each role (like Administrator, Editor, Instructor, etc.) has a set of capabilities assigned to it.

        In your case, it seems that the necessary permissions for the Tutor LMS plugin were either missing or improperly configured for your user role. This resulted in the dashboard being inaccessible and only showing the advertisement for the Pro version.

        If you have any further questions or encounter any other issues, please feel free to reach out!

        Best regards,

        Mohammad Nafiz

      Viewing 7 replies - 1 through 7 (of 7 total)
      • The topic ‘Critical Error in Tutor LMS’ is closed to new replies.