I have upgraded from 1.2 dev to 1.3 final and went smoothly for the most part. However, in the classes when clicking on 'Participants' the page shows normally but without the list of students. The following error appears at the top:
Warning: Invalid argument supplied for foreach() in c:\program files\easyphp\www\user\index.php on line 190
Warning: Invalid argument supplied for foreach() in c:\program files\easyphp\www\user\index.php on line 212
The code referred to is this:
line 190 :
foreach ($students as $key => $student) {
$students[$key]->country = $countries[$student->country];
}
if ($sort == "country") { // Need to re-sort by full country name, not code
foreach ($students as $student) {
$sstudents[$student->id] = $student->country;
}
asort($sstudents);
foreach ($sstudents as $key => $value) {
$nstudents[] = $students[$key];
}
$students = $nstudents;
}
line 212:
foreach ($students as $student) {
if ($student->lastaccess) {
$lastaccess = format_time(time() - $student->lastaccess, $datestring);
} else {
$lastaccess = $strnever;
}
Also, the instructor has been removed from the class. And Cannot add any instructors to the course!
Still no logs being recorded either. Should I try re-installing backuped course/moodle and upgrading to 1.2.1 first?
Any Ideas? Thanx, Kevin