We recently upgraded our Moodle from 2.4 to 2.5.1 and now teachers cannot access their courses. They have the teacher role in the courses and they can see the links to their courses in "My Courses" once they log in; but when they click on the links an error message appears:
You are not enrolled in this course
I checked the enrollment plugins, both self enrollment and manual enrollment are active. Their accounts were created manually in the previous server and the enrollment had been set to never expire. In the current version of Moodle those settings are the same. The expiration date is disabled.... I also changed it to several days.. and even years... to no bail. I un - enrolled one of the teachers and enrolled him back with both the editing_teacher role and student role usinf the manual enrollment ... but it did not work. Then I enabled the self enrollment plugin and logged in using his credentials, then clicked on the course link, it showed "you can enroll" so I clicked on the enroll me button, and the next screen showed again the same message... you are not enrolled in this course.
I even deleted completely the Moodle database and restored the one from the old server back to observe if there any errors happened in the process, but nothing, everything went fine, no errors, the upgrading of the database was done smoothly.
The only part I am finding a bit intriguing is that when I checked the PHP info from site administration/ server/PHP info, I found this under mysql:
Client API version mysqlnd 5.0.11-dev - 20120503 - $Id: 40933630edef551dfaca71298a83fad8d03d62d4 $
Would this be causing the problem?
Is there something else I can check in order to get our Moodle to work? I will greatly appreciate your help.