Loading route error in CWP, damaged Wizards

Environment

Discourse Version: 3.4.0.beta2-dev [ed4791d0b0]

Plugin Commit: 2.9.1[f45a117]

Steps to Reproduce

I originally attempted to post my report on this thread since it was the same issue, but I accidentally spammed your system attempting to post to a locked thread (that I was referencing for how to provide my wizard json >_< ) and then your system marked all my posts as spam and banned me. :smiley: My bad. Here is the post I meant to provide.

–

Hi, I am also getting this error after updating to 3.4.0.beta3-dev. It is not sporadic:

Clicking “Try Again” spawns the same message. Accessing the wizard’s URL while logged out / in incognito mode redirects to a basic “You need to be logged in to access this wizard” (no error message).

–

In trying to answer your diagnostic questions, however, I discovered an interesting wrinkle.

The above message comes up when trying to visit this URL for the wizard:{siteurl}/w/test-wizard/steps/step_1.

But I noticed in the Wizard composer, it sends you to just /test-wizard/, so I tried visiting that instead. That gives me a page with no error message, but the wizard is instead blank.

–

Discourse ver is 3.4.0.beta2-dev (ed4791d0b0)
CWP ver is 2.9.1(f45a117)

I am a subscriber, but not on my demo/test site.

The reason I discovered the above wrinkle regarding the URLs (i mean, routing error, obviously…) is because the above Wizard WAS my only wizard on this demo site, but I decided to create a new Wizard just to compare and that one actually works!

So it might be that only old wizards are impacted? Here is my wizards json with both wizards included. test wizard is the one that doesn’t work, new is the newest one.

wizard json

[{"id":"test_wizard","name":"Test Wizard","save_submissions":true,"theme_id":1,"steps":[{"id":"step_1","fields":[{"id":"step_1_field_1","label":"","description":"This is a question.","type":"text"},{"id":"step_1_field_2","label":"","description":"This is another question.","type":"text"}]}],"actions":[{"id":"action_2","run_after":"wizard_completion","type":"create_topic","post":"step_1_field_1","post_builder":true,"post_template":"field 1: w{step_1_field_1}\n\nfield 2: w{step_1_field_2}","title":[{"type":"assignment","output":"step_1_field_1","output_type":"wizard_field","output_connector":"set"}],"category":[{"type":"assignment","output_type":"category","output_connector":"set","output":[3]}]},{"id":"action_1","run_after":"step_1","type":"send_message","post_builder":true,"post_template":"field 1: w{step_1_field_1}\n\nfield 2: w{step_1_field_2}","title":[{"type":"assignment","output":"w{step_1_field_1}","output_type":"text","output_connector":"set"}],"recipient":[{"type":"assignment","output_type":"user","output_connector":"set","output":["Argo_Registry"]}]}]},{"id":"new_wizard","name":"new wizard","save_submissions":true,"steps":[{"id":"step_1","title":"question","raw_description":"here's a question. ","fields":[{"id":"step_1_field_1","label":"asdf","description":"boopity doopity","type":"text","validations":{"similar_topics":{}}},{"id":"step_1_field_2","label":"asdf2","description":"asdf asdfasdfasdf","type":"checkbox"}],"description":"here's a question. "}],"actions":[]}]

Example

As noted in previous question, it will not show wizards to non-users.

Logs

No apparent logged errors.

The basic issue with the “Test wizard” is that you are attempting to access it multiple times and it doesn’t have the “Multiple” setting enabled. If you check that and use it on your test site it’ll work.

Yes, that is technically a UX issue that appears to Admins if Multiple is not selected. But it only affects admins. If you’re a regular user you just see the normal “You have completed this wizard” message.

Here’s a video of me testing your wizard:

1 Like

I’ve been tripped up by this before; it would be very helpful to have a specific warning for admins in this situation, which I suspect is quite common for people learning how to configure the plugin.