I’m seeing a 500 error loading some users’ summary pages:
NoMethodError (undefined method `attributes' for nil:NilClass) /var/www/discourse/app/models/user_summary.rb:196:in `block in user_counts'
/var/www/discourse/app/models/user_summary.rb:196:in `block in user_counts' /var/www/discourse/app/models/user_summary.rb:194:in `map' /var/www/discourse/app/models/user_summary.rb:194:in `user_counts' /var/www/discourse/app/models/user_summary.rb:80:in `most_liked_users' /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/active_model_serializers- 0.8.4/lib/active_model/serializer.rb:122:in `block (2 levels) in associate' ...
I haven’t been able to ascertain if there are commonalities between the user profiles this happens to, but perhaps it has to do with which users are most liked by that user.
Happy to get any ideas on how to fix this