-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
2.6
-
MOODLE_26_STABLE
While testing MDL-41772, I notice the following error with portfolio is set to enable.
Debug info: Unknown column 'version' in 'field list'
|
SELECT version FROM mdl_modules WHERE name = ?
|
[array (
|
0 => 'data',
|
)]
|
Error code: dmlreadexception
|
Stack trace:
|
|
line 448 of /lib/dml/moodle_database.php: dml_read_exception thrown
|
line 995 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
|
line 1437 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
|
line 1510 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
|
line 1491 of /lib/dml/moodle_database.php: call to moodle_database->get_field_sql()
|
line 1470 of /lib/dml/moodle_database.php: call to moodle_database->get_field_select()
|
line 375 of /lib/adminlib.php: call to moodle_database->get_field()
|
line 1321 of /lib/portfoliolib.php: call to get_component_version()
|
line 153 of /lib/portfoliolib.php: call to portfolio_include_callback_file()
|
line 1255 of /mod/data/lib.php: call to portfolio_add_button->set_callback_options()
|
line 765 of /mod/data/view.php: call to data_print_template()
|
Reproduction steps:
- Enable portfolio.
- Create a database activity.
- In the [Entries] section set "Allow comments on entries" to Yes.
- Add some fields.
- Save the templates.
- Add a couple of entries.
- Go to the single view.