• When I try to reset course for a particular user, the reset does not work. I simply check the console and found the following unexpected response

    SELECT * FROM wp_learnpress_user_items WHERE item_type = ‘lp_course’ AND item_id = 48495 AND user_id = 1106 SELECT * FROM wp_learnpress_user_items WHERE parent_id = 118974 DELETE FROM wp_learnpress_user_itemmeta WHERE learnpress_user_item_id IN(118974) DELETE FROM wp_learnpress_user_items WHERE user_item_id IN(118974) SELECT * FROM wp_learnpress_user_items WHERE item_type = ‘lp_course’ AND item_id = 48495

    The user could not see the new enroll button: Only the following message

    This content is protected, please enroll course to view this content!
    There is no enroll button even after login.

    • This topic was modified 3 years, 10 months ago by Mawia HL.
    • This topic was modified 3 years, 10 months ago by Mawia HL.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Mawia HL

    (@mawiahl)

    It did reset the course for a user but the user can no longer enroll in the course. The user keeps seeing the error:
    This content is protected, please enroll course to view this content!

    I duplicated the course and now the user could enroll it again. So the error is still there.

    Hi @mawiahl

    Because you don’t enable option Auto Enroll so student need click enroll button again to can learn your course

    Thread Starter Mawia HL

    (@mawiahl)

    But the enroll button is no longer there. Only the message is there. That’s the main issue. Looking at the code, the enroll button should appear, but it is missing. I hope you can fix this issue. I have a lot of complaint from my students.
    learn_press_course_enroll_button(); does not work after resetting a course for a user.
    Even after enabling the auto enroll feature, the problem is still there. Looks like this is a bug, algorithm error.

    • This reply was modified 3 years, 10 months ago by Mawia HL.
    • This reply was modified 3 years, 10 months ago by Mawia HL.

    hi @mawiahl

    The function Reset item progress for a user only work with the ID of quiz or lessons, not for course, please see here https://prnt.sc/x38hyn. we will update a new version to allow reset course for a user in next version

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Course reset not working for user’ is closed to new replies.