De MoodleDocs
Revisión del 19:18 10 ago 2014 de German Valero (discusión | contribs.) (added page)
(difs.) ← Revisión anterior | Revisión actual (difs.) | Revisión siguiente → (difs.)

Una causa posible de este error es una llamada como

$DB->get_records_sql($sql, $params)

where the SQL query, $sql, contains several '?' which are to by substituted by $params, but fewer parameters than '?' are supplied. Check that $params was not created using unexpexted NULL values. get_records_sql() is defined in 'lib/dml/*_native_moodle_database.php', depending on which database you are using.