Theme component update issue

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?

A lot depends on the theme component and what version of Discourse you’re using. Could you provide a little more detail?

You can find the exact version of Discourse you’re on from the admin Dashboard. If you can copy the blue link to share here:

yep exactly this version. we haven’t updated discourse for over a year till recently, guessing the component stopping cuz the ember 5? dunno

1 Like

And what theme component is it?

1 Like

we made it ourselves

You’re going to need to share the code if you want someone to help you fix it… :slight_smile:

3 Likes

Here, tysm for your help

1 Like

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.

3 Likes