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

Exported online assignment (2.2) as html contains warning.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.3.3
    • Fix Version/s: None
    • Component/s: Assignment (2.2), Portfolio
    • Labels:
    • Affected Branches:
      MOODLE_23_STABLE

      Description

      Steps to reproduce:

      1. Create online assignment (2.2)
      2. As a student submit assignment
      3. After submission select "File download" and click "Export to portfolio"
      4. Select "Html" and click "Next" and then "continue"
      5. Check html file, there is a warning div.

      Warning message:

      <div class="notifytiny">Coding problem: $PAGE->context was not set. You may have forgotten to call require_login() or $PAGE->set_context(). The page may not display correctly as a result<ul style="text-align: left"><li>line 450 of /lib/pagelib.php: call to debugging()</li><li>line 717 of /lib/pagelib.php: call to moodle_page->magic_get_context()</li><li>line 1082 of /lib/weblib.php: call to moodle_page->__get()</li><li>line 331 of /mod/assignment/type/online/assignment.class.php: call to format_text()</li><li>line 146 of /mod/assignment/locallib.php: call to assignment_online->portfolio_get_sha1()</li><li>line 535 of /lib/portfolio/exporter.php: call to assignment_portfolio_caller->get_sha1()</li><li>line 827 of /lib/portfolio/plugin.php: call to portfolio_exporter->log_transfer()</li><li>line 57 of /portfolio/file.php: call to portfolio_plugin_pull_base->send_file()</li></ul></div>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                moodle.com moodle.com
                Reporter:
                rajeshtaneja Rajesh Taneja
                Participants:
                Component watchers:
                Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: