darkpixlz
(darkpixlz)
July 22, 2022, 12:08am
1
The other night, a user was flagged as spam, and when I clicked “Disagree”, I got a HTTP500. Now, I’m getting it again when trying to decline a system flag on a post.
I’m 99% sure that this coudln’t be a plugin or component. I’m on the latest commit, and it’s pretty annoying.
1 Like
sam
(Sam Saffron)
July 22, 2022, 12:30am
2
Can you have a look at yoursite/logs
what is the full error message (there is a copy log message button)
2 Likes
darkpixlz
(darkpixlz)
July 22, 2022, 12:32am
3
I think it may be this one.
Message (2 copies reported)
NoMethodError (undefined method `rating_types' for nil:NilClass)
lib/plugin/instance.rb:285:in `public_send'
lib/plugin/instance.rb:285:in `block (2 levels) in add_to_class'
lib/plugin/instance.rb:466:in `block in on'
lib/discourse_event.rb:14:in `block in trigger'
lib/discourse_event.rb:13:in `trigger'
lib/post_destroyer.rb:104:in `recover'
app/models/reviewable.rb:357:in `public_send'
app/models/reviewable.rb:357:in `block in perform'
app/models/reviewable.rb:355:in `perform'
app/controllers/reviewables_controller.rb:200:in `perform'
app/controllers/application_controller.rb:415:in `block in with_resolved_locale'
app/controllers/application_controller.rb:415:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:368:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:202:in `call'
Backtrace
plugins/discourse-ratings/plugin.rb:147:in `block (2 levels) in activate!'
lib/plugin/instance.rb:285:in `public_send'
lib/plugin/instance.rb:285:in `block (2 levels) in add_to_class'
plugins/discourse-ratings/plugin.rb:67:in `block in activate!'
lib/plugin/instance.rb:466:in `block in on'
lib/discourse_event.rb:14:in `block in trigger'
/usr/local/lib/ruby/2.7.0/set.rb:328:in `each_key'
/usr/local/lib/ruby/2.7.0/set.rb:328:in `each'
lib/discourse_event.rb:13:in `trigger'
lib/post_destroyer.rb:104:in `recover'
Env
HTTP HOSTS: community.icecavern.xyz
If not then it’s this one
Message (4 copies reported)
Deprecation notice: PostAction.act is deprecated. Use `PostActionCreator` instead. (removal in Discourse 2.9.0)
At /var/www/discourse/plugins/discourse-perspective-api/lib/discourse_perspective.rb:73:in `flag_on_scores`
Backtrace
/var/www/discourse/lib/discourse.rb:877:in `deprecate'
/var/www/discourse/app/models/post_action.rb:106:in `act'
/var/www/discourse/plugins/discourse-perspective-api/lib/discourse_perspective.rb:73:in `flag_on_scores'
/var/www/discourse/plugins/discourse-perspective-api/lib/discourse_perspective.rb:99:in `check_post_toxicity'
/var/www/discourse/plugins/discourse-perspective-api/jobs/flag_toxic_post.rb:13:in `execute'
/var/www/discourse/app/jobs/base.rb:237:in `block (2 levels) in perform'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rails_multisite-4.0.1/lib/rails_multisite/connection_management.rb:80:in `with_connection'
/var/www/discourse/app/jobs/base.rb:226:in `block in perform'
/var/www/discourse/app/jobs/base.rb:222:in `each'
/var/www/discourse/app/jobs/base.rb:222:in `perform'
sam
(Sam Saffron)
July 22, 2022, 12:35am
4
darkpixlz:
discourse-ratings
Likely, so an issue in:
A Discourse plugin that lets you use topics to rate things!
Features
Rate topics by a star rating system in the composer.
Enable different rating types on a per-category or per-tag basis.
Toggle rating count and average rating per rating type.
Toggle visibility of ratings, counts and averages based on user roles.
Bulk actions including rating type migration
[Screenshot 2020-08-21 at 11.12.32 AM]
Get the code
Report a bug
Lost?
Not sure how to install a plugin? Fol…
Recommend you first try uninstalling that plugin? If this resolves it lets close this off and report on the rating plugin mega topic?
1 Like
darkpixlz
(darkpixlz)
July 22, 2022, 12:36am
5
I might just disable the plugin as it has caused a bunch of issues and it’s not that essential. Thanks, will follow up when I get another flag that doen’t violate the rules.
1 Like
sam
(Sam Saffron)
July 22, 2022, 12:36am
6
Cool, moving to support for now
1 Like