I've been searching through the forums for days, and am still not sure if the problems others are having relate to mine.
pilot project. 72 students, 15 courses, 1.5.2+.
Seemingly at random, students are being asked for the enrolment key to enter a class. They are getting to the class from their front page. My understanding is that means that they are still 'enroled'. But every day, three or four students are asked for their key.
What I've tried.
1. I noticed that some instructors had set their enrolment duration incorrectly (the common misunderstanding that it meant duration for enrolment as opposed to duration OF enrolment) I adjusted all of these.
2. I've added a bit of code to the moodlelib.php to stop any unenrolment from the courses (I can't even do it now) still, students are being asked for their key.
Apologies if this seems completely obvious, I was just wondering whether you've checked the longtimenosee variable in Administration >> Configuration >> Variables?
(yip, the old longtimenosee was checked several times, but makes sense to ask anyway, i've done sillier things let me tell you)
So lets imagine for a second that those manual (vs. internal) enrolments are what's causing me the trouble. The only proof i have at the moment is coincidence.
Pro - Out of 206 entries, 8 are manual enrolment and they are in the two classes that i've been having trouble.
Con - unfortunately, those students aren't the only ones having trouble. I've found other students that have been asked for their enrolment keys who are not currently listed as manual enrolments.
Explanations - in order to make room for the sencond incidence, the manual enrolment would have to either be toggling for some reason, or it would create a course-wide confusion in the system resulting in the enrolment key issue.
Course of Action - Today i'm going to look for evidence of toggling. If i find none (this morning so far, same students as yesterday) then i will assume that it is a course-wide disruption due to some enrolment irregularity and will change manual to internal in the mdl_usr_student enrol field
Hopefully someone smarter will tell me what I should do before that happens... if not, i'll let you know how it goes.
Just wondering whether students who enrolled when the duration was set incorrectly need to re-enrol for the correct duration to be picked up?
Have you tried choosing random students and logging in as them from their profile pages? I often do so to check course enrolments are working correctly.
What is the "Enrollment duration" set to?
I'm having excatly the same problem with our Moodle 1.5.2 . Two courses this far have had this kind of problems.
Students have added themselfs to these courses.
Could this be related to fields: timestart, timeend in table mdl_user_students? Some of the students including the newest drop out has got values in these fields. Others have these set to 0.
What are those fields for?
This must then be the issue. Some students on the course has these values set other than 0 (course enrolement period is unlimited).
This must be casued by the fact that teacher _changed_ the enrolment perido time _after_ students had added themselfs to the course?
ok. then time goes by (lets say 8days enrollment period) 8 days and students which had added themselfs to the course before teacher changed the enrolment period to unlimited get knocked out from the course.
Not sure what happens when student adds himself to the course again? Maybe he/she will stay on the course unlimited time after second try? OR does it remember the old enrolment period which affected this student?
The enrolment information is loaded when user logs on or trying to enrol some other course. So even when the time comes the user will get unenrolled when re-logins rather than immediately. But anyway they will get knocked out after the period.
If the student is already enrolled there are no way to enrol again. But if the student enrol himself/herself again after get knocked out and while the course enrolment duration is set to unlimited, he/she will get enrolled for a unlimited time.
Is this a bug or an feature? I really think that, If you change the enrol period it should affect all the students. Not, just the students who are enrolled after the change is made.
In the future release of moodle (1.6 I suppose) there is a feature that you can extend a student's enrolment period. This feature would explicitly overturn your point.
But you are also right. I think we might need an option in the course settings to say, reset all user's enrolment time when enrolment duration is changed.
I guess this topic is long closed (I found it in google)
you said that you added some code to stop unenrolments, then stopping yourself also. There is an option in Administration so you can stop students from unenroling without enposing the same restriction on yourself.