cron stop when run cohort

cron stop when run cohort

by Leszek Kawa -
Number of replies: 0

moodle 2.4.2

When I try cron I got this in developer debug.

Server Time: Tue, 12 Mar 2013 15:42:19 +0100


 Created missing context instances
Cleaned up stale user sessions
Running auth crons if required...
Running enrol crons if required...
Running cron for enrol_cohort...
!!! Błąd odczytu z bazy danych !!!
!! Nieznana kolumna 'gm.component' w  where clause
SELECT gm.*, e.courseid, g.name AS groupname
              FROM mdw_groups_members gm
              JOIN mdw_groups g ON (g.id = gm.groupid)
              JOIN mdw_enrol e ON (e.enrol = 'cohort' AND e.courseid = g.courseid )
              JOIN mdw_user_enrolments ue ON (ue.userid = gm.userid AND ue.enrolid = e.id)
             WHERE gm.component='enrol_cohort' AND gm.itemid = e.id AND g.id <> e.customint2
[array (
)]
Error code: dmlreadexception !!
!! Stack trace: * line 426 of /lib/dml/moodle_database.php: dml_read_exception thrown
* line 960 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
* line 314 of /enrol/cohort/locallib.php: call to mysqli_native_moodle_database->get_recordset_sql()
* line 136 of /enrol/cohort/lib.php: call to enrol_cohort_sync()
* line 240 of /lib/cronlib.php: call to enrol_cohort_plugin->cron()
* line 88 of /admin/cron.php: call to cron_run()
 !!

site: www.elearning.hathajoga.pl

Average of ratings: -