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

Export multiple files to Google docs portfolio throws error:

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: Portfolio
    • Labels:
    • Testing Instructions:
      Hide
      1. As admin..
      2. Enable portfolios in Admin > Advanced features
      3. Enable and configure the google docs portfolio plugin in Admin > Plugins > Portfolios
      4. Create a assignment (mod_assign), enabel file submissions with max 3 files
      5. Login as student..
      6. Go to assignment
      7. Upload two files
      8. Save changes
      9. Click the 'export to portfolio' button below the two submissions to send both submisisons
      10. Verify: That you can succesfully export to your googledocs and the response is 'That Portfolio export complete!'
      Show
      As admin.. Enable portfolios in Admin > Advanced features Enable and configure the google docs portfolio plugin in Admin > Plugins > Portfolios Create a assignment (mod_assign), enabel file submissions with max 3 files Login as student.. Go to assignment Upload two files Save changes Click the 'export to portfolio' button below the two submissions to send both submisisons Verify: That you can succesfully export to your googledocs and the response is 'That Portfolio export complete!'
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull Master Branch:

      Description

      In either mod_assignment or mod_assign, if you attach multiple files to a submission and then use the Export to portfolio link to export all files from the submission, you are given an error page:

      error/Cantpostupload

      Debug info:
      Error code: Cantpostupload
      $a contents:
      Stack trace:

      line 982 of /lib/portfoliolib.php: portfolio_export_exception thrown
      line 247 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 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()
      line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()
      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()

      Output buffer: <div class="notifytiny">A third party exception was thrown during portfolio export (moodle_exception). Caught and rethrown but this should really be fixed<ul style="text-align: left"><li>line 245 of /lib/portfolio/exporter.php: call to debugging()</li><li>line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()</li><li>line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()</li><li>line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()</li><li>line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()</li><li>line 268 of /portfolio/add.php: call to portfolio_exporter->process_stage()</li></ul></div><div class="notifytiny">exception 'moodle_exception' with message 'error/Cantpostupload' in /git/working/moodle23/lib/googleapi.php:140 Stack trace: #0 /git/working/moodle23/portfolio/googledocs/lib.php(58): google_docs->send_file(Object(stored_file)) #1 /git/working/moodle23/lib/portfolio/exporter.php(502): portfolio_plugin_googledocs->send_package() #2 /git/working/moodle23/lib/portfolio/exporter.php(227): portfolio_exporter->process_stage_send() #3 /git/working/moodle23/lib/portfolio/exporter.php(233): portfolio_exporter->process_stage(5) #4 /git/working/moodle23/lib/portfolio/exporter.php(233): portfolio_exporter->process_stage(4) #5 /git/working/moodle23/lib/portfolio/exporter.php(233): portfolio_exporter->process_stage(3) #6 /git/working/moodle23/lib/portfolio/exporter.php(233): portfolio_exporter->process_stage(2) #7 /git/working/moodle23/portfolio/add.php(268): portfolio_exporter->process_stage(1, false) #8

      {main}

      <ul style="text-align: left"><li>line 246 of /lib/portfolio/exporter.php: call to debugging()</li><li>line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()</li><li>line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()</li><li>line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()</li><li>line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()</li><li>line 268 of /portfolio/add.php: call to portfolio_exporter->process_stage()</li></ul></div>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              poltawski Dan Poltawski
              Reporter:
              damyon Damyon Wiese
              Integrator:
              Aparup Banerjee
              Tester:
              Andrew Davis
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Jun/12