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

Data privacy page tries to prefetch invalid string, causes debugging

    XMLWordPrintable

Details

    • MOODLE_403_STABLE
    • MOODLE_403_STABLE
    • Hide
      1. Log in as admin
      2. Purge caches
      3. Navigate to Users > Privacy and policies > Privacy settings in site administration
      4. Ensure Allow filtering of exports by course is enabled and save
      5. Navigate to Users > Privacy and policies > Data requests in site administration
      6. Confirm absence of the following message in your webserver logs:

        Debugging: Invalid get_string() identifier: 'selectedcourses' or component 'tool_dataprivacy'.
        

      Show
      Log in as admin Purge caches Navigate to Users > Privacy and policies > Privacy settings in site administration Ensure Allow filtering of exports by course is enabled and save Navigate to Users > Privacy and policies > Data requests in site administration Confirm absence of the following message in your webserver logs: Debugging: Invalid get_string() identifier: 'selectedcourses' or component 'tool_dataprivacy'.

    Description

      Loading the Data requests page after purging caches (or performing an upgrade), triggers the following notice in webserver logs:

      [php:notice] [pid 21] [client 172.23.0.1:34734] Debugging: Invalid get_string() identifier: 'selectedcourses' or component 'tool_dataprivacy'.
      Perhaps you are missing $string['selectedcourses'] = '';
      in /var/www/html/admin/tool/dataprivacy/lang/en/tool_dataprivacy.php? in 
      * line 356 of /lib/classes/string_manager_standard.php: call to debugging()
      * line 109 of /lib/external/externallib.php: call to core_string_manager_standard->get_string()
      * line ? of unknownfile: call to core_external::get_string()
      * line 251 of /lib/external/classes/external_api.php: call to call_user_func_array()
      * line 83 of /lib/ajax/service.php: call to core_external\\external_api::call_external_function()
      * line 33 of /lib/ajax/service-nologin.php: call to require_once()
      , referer: http://localhost:8000/admin/tool/dataprivacy/datarequests.php
      

      Because it tries to prefetch a non-existing lang string (the correct string is 'selectcourses')

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              pholden Paul Holden
              Sam Marshall Sam Marshall
              Andrew Lyons Andrew Lyons
              Ron Carl Alfon Yu Ron Carl Alfon Yu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 47 minutes
                  47m

                  Clockify

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