Hi,
I'm getting a very strange SQL query error, when I'm trying to edit previously saved data in the view. It does not matter, whether I'm doing this as an administrator or as a course participant. The error message is in German, but it means nothing else as a "Column "e.id" needs to be included in the Group-By clause or in an aggregate function. System configuration: Windows 2012 R2, IIS, PHP 5.5.10, PostgresSQL 9.3.2, Moodle 2.6.2 (Build 24.04.2014).
I will be really grateful for any suggestion.
//////
Debug info: FEHLER: Spalte „e.id“ muss in der GROUP-BY-Klausel erscheinen oder in einer Aggregatfunktion verwendet werden
LINE 3: ... WHERE e.dataid = $1 AND e.id = $2 ORDER BY e.id ASC
^
SELECT COUNT(e.id) FROM mdl_dataform_entries e
JOIN mdl_user u ON u.id = e.userid
LEFT JOIN mdl_groups g ON g.id = e.groupid WHERE e.dataid = $1 AND e.id = $2 ORDER BY e.id ASC
[array (
0 => '3',
1 => '11',
)]
Error code: dmlreadexception
- line 443 of \lib\dml\moodle_database.php: dml_read_exception thrown
- line 243 of \lib\dml\pgsql_native_moodle_database.php: call to moodle_database->query_end()
- line 748 of \lib\dml\pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
- line 313 of \mod\dataform\classes\entry_manager.php: call to pgsql_native_moodle_database->get_records_sql()
- line 131 of \mod\dataform\classes\entry_manager.php: call to mod_dataform_entry_manager->fetch_entries()
- line 316 of \mod\dataform\classes\pluginbase\dataformview.php: call to mod_dataform_entry_manager->set_content()
- line 390 of \mod\dataform\classes\dataform.php: call to mod_dataform\pluginbase\dataformview->display()
- line 71 of \mod\dataform\view.php: call to mod_dataform_dataform->display()