trema-tech / moodle-theme_trema

Theme trema, a Moodle LMS plugin.
https://moodle.org/plugins/theme_trema
GNU General Public License v3.0
39 stars 19 forks source link

Bug: theme/trema/classes/output/core_renderer.php: Error thrown #205

Open francarballo opened 1 day ago

francarballo commented 1 day ago

Prerequisites

What happened?

Hi. I experience this error, and the moodle crashes. I'm running moodle 4.0

Error Exception - Class 'theme_trema\output\filter_manager' not found

Debug info: Error code: generalexceptionmessage

Stack trace: line 231 of /theme/trema/classes/output/core_renderer.php: Error thrown line 219 of /lib/mustache/src/Mustache/Context.php: call to theme_trema\output\core_renderer->standard_head_html() line 138 of /lib/mustache/src/Mustache/Context.php: call to Mustache_Context->findVariableInStack() line 31 of /var/www/moodledata_cw/localcache/mustache/1728573378/trema/Mustache_eb4b45ecbe4f60a84b8a56326203be46.php: call to Mustache_Context->findDot() line 13 of /var/www/moodledata_cw/localcache/mustache/1728573378/trema/__Mustache_555d939f0237008e266f5d67ff9839d8.php: call to Mustache_eb4b45ecbe4f60a84b8a56326203be46->renderInternal() line 67 of /lib/mustache/src/Mustache/Template.php: call to Mustache_555d939f0237008e266f5d67ff9839d8->renderInternal() line 208 of /lib/outputrenderers.php: call to Mustache_Template->render() line 126 of /theme/trema/layout/drawers.php: call to renderer_base->render_from_template() line 1477 of /lib/outputrenderers.php: call to include() line 1403 of /lib/outputrenderers.php: call to core_renderer->render_page_layout() line 1989 of /lib/setuplib.php: call to core_renderer->header() line 86 of /user/preferences.php: call to bootstrap_renderer->call()

What do you think should have happened?

I expected the theme to work properly.

Steps to reproduce

1) I installed the theme as I usually do, from the moodle installer. 2) The installation was completed successfully. 3) When I go to the theme selection and choose Trema, moodle crashes and only the error is displayed. 4) The only way to get out of this error is if I previously had a window open with my profile so I could choose another theme.

Screenshots

No response

Moodle version

4.0.7

Installed Moodle UI Language packs.

If other language(s), please specify

No response

Workaround

No response

Additional information

No response

System information

Client Device type: (e.g. Desktop, iPhone or iPad, Android phone or tablet, Other - specify) Client Operating System: (e.g. Windows, Linux, Mac OS, Android, iOS, Other - specify) Client Web Browser: (e.g. Chrome, Edge, Firefox, Safari, Safe Exam Browser, Moodle Mobile App) Server Operating System: (e.g. Windows, Linux, Mac OS, Other - specify) Server Webserver: (e.g. Apache, Nginx, IIS, Other - specify) Server PHP: (e.g. 7.4, 8.0, 8.1, 8.2, 8.3, Other - specify)

Code of Conduct

michael-milette commented 1 day ago

This issue was recently fixed. It is specific to Moodle 4.0. Please use the dev branch for 4.0 until it is merged into the main branch.

sbt-sysadmin commented 14 hours ago

Same issue as OP using Moodle 4.3.4, Moodle 4.4 & Moodle 4.5.

Tried dev branch.

Tried full uninstall of Trema and reinstall.

Details:

Exception - Class "theme_trema\output\filter_manager" not found Debug info: Error code: generalexceptionmessage Stack trace: line 231 of /theme/trema/classes/output/core_renderer.php: Error thrown line 219 of /lib/mustache/src/Mustache/Context.php: call to theme_trema\output\core_renderer->standard_head_html() line 138 of /lib/mustache/src/Mustache/Context.php: call to Mustache_Context->findVariableInStack() line 31 of /var/moodledata/localcache/mustache/1729018503/trema/Mustache_73560842f9d6c5bc337558df4f13b989.php: call to Mustache_Context->findDot() line 13 of /var/moodledata/localcache/mustache/1729018503/trema/Mustache_bc67ed95d6d37c685879434f38adb23f.php: call to __Mustache_73560842f9d6c5bc337558df4f13b989->renderInternal() line 67 of /lib/mustache/src/Mustache/Template.php: call to __Mustache_bc67ed95d6d37c685879434f38adb23f->renderInternal() line 192 of /lib/classes/output/renderer_base.php: call to Mustache_Template->render() line 131 of /theme/trema/layout/drawers.php: call to core\output\renderer_base->render_from_template() line 972 of /lib/classes/output/core_renderer.php: call to include() line 888 of /lib/classes/output/core_renderer.php: call to core\output\core_renderer->render_page_layout() line 72 of /admin/themeselector.php: call to core\output\core_renderer->header()