Discourse-tag-sidebars and deprecated inline script tags

AI-generated summary

Users are reporting compatibility warnings related to deprecated inline script tags in Discourse themes, specifically with the ‘discourse-tag-sidebars’ component and the default ‘Light’ theme. Curtis_Rueden seeks help to preserve tag sidebars on Image.sc Forum, and david recommends switching to the updated ‘Discourse Topic List Sidebars’ theme component as a replacement. TestingRico encounters the same warning on the ‘Light’ theme and, after guidance from Moin, identifies and removes problematic custom code in the theme’s settings, resolving the issue TestingRico. The root cause ties back to upcoming Discourse core changes requiring modernization of inline script tags, as detailed in this dev news topic. Community members are advised to audit custom code sections in their themes for deprecated script usage and migrate to supported alternatives where possible.

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

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

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

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.

Found and fixed for now. Thank you again!