Hello, everybody,
I have a problem with the plugin "Enrol by user profile fields".
When I start the sync (/enrol/attributes/cli/sync.php) I get the following error message.
---------------
Default exception handler: Fehler beim Schreiben der Datenbank Debug: Column 'userid' cannot be null
INSERT INTO mdl_user_enrolments (enrolid,status,userid,timestart,timeend,modifierid,timecreated,timemodified) VALUES(?,?,?,?,?,?,?,?)
[array (
0 => '278',
1 => 0,
2 => NULL,
3 => 0,
4 => 0,
5 => 0,
6 => 1570790916,
7 => 1570790916,
)]
Error code: dmlwriteexception
* line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
* line 1329 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
* line 1375 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
* line 1957 of /lib/enrollib.php: call to mysqli_native_moodle_database->insert_record()
* line 399 of /enrol/attributes/lib.php: call to enrol_plugin->enrol_user()
* line 59 of /enrol/attributes/cli/sync.php: call to enrol_attributes_plugin::process_enrolments()
-----------------------
Can someone help me solve the problem? Unfortunately I can't get any further...
Thanks,
Moritz