Error/moodle/invalidqueryparam: различия между версиями

Материал из База знаний Центра ПУСК МФТИ
1>Germanvaleroelizondo
м added link to spanish translation of page
 
м 1 версия импортирована
 
(нет различий)

Текущая версия от 06:53, 18 октября 2024

One possible cause of this error is a call like

$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.

es:error/moodle/invalidqueryparam