Internal Server Error for some queries in data explorer plugin

As mentioned here I have errors when using some queries in the data explorer.

Other queries which came with Discourse installation also have the Internal Server Error, e.g.:

  • Who has been sending the most messages in the last week?
  • Most Common Likers

Others work.

And, as mentioned, when I use the Telegram query directly on the database, it works, too.

Can you check /logs on your site and see if there is any more detail on the errors?

Sure. Is that helping? I got it by copying it. But in the browser I see more.

Message (15 copies reported)

ActiveModel::MissingAttributeError (missing attribute: admin)
app/models/concerns/roleable.rb:14:in `staff?'
lib/plugin/instance.rb:297:in `public_send'
lib/plugin/instance.rb:297:in `block (2 levels) in add_to_class'
(eval):7:in `_fast_attributes'
app/controllers/application_controller.rb:414:in `block in with_resolved_locale'
app/controllers/application_controller.rb:414:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:74:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:366:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
lib/middleware/request_tracker.rb:228:in `call'


activemodel ( lib/active_model/attribute.rb:226:in `value'
activemodel ( lib/active_model/attribute_set/builder.rb:43:in `fetch_value'
activerecord ( lib/active_record/attribute_methods/read.rb:38:in `_read_attribute'
activemodel ( lib/active_model/attribute_methods.rb:277:in `admin'
app/models/concerns/roleable.rb:14:in `staff?'
plugins/discourse-animated-avatars/plugin.rb:90:in `block (2 levels) in activate!'
lib/plugin/instance.rb:297:in `public_send'
lib/plugin/instance.rb:297:in `block (2 levels) in add_to_class'
activesupport ( lib/active_support/core_ext/object/try.rb:15:in `public_send'
activesupport ( lib/active_support/core_ext/object/try.rb:15:in `try'


1 Like

From that backtrace, it seems like it could be related to the animated-avatars plugin, which is very strange! (cc @featheredtoast - any ideas?)

Can you check that your site and all plugins are up-to-date?

1 Like

FWIW I have just installed Animated Avatars to repro this bug - Incompatibility between Cakeday and Animated Avatar plugins - #3 by JammyDodger and I also cannot run the ‘Top 100 Likers’ query on my test site (but can here on Meta).

1 Like

Oh that’s interesting - must be the same cause. Let’s keep things over in the other topic: