mastodon icon indicating copy to clipboard operation
mastodon copied to clipboard

Admin notifications setting will result in "We're sorry, but something went wrong on our end"

Open siuying opened this issue 3 years ago • 1 comments

Steps to reproduce the problem

  1. Sign in
  2. 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

siuying avatar Nov 06 '22 10:11 siuying

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?

ClearlyClaire avatar Nov 06 '22 17:11 ClearlyClaire

Yes, this error persists after restart.

siuying avatar Nov 06 '22 19:11 siuying