Details
Description
Unknown column 'Array' in 'where clause' thrown, when a student clicks forum link on navigation bar.
Full error result;
Unknown column 'Array' in 'where clause'
SELECT COUNT(d.id) FROM mdl_forum_discussions d WHERE d.groupid IN (Array) AND d.forum = ? LIMIT 0, 1
[array ( 0 => '11', )]
- line 305 of lib/dml/moodle_database.php: dml_read_exception thrown
- line 558 of lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1125 of lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
- line 2381 of mod/forum/lib.php: call to moodle_database->get_field_sql()
- line 162 of mod/forum/index.php: call to forum_count_discussions()
to recreate the event,
create a forum, post a discussion, login as a student go to forum, click on topic and click forum on navigation bar.
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions
fixed, thanks