<em>Edited:</em> I'm using Dokeos 1.6.3.
<em>Original Topic:</em>
I'm getting some strange errors when subscribing users to a course.
The first error was this:
<em>Fatal error: Undefined class name 'rolesrights' in /.../dokeos/claroline/inc/lib/course.lib.php on line 261</em>
So, I went to that file to search what was wrong. I found that line:
<em>$location_id = RolesRights::get_course_location_id($course_code);
</em>But, if found that RolesRights class doesn't exists on dokeos. Anywhere.
So, I just commented the line because I wanted to see what table was the function adding this location_id, since I found no table with that.
But that table <em>MAIN_USER_ROLE_TABLE</em> also doesn't exists.
So, I went deeper, and I found commenting this line and the SQL command to that phantom table, that there is also a api_max_sort_value(), that doesn't exists also.
<strong>I was wondering at that time what could be so wrong, untill I found a function equal as this (subscribe_user), called <em>add_user_to_course </em>and that function should do everything right, since there is no user role table.
What I think is that I found a deprecated or beta function that is being used by dokeos, a big mistake that wasn't letting the teachers to add students to the course.</strong>
I found no errors like this on the internet and on Dokeos Bug track Forum.
Correct me if I'm mistaken.
Thanks in advance.
