Unable to save wiki update

AI-generated summary

Unable to Save Wiki Update

A user, mbbroberg, is experiencing an issue where they cannot save updates to a wiki page, despite the changes being saved to drafts. The error occurs in both Chrome and Firefox, and a screenshot of the error is provided.

joffreyjaffeux suggests trying the update in safe mode, and if it works, to provide a list of plugins, components, and custom themes. If not, joffreyjaffeux believes a specific GitHub pull request (#9161) may resolve the issue.

codinghorror inquires about the need for backporting the fix, to which joffreyjaffeux responds that they are unsure and will investigate further to determine if backporting is necessary.

I made some edits to an existing wiki and I can no longer save it. I thought I might have added something odd, so I removed the update and it still won’t save. It is saving the update to drafts, so that’s nice at least.

  • Tested in Chrome Version 80.0.3987.122 (Official Build) (64-bit)
  • Tested in Firefox 68.5.0esr (64-bit)

Screenshot:

Error:

PUT https://discourse.opensource.com/t/discourse-changelog/247 422
(anonymous) @ VM671:1
send @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:9851
ajax @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:9448
i @ _application-89e9321f54ec2a6476b431bd880424a6c4ad46e1348d6772e7b815f3eda867be.js:9157
(anonymous) @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:71964
n @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:72486
o @ _application-89e9321f54ec2a6476b431bd880424a6c4ad46e1348d6772e7b815f3eda867be.js:9171
update @ _application-89e9321f54ec2a6476b431bd880424a6c4ad46e1348d6772e7b815f3eda867be.js:12860
(anonymous) @ _application-89e9321f54ec2a6476b431bd880424a6c4ad46e1348d6772e7b815f3eda867be.js:13756
E @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:71937
(anonymous) @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:72003
t.invoke @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:66278
t.flush @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:66168
t.flush @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:66372
t._end @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:66948
t.end @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:66634
t._run @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:67003
t._join @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:66977
t.join @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:66694
f @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:53486
(anonymous) @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:45901
r @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:49817
handleEvent @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:45897
handleEvent @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:44834
(anonymous) @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:45224
dispatch @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:5251
v.handle @ _ember_jquery-8e338e1cfe17986203b8367e20408d23399e209fb3a0d86cbd8f98e499a037a9.js:5058

Any ideas?

Can you please check the server logs at /logs for the 422 response?

Can you try in safe mode please ? Using Safe Mode to troubleshoot issues with themes and plugins

If it works with safe-mode, please give me the list of your plugins/components/any custom theme you would have.

I’m quite sure this will solve your issue:

https://github.com/discourse/discourse/pull/9161

Will merge it once tests pass.

Does that need to be backported? :thinking:

I’m unsure yet how this state is possible, it comes from when we added multi category hierarchy support.

Will try to have a repro tomorrow and see if it’s worth backporting.