oliviervalentin / moodle-report_coursemanager

Course Managet is a report tool for Moodle for helping teachers to clean and manage their courses and contents. It is based on an automatic task which calculates reports, that are displayed in a general dashboard and directly in courses.
GNU General Public License v3.0
8 stars 5 forks source link

Invalid get_string() identifier: 'pluginname' or component 'grade' #70

Open bfriesenvcc opened 3 months ago

bfriesenvcc commented 3 months ago

In Moodle 4.1.7, we're getting the following error on the coursemanager page: report/coursemanager/course_files.php?courseid=xxx

Invalid get_string() identifier: 'pluginname' or component 'grade'. Perhaps you are missing $string['pluginname'] = ''; in mod/grade/lang/en/grade.php? line 356 of /lib/classes/string_manager_standard.php: call to debugging() line 7414 of /lib/moodlelib.php: call to core_string_manager_standard->get_string() line 106 of /report/coursemanager/course_files.php: call to get_string()

Notice: A non well formed numeric value encountered in /data/shares/our-path-removed/report/coursemanager/course_files.php on line 152

image

oliviervalentin commented 3 months ago

Still have this problem with some plugins names... Sometimes, when a file is not in an activity, my code isn't able to retrieve the real name. I think I have the same problem for example with H5P modules in contents bank.

I'm coming back from french MoodleMoot, and I think i'll make this tool evolve next year. My teachers don't use it, for they don't know what to do with it ! I want to change my point of view, and use files distribution and course weight to calculate carbon impact for storage and transport of these datas.

On your side, would you like to keep this tool ? Do you find it useful ? I'm always interested in all returns concerning features !

Olivier

bfriesenvcc commented 3 months ago

We would definitely find it useful, specifically for the cleanup of orphaned assignment submissions.

We have several courses that never end and instead students can start in any month of the year. We must retain student data for 2 years, but after that we'd like to be able to clear it out. I thought I was doing that by unenrolling them after 2 years, but when I discovered a 5 MB (5 Mo) course I realized it was because OLD assignment submissions were hanging around even after the students were removed. That's what lead me to your useful plugin..

oliviervalentin commented 3 months ago

OK, I'll see if I can make it evolve. This report and graph are a bit long to calculate. My new idea was to use these information to give a "score" to teachers, regarding total filesize of their courses, and comparing it to the whole platform and to other teachers by calculating average.

Feel free to share your thoughts about filesize tool !

Olivier

bfriesenvcc commented 2 months ago

Honestly, Olivier, our instructors wouldn't be interested in that information. Some days I feel like they don't even look at their own courses, and just put absolute garbage out there. For example, we provide a standard template with instructions FOR THEM on how to use is. Half of them leave it sitting there, visible to students and just add their stuff to the bottom. It's very frustrating when I see those.

I certainly appreciate all of your hard work on this plugin.

oliviervalentin commented 2 months ago

Thank you for you comment ! I'll add the "course score" when I can, hope to see a result in my university. 😃