Course Completion doesn't work

Course Completion doesn't work

by Artyom Aristov -
Number of replies: 10

Hello. I am using Moodle 3.6.3+ (Build: 20190501) and I am experiencing very strange problem. The problem is that when the person completes the all entire activity in the course the course completion status for him is not being changed to "completed" state.


For example I have a course with only one activity attached (SCORM package). The SCORM package works as-is: sending score to the system and the completion status. Course completion and Activity completion already set in the settings. 

Course completion: 

Activity completion (for that one example package): 


I have also checked that the cron is running, I already set it up and it runs every 2 minutes. Here's the screenshot of some part of the "Scheduled Tasks" page:


On the forums I read that the problem could lay in the tasks like "completion_daily_task" and "completion_regular_task". But despite I change to run it every minute the current problem isnt being resolved. And still the course is not marked as completed. Waited for 1 day after the completion of an acitivity, checked all completion settings millions of times and still no luck.

Here's the cron log in the "Attachments". But i didnt find anything wrong there.

Maybe I miss something... Point me, please sad I really dont know whats causing this. 

(I am sorry if the translations on the screenshots are misleading, I had to use translator, because my platform's language is different.)

Average of ratings: -
In reply to Artyom Aristov

Re: Course Completion doesn't work

by Artyom Aristov -
Anybody? грущу
In reply to Artyom Aristov

Re: Course Completion doesn't work

by Artyom Aristov -
Okay, here is one more additional information. As you can see there is a score that satisfies condition of the activity. And somehow in the completion status the reaching grade isnt marked as "completed".

In reply to Artyom Aristov

Re: Course Completion doesn't work

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
Hello Artyom smile I am sorry I can't give more help but as your course is SCORM I am going to move it to the SCORM forum to see if you get help there from SCORM specialists.
In reply to Artyom Aristov

Re: Course Completion doesn't work

by Melanie Scott -
Picture of Particularly helpful Moodlers

I don't know that most scorms report both complete and passed.  In my experience, it is typically one or the other.  I could be wrong but I've been using scorms for a long time.

Look in your student scorm reports. Click the specific attempt for the user.  What is showing up? If it says completed, keep the completed criteria. If it says passed, keep the passed criteria.  Is it possible to get a score of 7 and not pass/complete? I used to bypass completed/passed and just focus on the score.

It kind of depends on what authoring tool you use and your scorm settings in that tool as well, which is probably why you haven't gotten much feedback.

Average of ratings: Useful (1)
In reply to Melanie Scott

Re: Course Completion doesn't work

by Artyom Aristov -

Hello, Melanie. Thank you for suggestions. I tried to keep different completion criterias in both ways (scorm: passed, activity settings: passed; scorm: completed, activity settings: completed) and for sure it tells me that activity is passed/completed (but despite that course still not marked as complete). When I check the activity completion status it gives me an info that I am "Not attempted". How? By the settings I passed all requirements. And very odd thing: when I remove the "cmi.core.lesson_status" from my SCORM package, the score and other values like "cmi.core.score.min", "cmi.core.score.max" are not registered in the attempt report and it tells me also that score is 0 but the real one is 7.  So here I used in SCORM package lesson_status=passed, put in activity settings as completion criteria "passed" w/out score criteria. Here are the results:

 - activity marked as completed...

- it looks like all things are okay, but... next are more different


I am out of ideas. Just for notice, I did the SCORM package in Construct 2 using the plugin ScormC2. Thanks for attention.

In reply to Artyom Aristov

Re: Course Completion doesn't work

by Artyom Aristov -

And although it shows 100 percent, in fact, the course does not end.


In reply to Artyom Aristov

Re: Course Completion doesn't work

by Melanie Scott -
Picture of Particularly helpful Moodlers

I don't know what to tell you. I've never seen it do anything like that before. Maybe it has something to do with Construct? That's a new one to me. I did some searching and that version is kind of old.  The 3 version was released as stable 2 years ago.

Some of the posts about scorm plugins for it sound like maybe they are a bit fidgety?

In reply to Melanie Scott

Re: Course Completion doesn't work

by Artyom Aristov -

I dont think it is something to deal with the Construct. I uploaded my SCORM package to the SCORM Cloud and checks gave me the results that its okay. 

Here's also SCORM log if you are interested to look in:

[22:12:39.788] Beginning prerequisites evaluation of activity B0
    [22:12:39.788] Beginning prerequisites evaluation of activity B0
    [22:12:39.788] Beginning prerequisites evaluation of activity A0
[22:13:20.858] LMSInitialize('') returned 'true' in 0.001 seconds
    [22:13:20.859] LMSGetLastError() returned '0' in 0 seconds
[22:13:20.859] LMSGetValue('cmi.core.lesson_status') returned 'not attempted' in 0.001 seconds
    [22:13:20.860] LMSGetLastError() returned '0' in 0.001 seconds
[22:13:20.861] LMSSetValue('cmi.core.lesson_status', 'incomplete') returned 'true' in 0.007 seconds
[22:13:20.868] LMSCommit('') returned 'true' in 0 seconds
[22:13:20.869] LMSSetValue('cmi.core.score.min', '0') returned 'true' in 0 seconds
[22:13:20.869] LMSSetValue('cmi.core.score.max', '7') returned 'true' in 0 seconds
[22:13:20.870] LMSSetValue('cmi.core.score.raw', '0') returned 'true' in 0 seconds
[22:13:20.871] LMSGetValue('cmi.core.lesson_status') returned 'incomplete' in 0 seconds
    [22:13:20.871] LMSGetLastError() returned '0' in 0 seconds
[22:13:20.871] LMSCommit('') returned 'true' in 0 seconds
    [22:13:21.023] Beginning prerequisites evaluation of activity B0
    [22:13:21.023] Beginning prerequisites evaluation of activity B0
    [22:13:21.023] Beginning prerequisites evaluation of activity A0
    [22:13:21.182] Beginning prerequisites evaluation of activity B0
    [22:13:21.182] Beginning prerequisites evaluation of activity B0
    [22:13:21.182] Beginning prerequisites evaluation of activity A0
[22:14:40.976] LMSGetValue('cmi.core.lesson_status') returned 'incomplete' in 0.001 seconds
    [22:14:40.977] LMSGetLastError() returned '0' in 0 seconds
[22:14:44.192] LMSSetValue('cmi.core.score.raw', '1') returned 'true' in 0 seconds
    [22:14:44.344] Beginning prerequisites evaluation of activity B0
    [22:14:44.344] Beginning prerequisites evaluation of activity B0
    [22:14:44.344] Beginning prerequisites evaluation of activity A0
[22:14:44.576] LMSCommit('') returned 'true' in 0 seconds
[22:14:47.868] LMSSetValue('cmi.core.score.raw', '2') returned 'true' in 0 seconds
    [22:14:48.020] Beginning prerequisites evaluation of activity B0
    [22:14:48.020] Beginning prerequisites evaluation of activity B0
    [22:14:48.020] Beginning prerequisites evaluation of activity A0
[22:14:48.274] LMSCommit('') returned 'true' in 0 seconds
[22:14:59.942] LMSSetValue('cmi.core.score.raw', '3') returned 'true' in 0 seconds
    [22:15:00.094] Beginning prerequisites evaluation of activity B0
    [22:15:00.094] Beginning prerequisites evaluation of activity B0
    [22:15:00.094] Beginning prerequisites evaluation of activity A0
[22:15:00.241] LMSCommit('') returned 'true' in 0 seconds
[22:15:15.193] LMSSetValue('cmi.core.score.raw', '4') returned 'true' in 0 seconds
[22:15:15.193] LMSSetValue('cmi.core.lesson_status', 'passed') returned 'true' in 0.002 seconds
    [22:15:15.344] Beginning prerequisites evaluation of activity B0
    [22:15:15.344] Beginning prerequisites evaluation of activity B0
    [22:15:15.344] Beginning prerequisites evaluation of activity A0
    [22:15:15.497] Beginning prerequisites evaluation of activity B0
    [22:15:15.497] Beginning prerequisites evaluation of activity B0
    [22:15:15.497] Beginning prerequisites evaluation of activity A0
[22:15:15.684] LMSCommit('') returned 'true' in 0 seconds
[22:15:20.688] LMSSetValue('cmi.core.score.raw', '5') returned 'true' in 0 seconds
    [22:15:20.840] Beginning prerequisites evaluation of activity B0
    [22:15:20.840] Beginning prerequisites evaluation of activity B0
    [22:15:20.840] Beginning prerequisites evaluation of activity A0
[22:15:21.338] LMSCommit('') returned 'true' in 0 seconds
[22:15:28.624] LMSSetValue('cmi.core.score.raw', '6') returned 'true' in 0 seconds
    [22:15:28.776] Beginning prerequisites evaluation of activity B0
    [22:15:28.776] Beginning prerequisites evaluation of activity B0
    [22:15:28.776] Beginning prerequisites evaluation of activity A0
[22:15:29.202] LMSCommit('') returned 'true' in 0 seconds
[22:15:32.143] LMSSetValue('cmi.core.score.raw', '7') returned 'true' in 0.001 seconds
    [22:15:32.295] Beginning prerequisites evaluation of activity B0
    [22:15:32.295] Beginning prerequisites evaluation of activity B0
    [22:15:32.295] Beginning prerequisites evaluation of activity A0
[22:15:33.180] LMSCommit('') returned 'true' in 0 seconds
[22:15:50.294] OverallSequencingProcess for SCORM 1.1 / SCORM 1.2

Although I tried to set score as the major criteria of the course completion, it still doesnt make sense. Even I get score higher than 4 nothing changes! It says that "Completed: No".


Just in case, if I will enable manual course completion only, without the scorm packages, the course will be able to be finished.  Because of that I just cant continue to develop my project. Due to the limitations of the project I cannot allow manual completion of the course.

No doubt, for me it feels like a bug.

In reply to Artyom Aristov

Re: Course Completion doesn't work

by Artyom Aristov -

Alright. It was a long time since I discovered such thing, I realised to try my SCORM package on the clear Moodle installation. And guess what? It worked fine.

After digging more, I found out that the issue is related to the course itself. When I created a new course on my old instance, applied the same package and passed it, course completion worked fine. So the solution is just to create a new course. That's it!