Discourse-tag-sidebars and deprecated inline script tags

Continuing the discussion from Modernizing inline script tags for templates & JS API:

Hi Discourse team! :waving_hand: On the Image.sc Forum admins are now seeing the warning:

[Admin Notice] One of your themes or plugins needs updating for compatibility with upcoming Discourse core changes. (id:discourse.script-tag-hbs) Identified theme: ‘discourse-tag-sidebars’.

I investigated how to fix it, but it looks like the discourse-tag-sidebars component hasn’t been updated in a few years? Our community loves the tag sidebars and I’d like to keep them working if possible. What’s the best way forward to resolve this impending incompatibility?

CC @david @awesomerobot

1 Like

Have you tried out the “Discourse Topic List Sidebars” theme component, which is listed as the replacement for discourse-tag-sidebars?

2 Likes

Nope! I’ll give that a try, thanks!

2 Likes

We are seeing the same warning for the ‘Light’ version of the Discourse Theme. Not clear what to do to resolve as this is a default theme.

[Admin Notice] One of your themes or plugins needs updating for compatibility with upcoming Discourse core changes. (id:discourse.script-tag-hbs) Identified theme: ‘Light’.

Any suggestions welcomed. :slight_smile:

Have you made any customizations? So, is something displayed in the custom code section of that theme? Something like:

Thank you @Moin, yes. Is there something in particular I should be looking for in the custom code that would be causing this?

I would look for the code mentioned in the dev-news topic you linked.

1 Like

Found and fixed for now. Thank you again!

1 Like