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

In 2.3 Assignments clicking the "Export to portfolio" link generates an exception

XMLWordPrintable

    • MOODLE_23_STABLE
    • MOODLE_23_STABLE
    • Hide

      To recreate:
      This test requires the following:

      • Portfolios and the file download and Google Docs portfolio plugins to be enabled for the site
      • A course containing a 2.3 single file assignment and multiple files assignment
      • A Google Docs account for use in testing
      1. Login as a student, access the course and make submissions for each of the two assignments.
      2. For each assignment:
        • click the "Export to portfolio" link,
        • select "File download" from the "Select destination" dropdown,
        • click Next and select "File" from the "Available export formats" dropdown.
        • click Next.

      Expected result:

      • The files are exported successfully.

      Actual result:

      • Moodle throws the exception displayed above.
      Show
      To recreate: This test requires the following: Portfolios and the file download and Google Docs portfolio plugins to be enabled for the site A course containing a 2.3 single file assignment and multiple files assignment A Google Docs account for use in testing Login as a student, access the course and make submissions for each of the two assignments. For each assignment: click the "Export to portfolio" link, select "File download" from the "Select destination" dropdown, click Next and select "File" from the "Available export formats" dropdown. click Next. Expected result: The files are exported successfully. Actual result: Moodle throws the exception displayed above.

      When I try to export to portfolio using the "Export to portfolio" link; Moodle throws the exception:

      Invalid call to get_sha1_file - either single or multifiles must be set
       
      More information about this error
      Debug info:
      Error code: invalidsha1file
      Stack trace:
       
      line 982 of /lib/portfoliolib.php: portfolio_export_exception thrown
      line 239 of /lib/portfolio/exporter.php: call to portfolio_export_rethrow_exception()
      line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()
      line 268 of /portfolio/add.php: call to portfolio_exporter->process_stage()

      I have tested this with 2.2 and it works fine in both 2.3 file assignment sub-types.

            damyon Damyon Wiese
            timb Tim Barker
            Dan Poltawski Dan Poltawski
            Frédéric Massart Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.