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

Portfolio should give more information during errors.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • 3.2.3
    • None
    • Portfolio
    • MOODLE_32_STABLE
    • Easy

    Description

      So No matter what the error is portfolio throws bogus error messages which is of no use at all.

      So I had APIs disabled in Google developer console.

      And this is the error that I get in Moodle -

      Debug info:
      Error code: failedtosendpackage
      Stack trace:

      line 516 of /lib/portfolio/exporter.php: portfolio_export_exception thrown
      line 227 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage_send()
      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 265 of /portfolio/add.php: call to portfolio_exporter->process_stage()

      Looking futher we have this -
      throw new portfolio_plugin_exception('sendfailed', 'portfolio_gdocs', $file->get_filename());

      Which should be improved to show the actual error.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ankit_frenz Ankit Agarwal
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: