Moodle Plugins directory: Cohort external database | Moodle.org
Cohort external database
Administration tools ::: tool_cohortdatabase
Maintained by
Dan Marsden,
Catalyst IT
This plugin creates site-level cohorts using a connection to an external database. (similar to enrol_database plugin but instead of creating enrolments it creates site-level cohorts.)
Latest release:
146 sites
41 downloads
28 fans
Current versions available: 3
This plugin creates site-level cohorts using a connection to an external database.
- Can be triggered via CLI and/or scheduled task.
- Creates site-level cohorts
- Syncronises users in cohorts
- Optionally auto create users
Useful links
Contributors
Dan Marsden (Lead maintainer)
Catalyst IT
Please login to view contributors details and/or to contact them
Starting cohort synchronisation...
Error while communicating with external cohort database
I'm not sure when the extra output in the cron task will be?
Thanks, Nigel (Otaku).
Thanks for a great plugin! We use it a lot.
I've found an issue with PHP 8.0. When running the scheduled task we get the error:
odbc_free_result(): supplied resource is not a valid ODBC result resource
I had the same error with one of our custom plugins, that also uses ODBC, so I managed to fix it I think.
In classes/sync.php I've added $rs->Close(); to line 113, 267, 366. And that seems to fix the task.
I'll look out for how you do it in an updated version, as you might well do it a different, better way (or there may be issues with how I've done it), but thought I'd report it here nonetheless.
thanks a lot,
Simon