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

Exporting assignment to portfolio throw exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.8.5
    • Assignment, Portfolio
    • None
    • MOODLE_28_STABLE

      While testing MDL-37984, it was observed that assignment with attached images in description/additional files throw exception while exporting to portfolio.
      Steps to reproduce:

      1. Create an assignment with image in description
      2. Attach few additional files
      3. As student submit assignment with file and inline text with images.
      4. As student export to portfolio and you will see following errors/warnings:
        While exporting Assignment with files.

        Debug info: 
        Error code: invalidfileandsubmissionid
        $a contents:
        Stack trace:
        line 7421 of /mod/assign/locallib.php: portfolio_caller_exception thrown
        line 185 of /portfolio/add.php: call to assign_portfolio_caller->load_data()
        

      While exporting submission.

      Couldn't find a file from the embedded path info context 84 component mod_assign filearea submissions_onlinetext itemid 1 filepath / name /Moodle-icon.png
      line 1269 of /lib/portfoliolib.php: call to debugging()
      line ? of unknownfile: call to portfolio_rewrite_pluginfile_url_callback()
      line 9152 of /lib/moodlelib.php: call to call_user_func_array()
      line ? of unknownfile: call to partial->method()
      line 1386 of /lib/portfoliolib.php: call to preg_replace_callback()
      line 7463 of /mod/assign/locallib.php: call to portfolio_rewrite_pluginfile_urls()
      line 459 of /lib/portfolio/exporter.php: call to assign_portfolio_caller->prepare_package()
      line 227 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage_package()
      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()
      

            Unassigned Unassigned
            rajeshtaneja Rajesh Taneja
            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.