Moodle

Teachers Losing Role Assignment

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.9.1
  • Fix Version/s: None
  • Component/s: Assignment
  • Labels:
    None
  • Environment:
    Ubuntu, php 5.2.4, Mysql 5.0.51a
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE

Description

Teachers are losing their role as described in this thread:

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

and this later thread:

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

Logs on affected courses clearly show administrators assigning teacher roles.
Teachers can clearly be seen adding activities.

Then, inexplicably all teachers are removed from the course. Courses then show no teachers, where there may have been two or three previously.

There are no "un-assign" entries in the logs of the course. These teachers are not removing themselves or being removed.

This is nothing to do with longtimenosee, active teachers are being removed. For example, today I found a course where the teacher was last active 13 days ago had been removed from a course, along with all their colleagues.

Additionally in am forum thread, another admin with this problem set the moodle/roles:unassignself to prevent users un assigning themselves. Again, I know this is not the cause as I would see "un-assign" in the logs for that course.

Courses I have been asked to look at have no teachers and no course creators assigned.

It is worth mentioning that these courses were originally imported form another Moodle system and the roles subsequently added. However, there were no issues with access for at least six months. This has only recently started happening.

Regards, Jeremy

#Update#

I have observed teachers being removed when manually running cron.php on a test system.

Affected courses seem to have an "Enrolment duration" set in the course settings, though, another user commenting in the forum thread says that their courses have unlimited duration and still suffer the same issue.

Activity

Hide
Kris Sisk added a comment -

I am seeing this same issue. My server is a Windows 2003 with PHP 5.2.6, MySQL5.0.51b and Moodle 1.9.7.

Show
Kris Sisk added a comment - I am seeing this same issue. My server is a Windows 2003 with PHP 5.2.6, MySQL5.0.51b and Moodle 1.9.7.
Hide
Kenneth Arnold added a comment -

I am having the same issue. I am running Moodle 1.9.5 with MySQL 5.0.26 and PHP 5.2.5 on SUSE 10 SP3

Show
Kenneth Arnold added a comment - I am having the same issue. I am running Moodle 1.9.5 with MySQL 5.0.26 and PHP 5.2.5 on SUSE 10 SP3
Hide
Kenneth Arnold added a comment -

select m.shortname,m.fullname,m.idnumber
from mdl_course m, mdl_context c
left join mdl_role_assignments r on r.contextid = c.id
where c.contextlevel = 50
and r.contextid is null
and m.id = c.instanceid

The sql script above gives you the Moodle courses that have no teacher role so that you can determine which courses lost their teachers.

Show
Kenneth Arnold added a comment - select m.shortname,m.fullname,m.idnumber from mdl_course m, mdl_context c left join mdl_role_assignments r on r.contextid = c.id where c.contextlevel = 50 and r.contextid is null and m.id = c.instanceid The sql script above gives you the Moodle courses that have no teacher role so that you can determine which courses lost their teachers.
Hide
Jill R. added a comment -

Also having the same issue regardless of whether courses have an unlimited duration or not.

Show
Jill R. added a comment - Also having the same issue regardless of whether courses have an unlimited duration or not.

People

Vote (5)
Watch (5)

Dates

  • Created:
    Updated: