mastodon
mastodon copied to clipboard
Admin notifications setting will result in "We're sorry, but something went wrong on our end"
Steps to reproduce the problem
- Sign in
- Open Notification settings "/settings/preferences/notifications"
Expected behaviour
No error
Actual behaviour
500 Error
Detailed description
The error message:
method=GET path=/settings/preferences/notifications format=html controller=Settings::Preferences::NotificationsController action=show status=500 error='ActionView::Template::Error: undefined method `appeal' for #<HashObject:0x00007f3f4e752bc0 @follow=false, @reblog=false, @favourite=false, @mention=false, @follow_request=true, @digest=true, @report=true, @pending_account=true, @trending_tag=true>' duration=72.03 view=0.00 db=10.29
ActionView::Template::Error (undefined method `appeal' for #<HashObject:0x00007f3f4e752bc0 @follow=false, @reblog=false, @favourite=false, @mention=false, @follow_request=true, @digest=true, @report=true, @pending_account=true, @trending_tag=true>):
21:
22: - if current_user.staff?
23: = ff.input :report, as: :boolean, wrapper: :with_label
24: = ff.input :appeal, as: :boolean, wrapper: :with_label
25: = ff.input :pending_account, as: :boolean, wrapper: :with_label
26: = ff.input :trending_tag, as: :boolean, wrapper: :with_label
27:
I've been recently upgrade to 3.5.3. I have clear cache and run database migrations. It do not happen to non-admin accounts.
Specifications
Mastodon: tootsuite/mastodon:v3.5.3 PostgreSQL: postgres:9.6-alpine
This is surprising. The only thing I can think of right now is a puma worker running with the old code but fetching the new template. Have you restarted mastodon-web after the update?
Yes, this error persists after restart.