Moodle

Users cannot make it past course enrollment page. Enrollment is successful, but teacher/student is just looped back to enrollment page and can never view the course.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: 1.7, 1.7.1
  • Fix Version/s: None
  • Component/s: Enrolments
  • Labels:
    None
  • Environment:
    Fedora Core 4, Apache 2.0.54 (Fedora), PHP 5.0.4, mysql 4.1.20

Description

See the forums here: http://moodle.org/mod/forum/discuss.php?d=63664#288653

Students are able to successfully enroll at the enrollment page using a key. (They are listed as students under the course roles.) However, they can never view the course. After enrolling, they are immediately brought back to the enrollment screen again.

The problem is the same for courses with and without keys. Students are able to enroll, then are brought back to the enrolment screen.

The problem is the same even if an administrator/teacher enrolls them in the course. They are still asked to enrol, and upon doing so they are asked to enrol again. and again. and so on...

I have also found it is the same for teachers. When I as an admin add a teacher to a course, they are required to enroll over and over forever, and are never able to view the course page.

Only courses with guest access (no key required) enabled are viewable, and they are only viewable by students and teachers if they are logged out. The "View as guest" button just brings them back to the enroll screen.

I believe it is the same for course creators...

Admins can still view everything.

Issue Links

Activity

Hide
Chad Badiyan added a comment -

Adam,

It sounds like defaultcourseroleid is set to guest. Go to Users -> Permissions -> User Policies and set it to student. That should fix your problem.

Chad

Show
Chad Badiyan added a comment - Adam, It sounds like defaultcourseroleid is set to guest. Go to Users -> Permissions -> User Policies and set it to student. That should fix your problem. Chad
Hide
Adam P. added a comment -

Yes, thanks, it crossed my mind too, however,defaultcourseroleid being set to student does not change this. Same behavior.

Show
Adam P. added a comment - Yes, thanks, it crossed my mind too, however,defaultcourseroleid being set to student does not change this. Same behavior.
Hide
Adam P. added a comment -

in fact, even setting defaultcourseroleid to admin has no effect.

Show
Adam P. added a comment - in fact, even setting defaultcourseroleid to admin has no effect.
Hide
Adam P. added a comment -

It's working now after specifying "View Course" for both guests and students, so I don't think this is a bug. Howevever I don't understand why it should be necessary to specify this; it should be default..

Show
Adam P. added a comment - It's working now after specifying "View Course" for both guests and students, so I don't think this is a bug. Howevever I don't understand why it should be necessary to specify this; it should be default..
Hide
Monique Anthony added a comment -

Even after specifying "View Course" for both guests and students, students still cannot view the course.

Having enrolled at the enrollment page using a key, the enrollment page just remains stuck in a perpetual loop.

defaultuserroleid has been set to student to allow students to be able to view courses. However, having set this option, anyone logged into moodle has access to all available courses in moodle and there is no need for an enrollment key.

Show
Monique Anthony added a comment - Even after specifying "View Course" for both guests and students, students still cannot view the course. Having enrolled at the enrollment page using a key, the enrollment page just remains stuck in a perpetual loop. defaultuserroleid has been set to student to allow students to be able to view courses. However, having set this option, anyone logged into moodle has access to all available courses in moodle and there is no need for an enrollment key.
Hide
Joe Griffin added a comment -

Also linked to another one that8379 is l inked to. Seems like this has not been resolved although it has been around for a while.

Show
Joe Griffin added a comment - Also linked to another one that8379 is l inked to. Seems like this has not been resolved although it has been around for a while.
Hide
Jamie Tinley added a comment -

Solved! Here is the setup that worked for me: I know this is long but better than a short solution that does not explain it or other things to try.

1. Site level: users/permissions/user policies and changing default roles for:

All users: authenticated

Users in a course: Student (this was the kicker, without it, it returns them endlessly to key request but never lets them in. )

Note: My visitors and guests are both are set as guests

2. Site level: users/permissions/define roles Here, changing it will negate solution above which I had to change back for above settings to work.

Student: view course (set as default)

Guest: view course (set as default)

Authenticated user: Not Set. Keep it that way or all users above allows them to see all courses and does not ask for a key.

Course/settings

Default role: Student NOT authenticated user.

Enrollment key if desired,

