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

Coding error when viewing course competencies page after adding competency to an activity

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: Competencies
    • Labels:
    • Affected Branches:
      MOODLE_33_STABLE

      Description

      To reproduce:

      1. Create a competency framework.
      2. Add competencies to the framework.
      3. Create a course.
      4. Add competencies to the course.
      5. Create an assignment activity.
      6. Link one or more course competencies to the assignment.
      7. Go to the course competencies page.
      8. Expected
        • The course competencies page will be rendered.
      9. Actual
        • A coding error is being encountered:

          Coding error detected, it must be fixed by a programmer: Unknown context to use for formatting the property 'name' in the exporter 'core_course\external\course_module_summary_exporter'. You either need to add 'context' to your related objects, or create the method 'get_format_parameters_for_name' and return the context from there.

          More information about this error

          ×Debug info:
          Error code: codingerror
          ×Stack trace:
          line 219 of /lib/classes/external/exporter.php: coding_exception thrown
          line 167 of /lib/classes/external/exporter.php: call to core\external\exporter->get_format_parameters()
          line 148 of /admin/tool/lp/classes/output/course_competencies_page.php: call to core\external\exporter->export()
          line 73 of /admin/tool/lp/classes/output/renderer.php: call to tool_lp\output\course_competencies_page->export_for_template()
          line 386 of /lib/outputrenderers.php: call to tool_lp\output\renderer->render_course_competencies_page()
          line 48 of /admin/tool/lp/coursecompetencies.php: call to plugin_renderer_base->render()
          Continue

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jpataleta Jun Pataleta
                Participants:
                Component watchers:
                Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Damyon Wiese
              • Votes:
                2 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: