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

Invalid lang string used when exporting Tiny Autosave privacy data

XMLWordPrintable

    • MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-77001-401
    • Hide

      Setup

      1. Log in as admin
      2. Navigate to Preferences in user menu
      3. Press Editor preferences and choose TinyMCE editor
      4. Navigate to Courses > Manage courses and categories
      5. Press Add a new course
      6. Enter some content into the text editor (TinyMCE)
      7. Without editing or saving any data on the form, press the Dashboard link

      At this point there should be a new record in your {$CFG->prefix}_tiny_autosave database table - double check this, as it appears hit and miss as to whether it's created or not. We just need a record created for the purpose of this test

      Manual privacy export

      1. Save privacy-export.php to your WWWROOT (or copy/paste from https://docs.moodle.org/dev/Privacy_API/Utilities#Test_of_exporting_user_data)
      2. Execute the following from a terminal:

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

      3. Confirm the process completes without the following debugging notice:

        Invalid get_string() identifier: 'autosaves' or component 'tiny_autosave'.
        

      4. Open the index.html in the file export directory (you'll be informed of this path upon completion)
      5. Expand the Category Category 1 node
      6. Confirm the presence of Tiny autosave child node, containing all exported autosave data
      Show
      Setup Log in as admin Navigate to Preferences in user menu Press Editor preferences and choose TinyMCE editor Navigate to Courses > Manage courses and categories Press Add a new course Enter some content into the text editor (TinyMCE) Without editing or saving any data on the form, press the Dashboard link At this point there should be a new record in your { $CFG->prefix}_tiny_autosave database table - double check this, as it appears hit and miss as to whether it's created or not. We just need a record created for the purpose of this test Manual privacy export 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 debugging notice: Invalid get_string() identifier: 'autosaves' or component 'tiny_autosave'. Open the index.html in the file export directory (you'll be informed of this path upon completion) Expand the Category Category 1 node Confirm the presence of Tiny autosave child node, containing all exported autosave data

      The following is repeated many times when exporting privacy information which includes data from the Tiny Autosave plugin:

      ++ Invalid get_string() identifier: 'autosaves' or component 'tiny_autosave'. Perhaps you are missing $string['autosaves'] = ''; in /mnt/export/moodle/master/src/lib/editor/tiny/plugins/autosave/lang/en/tiny_autosave.php? ++
      * line 356 of /lib/classes/string_manager_standard.php: call to debugging()
      * line 7409 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      * line 149 of /lib/editor/tiny/plugins/autosave/classes/privacy/provider.php: call to get_string()
      * line 122 of /lib/editor/tiny/plugins/autosave/classes/privacy/provider.php: call to tiny_autosave\privacy\provider::export_autosaves()
      * line 8139 of /lib/moodlelib.php: call to tiny_autosave\privacy\provider::export_user_data()
      * line 578 of /privacy/classes/manager.php: call to component_class_callback()
      * line 611 of /privacy/classes/manager.php: call to core_privacy\manager::component_class_callback()
      * line 339 of /privacy/classes/manager.php: call to core_privacy\manager->handled_component_class_callback()
      * line 79 of /privacy-export.php: call to core_privacy\manager->export_user_data()
      

        1. (I) 3 Passed -- (401)MDL-77001.png
          48 kB
          Kim Jared Lucas
        2. (I) 3 Passed -- (Master)MDL-77001.png
          56 kB
          Kim Jared Lucas
        3. (I) 6 Passed -- (401)MDL-77001.png
          61 kB
          Kim Jared Lucas
        4. (I) 6 Passed -- (Master)MDL-77001.png
          48 kB
          Kim Jared Lucas
        5. privacy-export.php
          3 kB
          Paul Holden
        6. with_patch.png
          611 kB
          Huong Nguyen
        7. without_patch.png
          607 kB
          Huong Nguyen

            pholden Paul Holden
            pholden Paul Holden
            Huong Nguyen Huong Nguyen
            Andrew Lyons Andrew Lyons
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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