Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-41961

Error occurs on view single entry when portfolio is enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.6
    • Fix Version/s: None
    • Labels:
    • Affected Branches:
      MOODLE_26_STABLE

      Description

      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:

      1. Enable portfolio.
      2. Create a database activity.
        • In the [Entries] section set "Allow comments on entries" to Yes.
      3. Add some fields.
      4. Save the templates.
      5. Add a couple of entries.
      6. Go to the single view.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              rwijaya Rossiani Wijaya
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: