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

Error thrown by competencies privacy provider when competencies are not enabled

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-76354-401
    • Hide

      Setup

      1. Log in as admin
      2. Navigate to Competencies > Competency frameworks in site administration
      3. Press Add new competency framework
        • Name: My framework
        • ID number: myfr
        • Configure scales
          • Not yet competent: Default
          • Competent: Proficient
      4. Press on My framework in the list
      5. Press Add competency
        • Name: My competency
        • ID number: mycm
      6. Navigate to Profile from user menu
      7. Press Learning plans
      8. Press Add new learning plan
        • Name: My learning plan
      9. Press Add competency
        • Select My competency and press Add
      10. Phew!

      Manual privacy export

      1. Navigate to Advanced features in site administration
      2. Untick Enable competencies and save
      3. Save privacy-export.php to your WWWROOT (or copy/paste from https://docs.moodle.org/dev/Privacy_API/Utilities#Test_of_exporting_user_data)
      4. Execute the following from a terminal:

        $ php privacy-export.php --username=admin
        

      5. Confirm the process completes without the following error:

        Competencies are not enabled.
        

      6. Open the index.html in the file export directory (you'll be informed of this path upon completion)
      7. Confirm the presence of Competencies node, containing all exported competency data
      Show
      Setup Log in as admin Navigate to Competencies > Competency frameworks in site administration Press Add new competency framework Name: My framework ID number: myfr Configure scales Not yet competent: Default Competent: Proficient Press on My framework in the list Press Add competency Name: My competency ID number: mycm Navigate to Profile from user menu Press Learning plans Press Add new learning plan Name: My learning plan Press Add competency Select My competency and press Add Phew! Manual privacy export Navigate to Advanced features in site administration Untick Enable competencies and save Save privacy-export.php to your WWWROOT (or copy/paste from https://docs.moodle.org/dev/Privacy_API/Utilities#Test_of_exporting_user_data ) Execute the following from a terminal: $ php privacy-export.php --username=admin Confirm the process completes without the following error: Competencies are not enabled. Open the index.html in the file export directory (you'll be informed of this path upon completion) Confirm the presence of Competencies node, containing all exported competency data
    • 1
    • Team Hedgehog Sprint 2.1

      When you export user data and competencies are not enabled on the system an error is thrown.

      Exception occurred while processing privacy data
      19 mins 1 sec ago
      Exception occurred while calling core_competency\privacy\provider::export_user_data.
      This means that plugin core_competency did not complete the processing of data. The following exception information may be passed on to the plugin developer:

      Competencies are not enabled.

      #0 <pathtosite>/public_html/competency/classes/api.php(548): core_competency\api::require_enabled()
      #1 <pathtosite>/public_html/competency/classes/external/competency_framework_exporter.php(58): core_competency\api::count_competencies(Array)
      #2 <pathtosite>/public_html/lib/classes/external/exporter.php(125): core_competency\external\competency_framework_exporter->get_other_values(Object(core_renderer_cli))
      #3 <pathtosite>/public_html/competency/classes/privacy/provider.php(2082): core\external\exporter->export(Object(core_renderer_cli))
      #4 <pathtosite>/public_html/competency/classes/privacy/provider.php(1765): core_competency\privacy\provider::transform_framework_brief(Object(core_competency\competency_framework))
      #5 <pathtosite>/public_html/competency/classes/privacy/provider.php(1876): core_competency\privacy\provider::core_competency\privacy

      Unknown macro: {closure}

      (Object(stdClass))
      #6 <pathtosite>/public_html/competency/classes/privacy/provider.php(858): core_competency\privacy\provider::export_user_data_frameworks_in_context('4', Object(context_system))
      #7 <pathtosite>/public_html/competency/classes/privacy/provider.php(620): core_competency\privacy\provider::export_user_data_in_system_context('4')
      #8 <pathtosite>/public_html/lib/moodlelib.php(8084): core_competency\privacy\provider::export_user_data(Object(core_privacy\local\request\approved_contextlist))
      #9 <pathtosite>/public_html/privacy/classes/manager.php(578): component_class_callback('core_competency...', 'export_user_dat...', Array)
      #10 <pathtosite>/public_html/privacy/classes/manager.php(611): core_privacy\manager::component_class_callback('core_competency', 'core_privacy
      lo...', 'export_user_dat...', Array)
      #11 <pathtosite>/public_html/privacy/classes/manager.php(339): core_privacy\manager->handled_component_class_callback('core_competency', 'core_privacy
      lo...', 'export_user_dat...', Array)
      #12 <pathtosite>/public_html/admin/tool/dataprivacy/classes/task/process_data_request_task.php(114): core_privacy\manager->export_user_data(Object(core_privacy\local\request\contextlist_collection))
      #13 <pathtosite>/public_html/lib/cronlib.php(341): tool_dataprivacy\task\process_data_request_task->execute()
      #14 <pathtosite>/public_html/lib/cronlib.php(198): cron_run_inner_adhoc_task(Object(tool_dataprivacy\task\process_data_request_task))
      #15 <pathtosite>/public_html/lib/cronlib.php(76): cron_run_adhoc_tasks(1668619261)
      #16 <pathtosite>/public_html/admin/cli/cron.php(178): cron_run()
      #17 {main}

       

        1. 400.png
          400.png
          254 kB
        2. 401.png
          401.png
          248 kB
        3. master.gif
          master.gif
          1.91 MB
        4. privacy-export.php
          3 kB

            pholden Paul Holden
            derick-eld Derick Turner
            Huong Nguyen Huong Nguyen
            Andrew Lyons Andrew Lyons
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 21 minutes
                1h 21m

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