• Resolved Nikki Blight

    (@kionae)


    I’ve run into an issue where, when a user completes the last lesson of a course (thus completing the course), the course does not update to show the correct completed date under Learner Management. Instead, it displays the value from Date Started.

    I’ve tried this with both bulk imported users and users that have individually registered for the course, with the same result for both. I’ve found that if I change line 1954 in includes/class-sensei-utils.php from

    'keep_time' => true,

    to

    'keep_time' => false,

    the Completed Date updates correctly (it appears that the $status variable for the course is coming through as ‘completed’ when the update fires instead of being ‘in-progress’ and updating to ‘completed’, which would in turn correctly update the timestamp), but I have no idea what this could potentially break elsewhere in the plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Nikki Blight

    (@kionae)

    Just as an update, after updating to 3.13.3, the issue persists, but the problematic code has moved to line 1980. Same change still fixes the issue.

    Gaurav

    (@gaurav984)

    Hi Nikki,

    Thanks for reporting the issue. I tried replicating it on my test website but was not successful.

    On the Sensei LMS > Learner Management page in WordPress Admin data for both Date Started and Date Completed is getting registered properly. Both show separate dates for when the learner started taking the course and when they completed it.

    It’s possible that there might be a conflict with one of your current plugins or your theme.

    Try disabling all of your plugins except Sensei LMS (and extensions). Then try testing again to see if the issue persists. If that resolves your issue, you can find what was causing it by enabling each plugin one by one while continuing to test.

    If that doesn’t help, you can also try switching to the Twenty Twenty theme via Appearance > Themes, and test again. If the issue is resolved then you know it’s a problem with the theme, and you’ll need to contact the theme author for further assistance.

    Let us know how it goes.`

    Thread Starter Nikki Blight

    (@kionae)

    The site in question literally only uses Sensei and a couple of its extensions (though I did try disabling all of them and running only the main Sensei plugin. Same result.), plus iThemes Security (which is only active on the live site. I’m seeing the issue both live and in my dev environment). It’s an in-house company training website, so it’s pretty minimal. It IS running on WordPress as part of a multisite, though. That’s really the only unusual thing about it.

    Changing to the default them had no effect.

    Plugin Support Jay

    (@bluejay77)

    Hi @kionae,

    I am sorry for the late reply here. I was able to reproduce this issue on the default theme Twenty Twenty, so we’re taking a closer look to investigate further.

    We’ll let you know as soon as we find out more. Thank you for your patience.

    Plugin Support Jay

    (@bluejay77)

    Hi @kionae,

    Thanks again for your report here. Our developer took a closer look and confirmed the reproducible bug, and we created an open GitHub issue here:

    https://github.com/Automattic/sensei/issues/4537

    I’ll mark this thread resolved for now. Feel free to contribute to the GitHub thread above regarding this bug!

    Many Thanks,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Course Completed Date not updating’ is closed to new replies.