Major problem with activity completion

Major problem with activity completion

by Stephanie Worden -
Number of replies: 16

I am using Moodle Version 4.0.1 (Build: 20220509), Windows 11 operating system, PHP version 8.0.30, database is MariaDB.  Moodle was originally installed using Softaculous, but has not been used since.

We have recently discovered that although Moodle says that ALL conditions must be met for the quiz activity to be marked as complete (this completion unlocks the next lesson in our setup), using my test account I have discovered that if I view quiz and attempt it, even though I have not met all of the conditions (did not receive a passing grade), the activity is being marked as complete and the next lesson is unlocked.

Is this fixed in a later update? I know I have a few to install, but I didn't know if this was a known issue that had already been fixed in later updates.

Activity completion settings

Average of ratings: -
In reply to Stephanie Worden

Re: Major problem with activity completion

by Shirley Gregorczyk -
Picture of Particularly helpful Moodlers
Try deselecting the student must view this activity to complete it (view it and completion is achieved) and the student must receive a grade to complete this activity (this indicates Fail or Pass are valid) There have been many posts over various forum describing this issue.
Kind Regards
In reply to Shirley Gregorczyk

Re: Major problem with activity completion

by Stephanie Worden -
I did deselect the must view activity to complete, but the problem still happened.

I will look through the forums again.  The ones I found didn't address this issue, but I must have missed the ones you are referring to.
In reply to Stephanie Worden

Re: Major problem with activity completion

by AL Rachels -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
You have to deselect Receive a grade. When it is selected, ANY, grade qualifies for completion. If you want to require a passing grade, make sure it is the only one of the two selected.
In reply to AL Rachels

Re: Major problem with activity completion

by Stephanie Worden -
 Yes, but with my current version if I deselect must receive a grade, it greys out must receive a passing grade. I believe I need to update Moodle first, but then I will definitely be doing this. Thanks!
In reply to Stephanie Worden

Re: Major problem with activity completion

by Shirley Gregorczyk -
Picture of Particularly helpful Moodlers
The most recent one I bumped into on the SCORM forum https://moodle.org/mod/forum/discuss.php?d=446207
You must only deselect the student must receive a grade to complete this activity (this indicates Fail or Pass are valid).

If Student must receive a Passing grade to complete the course - that is the only condition that should be selected.
Kind Regards
In reply to Shirley Gregorczyk

Re: Major problem with activity completion

by Stephanie Worden -
So, I've been able to get Moodle upgraded to Version 4.2.2+ (Build: 20230920), but the problem still exists. I can uncheck the "Must view" requirement, but if I uncheck the "Must receive a grade" requirement, the "Must receive a passing grade" requirement is immediately greyed out. They are not independent of each other, and in my test account, I was able to unlock the next lesson with a failing grade on the quiz.
Average of ratings: Useful (1)
In reply to Stephanie Worden

Re: Major problem with activity completion

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

It's best to install the latest update to see if the problem still occurs before posting. I'm not aware of this specific issue but Moodle 4.0 was released nearly 1.5 years ago so there have been a lot of fixes since.

Trying this with Moodle 4.0.9 the completion conditions should be displayed to the student:

Quiz activity instance showing completion criteria, To do: View; Receive a grade; Receive a passing grade

As far as I can see the student must pass all conditions to complete the activity. Just viewing it, or getting a failing grade, will not complete the activity:

Quiz activity instance showing completion criteria Done: View; Receive a grade, Failed: Receive a passing grade

Passing the quiz in a re-attempt would finally complete all conditions to complete the activity:

Quiz activity instance showing completion criteria, Done: View; Receive a grade; Receive a passing grade

Are you seeing this feedback as a student? The activity should not be marked as complete until each condition shows Done.

Could it be that the unlocking of the next lesson is configured incorrectly? How are you achieving that?

(Given the other replies, I may have misunderstood the question).

In reply to Leon Stringer

Re: Major problem with activity completion

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

My mistake, I think AL is correct. If both Student must receive a grade to complete this activity and Student must receive a passing grade to complete this activity are selected then failing the quiz marks the student as Completed (did not achieve pass grade).

If you're using an access restriction to only show other activities upon quiz completion than these will get shown if both conditions are selected and the student fails the quiz.

In reply to Leon Stringer

Re: Major problem with activity completion

by Shirley Gregorczyk -
Picture of Particularly helpful Moodlers
It would probably be helpful if the Activity Completion documentation provided a detailed description of what each expected results from each selected condition (checkbox).
In reply to Shirley Gregorczyk

Re: Major problem with activity completion

by Stephanie Worden -
It would be helpful. And when I click on the ? next to "Completion tracking", it STILL says that ALL conditions must be met for the activity to be marked complete, but this is obviously not true.
In reply to Leon Stringer

Re: Major problem with activity completion

by Stephanie Worden -
So, I've been able to get Moodle upgraded to Version 4.2.2+ (Build: 20230920), but the problem still exists. I can uncheck the "Must view" requirement, but if I uncheck the "Must receive a grade" requirement, the "Must receive a passing grade" requirement is immediately greyed out. They are not independent of each other, and in my test student account, I was able to unlock the next lesson with a failing grade on the quiz. Yes, I am seeing what you show in the first picture for Quiz 1.
In reply to Leon Stringer

Vs: Re: Major problem with activity completion

by Ari Moilanen -

I've run into the same problem that appeared in this thread. When we discovered the problem, we were running the 4.1.8+ version. We updated it to the latest 4.1.9 (Build: 20240212). But still the problem occurs.

Tell me if I have misunderstood the conditions.


According to my logical understanding.

1. condition requires that the student open the quiz. We do not want to use this condition in this case.

2. condition is fulfilled when the student receives a grade, failed or passed.

3. condition is fulfilled when the student receives a passing grade (this condition requires the 2. condition to be selected, otherwise it will be grayed out).

4. condition is an additional condition  (OR-operator) to the previous one (3. condition), which overrides the 3. condition when the required attempts  have been used.

5. condition requires that the number of attempts set in the condition has been used, e.g. if the number is set to 10, the "Completed" status will not be reached on the first attempt, even if the grade is above the pass limit. So all 10 attempts are required before getting n "Completed" status.


Under the above conditions, the test student cannot unlock to the second Lesson (Topic 2) even though he has done 2 available attempts according to the 4. condition (both are failed grades).


However, in my opinion, this should be completed according to the conditions and thus receive the "Completed" status.


But he sees a red mark in the required conditions, which apparently prevents access to another tab (Topic 2).


In reply to Ari Moilanen

Re: Vs: Re: Major problem with activity completion

by Ari Moilanen -
We have had this functionality in use without problems for several years since version 3.9. In the 4.1.x version, this has worked very well since the migration (summer 2023) until January 16, 2024, when we updated to the 4.1.8+ version. After this the problem has occurred.
In reply to Stephanie Worden

Re: Major problem with activity completion

by Bob Gilmore -
I can only test on 4.2.2+ but this is working correctly for me. 


Can you check that the restricted activity is set correctly to use [activity] Must be complete with passing grade:


In reply to Bob Gilmore

Re: Major problem with activity completion

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
I'm struggling with this too, Moodle 4.1.6 for example. I don't want three separate flags, View, Receive a grade and Receive a passing grade, cluttering the course homepage. Receive a passing grade contains all of that. But I am unable to set the quiz that way.

Talking of quiz, I don't know whether this is an issue with the Quiz activity or a general one. (We are in the General help forum.)

Average of ratings: Useful (2)