-
Bug
-
Resolution: Fixed
-
Major
-
4.2.3, 4.3 regressions, 4.3
-
MOODLE_402_STABLE, MOODLE_403_STABLE
-
MOODLE_402_STABLE, MOODLE_403_STABLE
-
MDL-79635-403 -
I have a weird problem with incorrect query parameters. I thought it was only Moodle 4.3 related, but no. I reverted to Moodle 4.2.3, and I have the same. Before 4.2.3, users didn't have this problem, but maybe it's Log in as a bug. It occurs only when in the course is additional group with Group membership visibility
set to Hidden and unchecked Show group in dropdown menu for activities in group mode. I had this group before 4.2.3 and it worked fine (not tested as Log in as).
The issue description is not as strict as I would like, but I tried to provide as many details as possible. I hope it will useful to fix it.
1. Select a user with a group
2. Click Log in as in the user course profile
3. Open Participants
ERROR: Incorrect number of query parameters. Expected 21, got 16. |
More information about this error |
https://docs.moodle.org/402/en/error/moodle/invalidqueryparam |
Debug info:
|
Error code: invalidqueryparam×Dismiss this notification |
Stack trace:
|
line 953 of /lib/dml/moodle_database.php: dml_exception thrown |
line 1370 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->fix_sql_params() |
line 1679 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql() |
line 1752 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql() |
line 1963 of /lib/dml/moodle_database.php: call to moodle_database->get_field_sql() |
line 148 of /user/classes/table/participants_search.php: call to moodle_database->count_records_sql() |
line 410 of /user/classes/table/participants.php: call to core_user\table\participants_search->get_total_participants_count() |
line 2191 of /lib/tablelib.php: call to core_user\table\participants->query_db() |
line 213 of /user/classes/table/participants.php: call to table_sql->out() |
line 181 of /user/index.php: call to core_user\table\participants->out() |
- has been marked as being related by
-
MDL-80110 Incorrect number of query parameters while listing users by student (follow-up of MDL-79635)
-
- Closed
-