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

The block_lp can kill page when competencies are disabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: Competencies
    • Labels:
    • Testing Instructions:
      Hide
      1. Enable competencies
      2. Make sure the block tool_lp is on the dashboard (you should see it as a student)
      3. Disable competencies
      4. Login as the student and head to your dashboard
      5. Make sure you do not see the block and there are no errors on the page
      Show
      Enable competencies Make sure the block tool_lp is on the dashboard (you should see it as a student) Disable competencies Login as the student and head to your dashboard Make sure you do not see the block and there are no errors on the page
    • Affected Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-53787-master

      Description

       The competencies module is not enabled.
      Debug info:
      Error code: competenciesarenotenabled
      Stack trace:
       
          line 66 of /competency/classes/api.php: moodle_exception thrown
          line 2312 of /competency/classes/api.php: call to core_competency\api::require_enabled()
          line 71 of /blocks/lp/classes/output/summary.php: call to core_competency\api::list_user_plans()
          line 65 of /blocks/lp/block_lp.php: call to block_lp\output\summary->__construct()
          line 288 of /blocks/moodleblock.class.php: call to block_lp->get_content()
          line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
          line 973 of /lib/blocklib.php: call to block_base->get_content_for_output()
          line 1025 of /lib/blocklib.php: call to block_manager->create_block_contents()
          line 476 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
          line 39 of /theme/bootstrapbase/renderers/core_renderer.php: call to core_renderer->standard_head_html()
          line 52 of /theme/clean/layout/columns3.php: call to theme_bootstrapbase_core_renderer->standard_head_html()
          line 1028 of /lib/outputrenderers.php: call to include()
          line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
          line 164 of /my/index.php: call to core_renderer->header()
      

        Attachments

          Activity

            People

            Assignee:
            fred Frédéric Massart
            Reporter:
            fred Frédéric Massart
            Peer reviewer:
            Serge Gauthier
            Participants:
            Component watchers:
            Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: