Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

error/group/erroraddremoveuser: diferència entre les revisions

De MoodleDocs
Salta a:navegació, cerca
(Some experinece with the error add/remove user.)
 
Cap resum de modificació
 
Línia 9: Línia 9:
if you insert the line at line 1555 in /lib/dmllib.php.
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.
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.

Revisió de 17:00, 6 set 2008

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.