I am having some trouble with the enrolement plugin since recently upgrading from 1.8 to 1.9 and wondering if anyone can help ? Flat file enrolement is no logner working.
I am on now on moodle 1.9.2+ with PHP 5.1.6, MySQL 5.0.45, and redhat 5.2
The enrolement plugin was working fine on 1.8
I have a new fresh 1.9 instance in the same environment and the enrolement plugin is working fine there also. I am using the same scripts to generate the flat file on both the working 1.9 and broken 1.9.
Flat file enrolement was working intermittantly on the upgraded moodle instance but now it is failing every time. To try and rule out database problems I have run mysqldiff and there is no difference now between my upgraded 1.9 and a clean 1.9 install. I have also run the database optimisation script which analyses and optimises the tables.
I am running the moodle cron job from the command line through the OS cron and keeping the log files. The process fails for all users and roles.
Here is a sample of the error in the log file.
127193: add editingteacher 95023976 2009_BE306 :Unknown role in field2 - ignoring line
133190: add student 99318911 2009_CA511 :Unknown role in field2 - ignoring line
The mdl_roles table seems ok in the database
|1||Administrator||admin||Administrators can usually do anything on the site...||0|
|2||Course creator||coursecreator||Course creators can create new courses and teach i...||1|
|3||Teacher||editingteacher||Teachers can do anything within a course, includi...||2|
|4||Non-editing teacher||teacher||Non-editing teachers can teach in courses and grad...||3|
|5||Student||student||Students generally have less privileges within a ...||4|
|6||Guest||guest||Guests have minimal privileges and usually can not...||5|
|7||Authenticated user||user||All logged in users.||6|
Can anyone suggest where I should be looking to try and resolve this ?
Or has anyone seen this problem before ?
Thanks for you help,