Can't edit main post after recent Discourse update

Environment

Discourse Version: 2.7.0.beta6

Plugin Commit: 6011650

Other Plugins
discourse-calendar
discourse-solved

Steps to Reproduce

For some reason the recent update in Discourse seems to have broken the post update mecanism but the issue seems to lie our discourse-multilingual plugin

Problematic behavior:

  • create a topic with a language tag
  • click edit on the first post
  • actually edit the topic
  • click Save
  • popup shows up with “500 Internal Server Error”

Example

Logs

I went to our.forum.tld/logs and found the corresponding stacktrace:

ArgumentError (wrong number of arguments (given 3, expected 2))
plugins/discourse-multilingual/plugin.rb:359:in `block (2 levels) in activate!'
lib/post_revisor.rb:469:in `block (2 levels) in update_topic'
lib/post_revisor.rb:467:in `each'
lib/post_revisor.rb:467:in `block in update_topic'
activerecord (6.0.3.5) lib/active_record/connection_adapters/abstract/database_statements.rb:278:in `transaction'
activerecord (6.0.3.5) lib/active_record/transactions.rb:212:in `transaction'
lib/post_revisor.rb:466:in `update_topic'
lib/post_revisor.rb:367:in `revise'
lib/post_revisor.rb:271:in `revise_post'
lib/post_revisor.rb:185:in `block in revise!'
[...]

So the issue seems to lie in this piece of code expecting 3 args instead of 2 (but i’m not super familiar with Ruby) : discourse-multilingual/plugin.rb at master · paviliondev/discourse-multilingual · GitHub

Thank you for your work !

2 Likes

Bump :slight_smile:

I am also having this issues (and reported it in another topic, but it appears to be the same issue).

1 Like

This has been resolved. See the latest on try.thepavilion.io.

2 Likes

That’s so exciting! Thanks for working it out!

Seems to be working on our install :slight_smile:

1 Like

Fixed on my side too, thank you!

1 Like