Custom Wizard Plugin šŸ§™

I created a Custom Wizard and made several submissions as tests, and I can’t delete them manually. According to what I read in another thread, the only way is via Rails, but I can’t figure out which commands to use, ChatGPT fails a lot here.

1 Like

Hi :slight_smile:
It looks like a very recent update to Discourse Core (over the June 6–7 weekend) has introduced a breaking architectural change that causes the discourse-custom-wizard plugin to crash the entire application boot cycle.

Even attempting to visit /safe-mode fails with a global 500 error because the crash occurs during initialization middleware registration.

Here is the exact fatal error trace pulled from Logster:

ActionView::Template::Error (undefined method 'admin_stylesheets' for class DiscoursePluginRegistry)
lib/stylesheet/manager/builder.rb:199:in `Stylesheets::Manager::Builder#plugins_digest'

It appears that during the asset/stylesheet compilation phase (plugins_digest), core Discourse is invoking an admin_stylesheets method on the DiscoursePluginRegistry which is throwing an undefined method exception, likely due to a mismatch with how the custom wizard registers or extends administrative styles.

Disabling the plugin in app.yml and running a complete container rebuild allows the forum to boot normally, confirming the crash is isolated to the wizard’s integration hooks.

Could you please look into updating the registry/stylesheet hooks for compatibility with current core changes?

Thanks!

1 Like

I can confirm the same error as well. Unfortunately, I had to suspend the plugin for the time being.

Thanks for the support.

Hey folks! Thanks to the various people who reached out to me through various media about this issue. It’s fixed and the plugin is working again.

9 Likes

I’ve encountered an issue since updating to the latest version of Discourse and the plugin.

I have a field set up for users to select tags. I’ve restricted the tags to a tag group, and selected the group in the Tag Groups section.

This used to work fine - users could only select from tags within that tag group.

Now, though, it’s as if the tag group doesn’t exist, and users are able to select any tag.

I tried to remove the tag group, save, and add it back, and that didn’t work. I also tried not using a tag group at all, and selecting the tags in the Content section, but that’s limited to 5 tags and I have more than that.

Not sure what to do - this is completely breaking a workflow with my form. I’m only using this option as a workaround since multi-select in a dropdown is not an option. Users can only select up to 3 options, so a group of checkboxes doesn’t really work either.

Any thoughts on a different workaround or whether I might be messing up somehow?

2 Likes

Hey Jen, I just pushed a few fixes to the plugin. Please update and let me know how you go.

5 Likes

Thanks so much @angus, just updated and all seems to be working.

As I was rebuilding, I noticed this come across the screen and thoguht I’d give you a heads up:

[DEPRECATION] Template.error_mode= is deprecated. Use Environment#error_mode= instead. Called from /var/www/discourse/plugins/discourse-custom-wizard/plugin.rb:99:in 'block in Plugin::Instance#activate!'
[DEPRECATION] Template.register_filter is deprecated. Use Environment#register_filter instead. Called from /var/www/discourse/plugins/discourse-custom-wizard/plugin.rb:106:in 'block in Plugin::Instance#activate!'
I, [2026-07-22T09:33:52.756446 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile:build'
[assemble_ember_build] Node.js heap_size_limit is less than 2048MB. Setting --max-old-space-size=2048 and CHEAP_SOURCE_MAPS=1
[assemble_ember_build] No existing build info file found.
Fetching and extracting https://get.discourse.org/discourse-assets/2026.7.0-latest-6accc7b7/production.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 23.3M  100 23.3M    0     0  30.9M      0 --:--:-- --:--:-- --:--:--  184M
Prebuilt assets downloaded and extracted successfully.
[assemble_ember_build] Reusing existing core ember build. All done.
[DEPRECATION] Template.error_mode= is deprecated. Use Environment#error_mode= instead. Called from /var/www/discourse/plugins/discourse-custom-wizard/plugin.rb:99:in 'block in Plugin::Instance#activate!'
[DEPRECATION] Template.register_filter is deprecated. Use Environment#register_filter instead. Called from /var/www/discourse/plugins/discourse-custom-wizard/plugin.rb:106:in 'block in Plugin::Instance#activate!'
2 Likes