Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommended plugins are actually required, Bulk enrolment and Easy Enrollment #48

Open
drachels opened this issue Apr 6, 2024 · 0 comments

Comments

@drachels
Copy link

drachels commented Apr 6, 2024

Hi Chris, I have always enjoyed using your theme plugins, and since I am retired, I almost always have debug set to maximum on my development and demo sites. In your latest version of theme LearnR, today I finally had a chance to track down a debugging message I was getting every time I tried to use LearnR.

Invalid get_string() identifier: 'pluginname' or component 'local_bulkenrol'. Perhaps you are missing $string['pluginname'] = ''; in /lang/en/local_bulkenrol.php?

line 355 of /lib/classes/string_manager_standard.php: call to debugging()
line 7519 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 613 of /theme/learnr/classes/output/core_renderer.php: call to get_string()
line 58 of /theme/learnr/classes/output/core_renderer.php: call to theme_learnr\output\core_renderer->coursemanagementdash()
line 219 of /lib/mustache/src/Mustache/Context.php: call to theme_learnr\output\core_renderer->headerbuttons()
line 138 of /lib/mustache/src/Mustache/Context.php: call to Mustache_Context->findVariableInStack()
line 90 of /var/moodledata/moodledatadev/localcache/mustache/1712428517/learnr/__Mustache_265bc5b8f7a241fb852ac1e2f3ff44cc.php: call to Mustache_Context->findDot()
line 66 of /lib/mustache/src/Mustache/Template.php: call to __Mustache_265bc5b8f7a241fb852ac1e2f3ff44cc->renderInternal()
line 208 of /lib/outputrenderers.php: call to Mustache_Template->render()
line 218 of /theme/learnr/layout/drawers.php: call to renderer_base->render_from_template()
line 1486 of /lib/outputrenderers.php: call to include()
line 1412 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 116 of /index.php: call to core_renderer->header()

The problem is found in: line 613 of /theme/learnr/classes/output/core_renderer.php: call to get_string()
On the LearnR download page, I finally found that the, Bulk enrolment and Easy Enrollment, plugins are recommended but when you go read the code, they are required. After I installed them I no longer get the debug message. I am sure that you know the problem can be fixed by checking to see if they are installed, before trying to create the arrays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant