Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4497

REST exception handler: Competencies are not enabled.

XMLWordPrintable

    • Hide

      Test on one device of your choice:

      1. On any site, check if disabling competencies using advanced features (admin settings).
      2. Check you can see learning plans from user menu when enabled and not when disabled.
      3. Check you can see competencies tab inside a course when enabled and not when disabled.
      4. As a teacher see competencies inside a participant page on a course when enabled and not when disabled.
      Show
      Test on one device of your choice: On any site, check if disabling competencies using advanced features (admin settings). Check you can see learning plans from user menu when enabled and not when disabled. Check you can see competencies tab inside a course when enabled and not when disabled. As a teacher see competencies inside a participant page on a course when enabled and not when disabled.
    • MOODLE_402_STABLE
    • MOODLE_404_STABLE
    • Moodle Apps - 2024 i1.2

      If competencies are not enabled on a Moodle site, when viewing the user menu in the mobile app, an exception is thrown and output to the error log:

      REST exception handler: Competencies are not enabled. Debug:
      Error code: competenciesarenotenabled

      • line 96 of /competency/classes/api.php: moodle_exception thrown
      • line 2374 of /competency/classes/api.php: call to core_competency\api::require_enabled()
      • line 66 of /admin/tool/lp/classes/output/plans_page.php: call to core_competency\api::list_user_plans()
      • line 656 of /admin/tool/lp/classes/external.php: call to tool_lp\output\plans_page->__construct()
      • line 1517 of /webservice/lib.php: call to tool_lp\external::data_for_plans_page()
      • line 1363 of /webservice/lib.php: call to webservice_base_server->execute()
      • line 44 of /webservice/rest/server.php: call to webservice_base_server->run()

      It appears the call is originating from:

      "POST /webservice/rest/server.php?moodlewsrestformat=json&wsfunction=tool_lp_data_for_course_competencies_page HTTP/1.1" "-" "

      While there is no issue for the user, the repetition of this error to the log is unnecessary. Is there a way to check if competencies are enabled for making the API call?

      Thank you!

            pferre22 Pau Ferrer
            meltonml Michelle Melton
            Dani Palou Dani Palou
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.