Moodle

Students and guests cannot login with/without the key

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.8.2
  • Fix Version/s: None
  • Component/s: Course, Unknown
  • Labels:
    None
  • Environment:
    Moodle 1.8.2+
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_18_STABLE

Description

When a user (student or guest) tries to enter a course, they cannot. The screen simply refreshes to "do you want to enroll?" and it does.

This occurs whether or not the course has an enrollment key AND when the students have successfully logged in before (entered key, joined course). While logged in they show in the Online Users block but cannot enter the course.

Issue Links

Activity

Hide
Petr Škoda (skodak) added a comment -

Did you upgrade from 1.7?
Which version did you initially install?

Please verify settings for:

  • setting Default role for all users - defaultuserroleid
  • setting Role for visitors - notloggedinroleid
  • guest role definition
  • authenticated user definition

thanks

Show
Petr Škoda (skodak) added a comment - Did you upgrade from 1.7? Which version did you initially install? Please verify settings for:
  • setting Default role for all users - defaultuserroleid
  • setting Role for visitors - notloggedinroleid
  • guest role definition
  • authenticated user definition
thanks
Hide
Sherry Brown added a comment -

I am running a clean install of 1.8.2+ (2007021520), MySQL 4.1.20, php 4.3.9 and on a Linux server (no clue on flavor, it's a hosted site). I deliberately chose not to upgrade, it was easier on me.

What baffles me is the site was working quite nicely until about 5 days ago as I said in this message http://moodle.org/mod/forum/discuss.php?d=79744. I don't know if the other folks' sites had the problem from the outset or did it suddenly appear?

Aside from SimpleBlog and the blocks CourseMenu+, Book, Quickmail and Sidebar, it's a fairly plain site (pdf files mostly).

  • I have probihited Students from doing the usual things
  • Guest Roles - not changed from the installed version
  • Authenticated Users - also left as is

Where might I find these? using myPHP Admin?

  • defaultuserroleid
  • notloggedinroleid
Show
Sherry Brown added a comment - I am running a clean install of 1.8.2+ (2007021520), MySQL 4.1.20, php 4.3.9 and on a Linux server (no clue on flavor, it's a hosted site). I deliberately chose not to upgrade, it was easier on me. What baffles me is the site was working quite nicely until about 5 days ago as I said in this message http://moodle.org/mod/forum/discuss.php?d=79744. I don't know if the other folks' sites had the problem from the outset or did it suddenly appear? Aside from SimpleBlog and the blocks CourseMenu+, Book, Quickmail and Sidebar, it's a fairly plain site (pdf files mostly).
  • I have probihited Students from doing the usual things
  • Guest Roles - not changed from the installed version
  • Authenticated Users - also left as is
Where might I find these? using myPHP Admin?
  • defaultuserroleid
  • notloggedinroleid
Hide
Joe Griffin added a comment - - edited

I have a similar problem in 1.7.1 so do I need to start a new tracker item? Also is there any point in upgrading as the problem seems to persist in different versions after 1.7.1?

I also see that this is catgegorised as a minor problem but I'd suggest it is fairly major if students can't actually enrol?

I see the linked project is considered Major?

Thanks

Show
Joe Griffin added a comment - - edited I have a similar problem in 1.7.1 so do I need to start a new tracker item? Also is there any point in upgrading as the problem seems to persist in different versions after 1.7.1? I also see that this is catgegorised as a minor problem but I'd suggest it is fairly major if students can't actually enrol? I see the linked project is considered Major? Thanks
Hide
Luca Navone added a comment -

The same problem in version 1.8.3. Only one course, with enrolment key. Every time a student input the key, he cannot log in the course and the prompt re-require the key.
Removing the enrolment key if the student click on "yes", the same problem.
I also think that it isn't a minor problem....

Thanks

Show
Luca Navone added a comment - The same problem in version 1.8.3. Only one course, with enrolment key. Every time a student input the key, he cannot log in the course and the prompt re-require the key. Removing the enrolment key if the student click on "yes", the same problem. I also think that it isn't a minor problem.... Thanks
Hide
Ben Stilwell added a comment -

Same problem only in 1.8.4

If I use an enrollment key the page simply reloads to the enter enrollment key page.
If I don't use a key the student goes to the enrolment page where it continually reloads, never giving access to the site.

This is happening with students that are already enrolled in the course and new students attempting to enroll.

This issue sprouted up today, after running almost a week without issue. The only changes I've made since the last successful login and course access are changing the theme, attempting to create a lesson that included an essay question(I add this because I was having an issue with the essay not being available for grading after the student finishes, doesn't seem likely but might be related).

I also agree this is not a minor problem, this is a pretty big deal.

Show
Ben Stilwell added a comment - Same problem only in 1.8.4 If I use an enrollment key the page simply reloads to the enter enrollment key page. If I don't use a key the student goes to the enrolment page where it continually reloads, never giving access to the site. This is happening with students that are already enrolled in the course and new students attempting to enroll. This issue sprouted up today, after running almost a week without issue. The only changes I've made since the last successful login and course access are changing the theme, attempting to create a lesson that included an essay question(I add this because I was having an issue with the essay not being available for grading after the student finishes, doesn't seem likely but might be related). I also agree this is not a minor problem, this is a pretty big deal.
Hide
Ben Stilwell added a comment -

I also wanted to add that if I use the setting
"Allow Guests to enter without the key"

Then I see this message when attempting to enter:
"Sorry, 'Course Name' does not allow guests to enter."

Show
Ben Stilwell added a comment - I also wanted to add that if I use the setting "Allow Guests to enter without the key" Then I see this message when attempting to enter: "Sorry, 'Course Name' does not allow guests to enter."
Hide
Jeff Wood added a comment -

Running clean install of 1.8.4 and working fine for a month and similar issue started last week.

  • Guest can enter a course using the enrollment key (course set to allow guest who have the key)
  • Students cannot enroll in a course with the key - page keeps displaying enter enrollment key.
  • Students (some teachers) who are already enrolled (show as participants) are being asked for the enrollment key - but key loop prevents them from entering the course.
Show
Jeff Wood added a comment - Running clean install of 1.8.4 and working fine for a month and similar issue started last week.
  • Guest can enter a course using the enrollment key (course set to allow guest who have the key)
  • Students cannot enroll in a course with the key - page keeps displaying enter enrollment key.
  • Students (some teachers) who are already enrolled (show as participants) are being asked for the enrollment key - but key loop prevents them from entering the course.
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
Gordon McLeod added a comment -

Just encountered the same issue after upgrading to 1.97 - Some students successfully used the key, but others enter the correct enrolment key and the page refreshes to "do you want to enroll". Tried changing the key but got exactly the same result.

Show
Gordon McLeod added a comment - Just encountered the same issue after upgrading to 1.97 - Some students successfully used the key, but others enter the correct enrolment key and the page refreshes to "do you want to enroll". Tried changing the key but got exactly the same result.

Dates

  • Created:
    Updated:
    Resolved: