Debug info: ERROR: column "visibility" does not exist
LINE 1: ...OUNT('x') FROM mdl_groups WHERE courseid = $1 AND visibility...
^
SELECT COUNT('x') FROM mdl_groups WHERE courseid = $1 AND visibility != $2
[array (
0 => 1,
1 => 0,
)]
Error code: dmlreadexception
LINE 1: ...OUNT('x') FROM mdl_groups WHERE courseid = $1 AND visibility...
^
SELECT COUNT('x') FROM mdl_groups WHERE courseid = $1 AND visibility != $2
[array (
0 => 1,
1 => 0,
)]
Error code: dmlreadexception
Stack trace:
- line 494 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 293 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->query_end()
- line 341 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->read_slave_query_end()
- line 1027 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
- line 1679 of /lib/dml/moodle_database.php: call to pgsql_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 1946 of /lib/dml/moodle_database.php: call to moodle_database->count_records_sql()
- line 47 of /group/classes/visibility.php: call to moodle_database->count_records_select()
- line 66 of /group/classes/visibility.php: call to core_group\visibility::update_hiddengroups_cache()
- line 86 of /group/classes/visibility.php: call to core_group\visibility::course_has_hidden_groups()
- line 276 of /lib/grouplib.php: call to core_group\visibility::can_view_all_groups()
- line 6967 of /mod/forum/lib.php: call to groups_get_all_groups()
- line 6920 of /mod/forum/lib.php: call to mod_forum_get_groups_from_groupid()
- line 177 of /mod/forum/classes/local/renderers/discussion_list.php: call to mod_forum_count_all_discussions()
- line 2235 of /course/renderer.php: call to mod_forum\local\renderers\discussion_list->render()
- line 2292 of /course/renderer.php: call to core_course_renderer->frontpage_news()
- line 137 of /index.php: call to core_course_renderer->frontpage()