Our site’s theme component won’t work with the latest Discourse version. Whenever we try fixing it in safe mode following console prompts, the site crashes as soon as we open the component. How can we fix this?
AI-generated summary
A user (user14893) reports that their custom theme component breaks after updating Discourse to the latest version, crashing the site when accessed—even in safe mode. JammyDodger asks for details, including the Discourse version and component name, which user14893 confirms is an older version (over a year outdated) and suspects Ember 5 compatibility issues. The component was self-built (user14893), and its code is shared via GitHub: https://github.com/ttlclub/search-filter (user14893). RGJ reviews the component and notes it triggers deprecation warnings and heavily overrides Handlebars (HBS) templates. They advise comparing template changes between the original Discourse version and the current one, syncing or reapplying customizations. For long-term maintainability, RGJ recommends refactoring the component to leverage plugin outlets instead of template overrides. The core issue appears to stem from outdated code incompatible with modern Discourse/Ember, requiring either patching or a rewrite.
yep exactly this version. we haven’t updated discourse for over a year till recently, guessing the component stopping cuz the ember 5? dunno
And what theme component is it?
we made it ourselves
You’re going to need to share the code if you want someone to help you fix it… ![]()
https://github.com/ttlclub/search-filter
Here, tysm for your help
Your component is throwing a number of deprecation warnings in the console, so you should look at those.
More important, it’s overriding quite some HBS templates. You should analyze the changes for these templates between the version the theme component was built for, and the current version of Discourse, and synchronize the changes (or copy the templates and re-apply your own modifications).
To be honest, at a first glance it would be better if you (at least partly) rewrote the theme component to make better use of plugin outlets.
