Comments (3)
can you please set "debuggigng" level to "developer" and display errors = on then run it again and provide the full debug trace?
(make sure you turn display errors back off again afterwards.)
from moodle-local_cohortauto.
I couldn't see any error messages in moodle, either onscreen or in the logs when I turned display on page off, so I set up a cron job in plesk and got the following error:
Beginning user cohort sync...
User 'guest' ... done.
User 'ifa-admin' ... done.
User 'lynn.student' ... done.
User 'sgmarshall' ... !!! Error writing to database !!!
!! Duplicate entry '1-4' for key 'mdl_cohomemb_cohuse_uix'
INSERT INTO mdl_cohort_members (cohortid,userid,timeadded) VALUES(?,?,?)
[array (
0 => 1,
1 => '4',
2 => 1663239845,
)]
Error code: dmlwriteexception !!
!! Stack trace: * line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 291 o...
from moodle-local_cohortauto.
thanks for the debug trace, we're unlikely to look at this very quickly in the short term but if you have development capabilities feel free to submit a pull request.
from moodle-local_cohortauto.
Related Issues (20)
- "$PAGE->context was not set" when performing OAuth2 login HOT 7
- Looking for a way to create cohort based on user creation time HOT 6
- Force cohorts to update without logging in users HOT 2
- Can't delete generated cohorts HOT 1
- Support for 3.11? HOT 1
- Deprecated: Required parameter $result follows optional parameter $prefix in HOT 1
- allow match on cohortid HOT 1
- Compatible moodle 4.X ? HOT 1
- UI checks making unit tests failure HOT 1
- Massive Server Load HOT 7
- NULL value for column idnumber is not allowed on Moodle 4.1+ anymore HOT 1
- Problems when using the Plugin HOT 1
- Moodle 4.0 or 4.1 HOT 1
- Prevent warnings on empty emails HOT 2
- warning for $PAGE->context not set when logging in user HOT 2
- settings.php: curious why this plugin is not listed in the local plugin settings HOT 1
- 50 unicode symbols is too short HOT 2
- support for split+replace and fields on inner arrays on split commands. HOT 3
- Moodle 3.9 issues HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-local_cohortauto.