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

Missing lang string 'nowarningsonselected' or component 'tiny_accessibilitychecker'

XMLWordPrintable

    • MOODLE_402_STABLE
    • MOODLE_401_STABLE
    • MDL-77212-401
    • Hide
      1. Log in as admin
      2. Enable TinyMCE editor and set as preferred from user profile
      3. Edit your profile
      4. In the Description field, press Tools > Accessibility checker from the editor menu
      5. View your webserver errorlog, e.g.

        $ tail -f /var/log/apache2/moodle-error.log
        

      6. Confirm there is no debugging message stating the following

        Invalid get_string() identifier: 'nowarningsonselected' or component 'tiny_accessibilitychecker'
        

      7. Confirm the editor dialogue shows the message "Congratulations, no accessibility issues found!"
      Show
      Log in as admin Enable TinyMCE editor and set as preferred from user profile Edit your profile In the Description field, press Tools > Accessibility checker from the editor menu View your webserver errorlog, e.g. $ tail -f /var/log/apache2/moodle-error.log Confirm there is no debugging message stating the following Invalid get_string() identifier: 'nowarningsonselected' or component 'tiny_accessibilitychecker' Confirm the editor dialogue shows the message "Congratulations, no accessibility issues found!"

      While examining web server logs @ MDL-73019 (part of the PHP 8.1 Epic), this problem has been detected. It happens 14 times in logs (note the logs in that issue are aggregated from 3 different behat jobs, so they could be 2-6-6 or any other combination).

      218803:[Sun Feb 12 12:10:17.109398 2023] [php:notice] [pid 5252] [client 172.29.0.4:41404] Debugging: Invalid get_string() identifier: 'nowarningsonselected' or component 'tiny_accessibilitychecker'. Perhaps you are missing $string['nowarningsonselected'] = ''; in /var/www/html/lib/editor/tiny/plugins/accessibilitychecker/lang/en/tiny_accessibilitychecker.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://webserverd658860a71ecf312/behatrun1/user/editadvanced.php?id=2&course=1&returnto=profile

      So this issue is about to fix that missing lang string (or lang file) and ensure that it doesn't appear on weblogs anymore (non-js and js, both boost and classic).

      Ciao

      PS: This only has been checked in master (4.2dev), so it may happen in older branches too, although the problem was not detected in 4.1.0 release testing @ MDL-76064

            pholden Paul Holden
            stronk7 Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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