לא ניתן לבנות מחדש עקב שגיאות ערכת נושא

סיכום מבוסס בינה מלאכותית

The user pfaffman is unable to rebuild their Discourse site due to theme errors caused by console references in theme components, preventing login to the UX. They need to restore the database to a new server and rebuild, but the issue persists. IAmGav suggests safe mode, but it’s not applicable since login is impossible. IAmGav recommends disabling themes via SQL or commenting out problematic plugins. pfaffman suspects a plugin-theme interaction issue, which works in development but fails in production, possibly due to JavaScript restrictions, and may require help from the plugin developer. codinghorror checks if the issue was resolved, but pfaffman confirms it remains unresolved.

I have a site that has not been upgraded in a long while. I can’t log in to the UX, it seems.

It has theme component(s) that have references to console in them that are causing the theme(s) to be broken.

Is there a way that I can disable these themes in Rails so that I can rebuild the site and then fix the themes after it’s back up?

Or, can I set some generic theme as the default so maybe it can ignore all of the theme components?

have you tried Safe mode ?

mysite.com/safe-mode

Thanks! But safe mode won’t help. I can’t log in to the site.

I need to restore this database to another server. I can’t rebuild that site because the theme is causing errors when it rebuilds.

I can’t log in to the broken server. I need to update the database on the broken server, back it up, restore to the new server, and then rebuild the container.

can you log into the db and maybe run an update command ?

I restored the database on the new server. Maybe the problem is still in a plugin and not the theme component.

well easy to remove the plugin.

just comment it out.

otherwise use sql to disable themes and theme components

UPDATE themes
SET enabled = false
WHERE id <> 1

Did you get this working @pfaffman ?

No. It seems to be some interaction between the plugin and, I think, some theme components. The plugin works on my development instance, but with the full database in production it fails.

I’m afraid that it’s going to take some help from the plugin developer.

I think it has to do with the not-so-new restrictions on javascript, but I still don’t know.