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

Error when exporting competencies from the Privacy API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 3.3.5, 3.4.2, 3.5
    • Fix Version/s: None
    • Component/s: Competencies, Privacy
    • Labels:
      None

      Description

      Steps to reproduce:

      1. Download the CSV with the competency framework "Australian Curriculum - Science F-10" from https://moodle.net/mod/data/view.php?d=12&rid=608
      2. Login as admin
      3. Access to "Site administration | Competencies | Import competency framework"
      4. Import the CSV file downloaded previously.
      5. Use the script "Test of exporting user data" from https://docs.moodle.org/dev/Privacy_API/Utilities#Test_of_exporting_user_data for exporting the data of your site.

       

      Expected result

      No errors should be displayed.

      Current result

      The following error is thrown:

       

      Processing export for User Admin
      Default exception handler: Exception - Argument 1 passed to core\external\exporter::export() must be an instance of renderer_base, instance of bootstrap_renderer given, called in [dirroot]/competency/classes/privacy/provider.php on line 1869 Debug: 
      Error code: generalexceptionmessage
      * line 120 of /lib/classes/external/exporter.php: TypeError thrown
      * line 1869 of /competency/classes/privacy/provider.php: call to core\external\exporter->export()
      * line 1552 of /competency/classes/privacy/provider.php: call to core_competency\privacy\provider::transform_framework_brief()
      * line 1592 of /competency/classes/privacy/provider.php: call to core_competency\privacy\provider::core_competency\privacy\{closure}()
      * line 645 of /competency/classes/privacy/provider.php: call to core_competency\privacy\provider::export_user_data_frameworks_in_context()
      * line 447 of /competency/classes/privacy/provider.php: call to core_competency\privacy\provider::export_user_data_in_system_context()
      * line 221 of /privacy/classes/manager.php: call to core_competency\privacy\provider::export_user_data()
      * line 76 of /mdkscriptrun..php: call to core_privacy\manager->export_user_data()
      !!! Exception - Argument 1 passed to core\external\exporter::export() must be an instance of renderer_base, instance of bootstrap_renderer given, called in [dirroot]/competency/classes/privacy/provider.php on line 1869 !!!
      !! 
      Error code: generalexceptionmessage !!
      !! Stack trace: * line 120 of /lib/classes/external/exporter.php: TypeError thrown
      * line 1869 of /competency/classes/privacy/provider.php: call to core\external\exporter->export()
      * line 1552 of /competency/classes/privacy/provider.php: call to core_competency\privacy\provider::transform_framework_brief()
      * line 1592 of /competency/classes/privacy/provider.php: call to core_competency\privacy\provider::core_competency\privacy\{closure}()
      * line 645 of /competency/classes/privacy/provider.php: call to core_competency\privacy\provider::export_user_data_frameworks_in_context()
      * line 447 of /competency/classes/privacy/provider.php: call to core_competency\privacy\provider::export_user_data_in_system_context()
      * line 221 of /privacy/classes/manager.php: call to core_competency\privacy\provider::export_user_data()
      * line 76 of /mdkscriptrun..php: call to core_privacy\manager->export_user_data()
       !!
      

       

       

        Attachments

          Activity

            People

            Assignee:
            dobedobedoh Andrew Nicols
            Reporter:
            sarjona Sara Arjona (@sarjona)
            Participants:
            Component watchers:
            Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: