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

Exception related to the SCORM activity hinders privacy data processing

XMLWordPrintable

    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-81472-403
    • Hide

      Pre-requisites

      1. Disable cron (so that we can manually execute tasks)
      2. Navigate to Server > System paths and set "Path to PHP CLI" with the proper value (for instance, /usr/bin/php).

      Test

      1. Log in as admin
      2. Navigate to Users > Privacy and policies > Privacy settings in site administration
        • Enable Contact the privacy officer
        • Enable Automatic data deletion request approval
        • Save
      3. Create a user
      4. Create a course
      5. Enrol user as student in course
      6. Create a SCORM package activity
      7. Log out
      8. Log in as test user
      9. Navigate to SCORM activity
      10. Press Enter
      11. Complete the activity, just selecting any answers
      12. Navigate to Profile from user menu
      13. Press Delete my account and save
      14. Log out
      15. Log in as admin
      16. Navigate to Server > Tasks > Ad hoc tasks in site administration
      17. Press Run all for the process_data_request_task row
      18. Confirm you want to run the task
      19. Confirm the task completes successfully without the following message:

        ++ Call to undefined function mod_scorm\privacy\scorm_delete_tracks() ++
        

      Show
      Pre-requisites Disable cron (so that we can manually execute tasks) Navigate to Server > System paths and set "Path to PHP CLI" with the proper value (for instance, /usr/bin/php). Test Log in as admin Navigate to Users > Privacy and policies > Privacy settings in site administration Enable Contact the privacy officer Enable Automatic data deletion request approval Save Create a user Create a course Enrol user as student in course Create a SCORM package activity Upload example.zip to Package file Log out Log in as test user Navigate to SCORM activity Press Enter Complete the activity, just selecting any answers Navigate to Profile from user menu Press Delete my account and save Log out Log in as admin Navigate to Server > Tasks > Ad hoc tasks in site administration Press Run all for the process_data_request_task row Confirm you want to run the task Confirm the task completes successfully without the following message: ++ Call to undefined function mod_scorm\privacy\scorm_delete_tracks() ++

      Hi. I have a client with using a Moodle LMS (Moodle 4.3.3+ (Build: 20240215)) which is receiving the following error messaging (sent to Privacy officer) when deleting users via the Bulk user actions tool:

      Exception occurred while calling mod_scorm\privacy\provider::delete_data_for_user.
      This means that plugin mod_scorm did not complete the processing of data. The following exception information may be passed on to the plugin developer:

      Call to undefined function mod_scorm\privacy\scorm_delete_tracks()
       
      #0 /home/.../public_html/lib/moodlelib.php(8292): mod_scorm\privacy\provider::delete_data_for_user(Object(core_privacy\local\request\approved_contextlist)) 
      #1 /home/.../public_html/privacy/classes/manager.php(578): component_class_callback('mod_scorm
      priva...', 'delete_data_for...', Array) 
      #2 /home/.../public_html/privacy/classes/manager.php(611): core_privacy\manager::component_class_callback('mod_scorm', 'core_privacy
      lo...', 'delete_data_for...', Array) 
      #3 /home/.../public_html/privacy/classes/manager.php(415): core_privacy\manager->handled_component_class_callback('mod_scorm', 'core_privacy
      lo...', 'delete_data_for...', Array) 
      #4 /home/.../public_html/admin/tool/dataprivacy/classes/task/process_data_request_task.php(151): core_privacy\manager->delete_data_for_user(Object(core_privacy\local\request\contextlist_collection)) 
      #5 /home/.../public_html/lib/classes/cron.php(508): tool_dataprivacy\task\process_data_request_task->execute() 
      #6 /home/.../public_html/lib/classes/cron.php(302): core\cron::run_inner_adhoc_task(Object(tool_dataprivacy\task\process_data_request_task)) 
      #7 /home/.../public_html/lib/classes/cron.php(128): core\cron::run_adhoc_tasks(1712151064, 0, true, 1712151062) 
      #8 /home/.../public_html/admin/cron.php(80): core\cron::run_main_process(0) 
      #9 \{main}
      

       

      I have a few other platforms using the same server and software but they're not having this issue. Any help or advice would be very welcome.

      Apologies if this is not the right place to post the issue.

      Thank you.
      Mark

        1. MDL-81472.png
          436 kB
          Ron Carl Alfon Yu

            pholden Paul Holden
            MarkEggu Mark Baldwin
            Dan Marsden Dan Marsden
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            9 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, 30 minutes
                1h 30m

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