Your site may not work because a theme / component has errors

I just did an update and now I get “Your site may not work because a theme / component has errors.” when I go to my site. The problem is it gives me no idea what the error is. Nothing has changed on my side. Only the update. Can anyone help me at least figure out what it is about my theme that is offending Discourse?

EDIT: It seems some scripts I put in the HEAD section of my script are no longer showing up. These just load some news feeds. Can anyone shed some light on this?

1 Like

This might be a good starter Preparing for Discourse's upgrade to Ember 5

Is this a theme you’ve built yourself?

Yes. I didn’t even know this was happening. I’m going to revert the site and read that before trying the update again. Thanks for pointing me in the right direction.

The issue I’m having is I have no idea what it is that this new Discourse doesn’t like about my site. Is there an error log I can look at somewhere? All it tells me is that a theme/component has errors. No indication of what errors.

Did you check the browser console?

there’s also the /logs page

Thanks, I didn’t even know about the /logs page but that helped a lot. “Ember is not defined”. Looks like I’m going to spend tomorrow Googling. lol.

Sounds a broken component/plugin. And that we knew already. Does it give any hint what it could be? Can you paste that error here?

1 Like

The Ember global usage has been deprecated. This can be fixed relatively easily. If you figure out the faulty component or have trouble fixing your custom code, feel free to ask; we’ll help!

3 Likes

So, I’ve been thinking the best way to deal with this is to just spin up a new Discourse and restore my backup into it. My existing Discourse is on a 6 year old version of Ubuntu and it’s no longer getting LTS updates. Time for a refresh.

Just to make things difficult, however, I want to take the opportunity to change the domain. I have the current Discourse installed as https://mydomain.com. I want the new Discourse installed as https://discourse.mydomain.com. I’m setting up a new Discourse in https://discourse.mydomain.com as I type this. My question is simply this:

What will happen if I take the backup of mydomain.com and restore it into discourse.mydomain.com? Will everything just magically work under the new domain? I don’t want to lose my users or post history.

Never mind. I just did it and it worked fine. :slight_smile: Thanks to all who helped me in this thread. I’m going to mark this solved.

How did you solve this?

Well, as I mentioned above, the VPS I was using was 6 years old so I created a new one on Ubuntu 22.04 LTS, installed Discourse fresh, and then restored a backup of my forum into the new Discourse instance. All my problems went away. No data lost. No downtime other than my news feeds not working for awhile.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.