My links/sources which you can also try if above does not work for you

discussion only:

http://moodle.org/mod/forum/discuss.php?d=79744

*suggestion, 'Only way round this is to allow students extra permissions such as inspector' which no one figured out what he meant.

*check in course enrollments are allowed

*try changing course key [did not help]

*allow guests with a key [did not help me but worked for one]

tracker:

http://tracker.moodle.org/browse/MDL-8379

*It seems that if you reload the mdl_role_capabilities table the whole enrolment process starts to work again fine, I have attached a default copy of said table, I hope this helps out a little.

[I never figured out what he meant or how to reload a role]

duplicate issue 2

http://tracker.moodle.org/browse/MDL-8403;jsessionid=23929BD26F677F22E07B1E79E61FC240

*It sounds like defaultcourseroleid is set to guest. Go to Users -> Permissions -> User Policies and set it to student. That should fix your problem. [this got me thinking]

*It's working now after specifying "View Course" for both guests and students, so I don't think this is a bug. Howevever I don't understand why it should be necessary to specify this; it should be default. [already set by default unless you changed it - messed me up when I applied it to authenticated users]

duplicate issue 3

http://tracker.moodle.org/browse/MDL-11520

*suggested allow guests in without key which I did not desire

If my solution does not work for you, try using excel and use each of the variables below going down and then what values you choose for each scenario. Write what effect you see and change just one at a time. This helped me solve the problem and reproduce it to be sure.

Effect notes at top of each column

site default role user

site default role for students in a in course

site define student role able to view courses

site define guest role to view courses

site define authenticated user to view courses

Course default role

Enrollment key required

allow guests in

Good Luck

Show
Jamie Tinley added a comment - Solved! Here is the setup that worked for me: I know this is long but better than a short solution that does not explain it or other things to try. 1. Site level: users/permissions/user policies and changing default roles for: All users: authenticated Users in a course: Student (this was the kicker, without it, it returns them endlessly to key request but never lets them in. ) Note: My visitors and guests are both are set as guests 2. Site level: users/permissions/define roles Here, changing it will negate solution above which I had to change back for above settings to work. Student: view course (set as default) Guest: view course (set as default) Authenticated user: Not Set. Keep it that way or all users above allows them to see all courses and does not ask for a key. Course/settings Default role: Student NOT authenticated user. Enrollment key if desired, My links/sources which you can also try if above does not work for you discussion only: http://moodle.org/mod/forum/discuss.php?d=79744 *suggestion, 'Only way round this is to allow students extra permissions such as inspector' which no one figured out what he meant. *check in course enrollments are allowed *try changing course key [did not help] *allow guests with a key [did not help me but worked for one] tracker: http://tracker.moodle.org/browse/MDL-8379 *It seems that if you reload the mdl_role_capabilities table the whole enrolment process starts to work again fine, I have attached a default copy of said table, I hope this helps out a little. [I never figured out what he meant or how to reload a role] duplicate issue 2 http://tracker.moodle.org/browse/MDL-8403;jsessionid=23929BD26F677F22E07B1E79E61FC240 *It sounds like defaultcourseroleid is set to guest. Go to Users -> Permissions -> User Policies and set it to student. That should fix your problem. [this got me thinking] *It's working now after specifying "View Course" for both guests and students, so I don't think this is a bug. Howevever I don't understand why it should be necessary to specify this; it should be default. [already set by default unless you changed it - messed me up when I applied it to authenticated users] duplicate issue 3 http://tracker.moodle.org/browse/MDL-11520 *suggested allow guests in without key which I did not desire If my solution does not work for you, try using excel and use each of the variables below going down and then what values you choose for each scenario. Write what effect you see and change just one at a time. This helped me solve the problem and reproduce it to be sure. Effect notes at top of each column site default role user site default role for students in a in course site define student role able to view courses site define guest role to view courses site define authenticated user to view courses Course default role Enrollment key required allow guests in Good Luck
Hide
Petr Škoda (skodak) added a comment -

hopefully this is mostly working in latest 1.9.x, the enrolments were completely rewritten in 2.0

thanks for the report anyway

Show
Petr Škoda (skodak) added a comment - hopefully this is mostly working in latest 1.9.x, the enrolments were completely rewritten in 2.0 thanks for the report anyway

People

Vote (5)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: