elearningstudio / moodle-report_filetrash

Utility for viewing and deleting orphaned files from the data and/or backup folder
www.elearningstudio.co.uk
6 stars 8 forks source link

missing $string['filetrash:view'] #1

Open kmiksi opened 10 years ago

kmiksi commented 10 years ago

I am getting a warning when accessing the page "Site Administration" > Users > Permissions > Capability overview.

Warning message:

Invalid get_string() identifier: 'filetrash:view' or component 'report_filetrash'. Perhaps you are missing $string['filetrash:view'] = ''; in MODLEDATA/report/filetrash/lang/en/report_filetrash.php?
* line 293 of /lib/classes/string_manager_standard.php: call to debugging()
* line 6896 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
* line 2977 of /lib/accesslib.php: call to get_string()
* line 44 of /admin/tool/capability/index.php: call to get_capability_string()

This can be solved putting the string in plugin lang file.

danowar2k commented 1 year ago

Found the same:

Invalid get_string() identifier: 'filetrash:view' or component 'report_filetrash'. Perhaps you are missing $string['filetrash:view'] = ''; in /moodle/application/htdocs/moodle/eval/report/filetrash/lang/en/report_filetrash.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7339 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 2589 of /lib/accesslib.php: call to get_string()
line 79 of /admin/tool/editrolesbycap/capabilityformfield.php: call to get_capability_string()
line 42 of /admin/tool/editrolesbycap/capabilityformfield.php: call to MoodleQuickForm_capability->get_capabitity_optgroups()
line 578 of /lib/pear/HTML/QuickForm.php: call to MoodleQuickForm_capability->__construct()
line 614 of /lib/pear/HTML/QuickForm.php: call to HTML_QuickForm->_loadElement()
line 49 of /admin/tool/editrolesbycap/locallib.php: call to HTML_QuickForm->addElement()
line 214 of /lib/formslib.php: call to tool_editrolesbycap_capability_form->definition()
line 57 of /admin/tool/editrolesbycap/index.php: call to moodleform->__construct()

Could you please at least merge the pull requests, even if no clients are using the report at the moment?