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

error/group/erroraddremoveuser

From MoodleDocs
Revision as of 17:00, 6 September 2008 by brian lockwood (talk | contribs)
(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 causing the problem. You may then be able to debug the problem.