Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: error/group/erroraddremoveuser.

error/group/erroraddremoveuser

From MoodleDocs
Revision as of 16:59, 6 September 2008 by brian lockwood (talk | contribs) (Some experinece with the error add/remove user.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This error is produced by the code in /group/members.php which calls code in /group/lib.php which in turn calls code in /lib/dmllib.php.

The various functions involved result in a line of SQL which is sent to the database engine.

You can trap this SQL in /lib/dmllib.php with a line like

print("SQL to be run is $insertSQL");

if you insert the line at line 1555 in /lib/dmllib.php.

The text SQL to be run is INSERT INTO ..... will then appear at the top of the page that is cuasing the problem.