Topic Ratings Plugin

That is quite a list to install and test on my dev setup to say the least so I can’t figure out what the cause of your issue might be.

Perhaps you can skip the official discourse plugins. Then the list would only be:

Spoiler
  - git clone https://github.com/procourse/procourse-static-pages.git
  - git clone https://github.com/Ebsy/discourse-nationalflags.git
  #- git clone https://github.com/paviliondev/discourse-ratings.git
  - git clone https://github.com/cpradio/discourse-plugin-imgflip.git
  - git clone https://github.com/paviliondev/discourse-topic-previews.git
  - git clone https://github.com/paviliondev/discourse-news.git
  - git clone https://github.com/paviliondev/discourse-layouts.git
  - git clone https://github.com/gdpelican/retort.git
  - git clone https://github.com/paviliondev/discourse-follow.git
  - git clone https://github.com/cpradio/discourse-plugin-composer-help-button.git
  - git clone https://github.com/paviliondev/discourse-custom-wizard.git
  - git clone https://github.com/paviliondev/discourse-tickets.git

I’ll DM you later to arrange for the admin access.

I would uninstall most of those. Keep only those which are critical to your users otherwise you are asking for trouble with a significant risk of a clash, breaking changes and a much more complex job of debugging.

Normally I’d expect to see around half a dozen on a reliable, business-focussed site.

I’m afraid we can’t support your install for you unless you wish to hire us.

2 Likes

I will do as you ask and uninstall the unofficial plugins and find the cause of the conflict. I’ll report back. However, I can’t do this currently since the site is being used by users, so I can’t afford downtime atm.

If we remove official discourse and pavillion, then only 5 plugins remain.

1 Like

On latest rebuild, I have topic ratings plugin working with all my plugins and theme components! Initially, I had this plugin disabled because I wasn’t sure if it was ready. Apparently, having it disabled, I couldn’t read any topics. Enabling the plugin without doing anything else fixed the issue! I didn’t add or remove any plugins.

2 Likes

Hello,

I have the same issue with this plugin. If i disable i get this message on all topics :point_down:
The logs error same as yours.

I have two different Discourse site so i check the plugins and compare with yours.

The same unofficial plugins are:

- git clone https://github.com/paviliondev/discourse-follow.git
- git clone https://github.com/paviliondev/discourse-custom-wizard.git

Edit: But one of my site the discourse custom wizard is commented so maybe the discourse follow plugin conflict with topic ratings.

Full plugins list / Site 1
  - git clone https://github.com/discourse/docker_manager.git
  - git clone https://github.com/discourse/discourse-solved.git
  - git clone https://github.com/jannolii/discourse-topic-trade-buttons.git
  - git clone https://github.com/paviliondev/discourse-ratings.git
  - git clone https://github.com/discourse/discourse-whos-online.git
  - git clone https://github.com/discourse/discourse-adplugin.git
  - git clone https://github.com/paviliondev/discourse-follow.git
  - git clone https://github.com/discourse/discourse-cakeday.git
  - git clone https://github.com/paviliondev/discourse-locations.git
  - git clone https://github.com/discourse/discourse-patreon.git
  - git clone https://github.com/paviliondev/discourse-custom-wizard.git
  - git clone https://github.com/discourse/discourse-spoiler-alert.git
  - git clone https://github.com/discourse/discourse-calendar.git
Full plugins list / Site 2
  - git clone https://github.com/discourse/docker_manager.git
  - git clone https://github.com/discourse/discourse-solved.git
  - git clone https://github.com/jannolii/discourse-topic-trade-buttons.git
  - git clone https://github.com/paviliondev/discourse-ratings.git
  - git clone https://github.com/discourse/discourse-whos-online.git
  - git clone https://github.com/discourse/discourse-adplugin.git
  - git clone https://github.com/paviliondev/discourse-follow.git
  - git clone https://github.com/paviliondev/discourse-multilingual.git
  - git clone https://github.com/discourse/discourse-calendar.git
  - git clone https://github.com/paviliondev/discourse-locations.git
  - git clone https://github.com/paviliondev/discourse-custom-wizard.git
  - git clone https://github.com/discourse/discourse-patreon.git
  - git clone https://github.com/discourse/discourse-cakeday.git

@fzngagan i can add an admin access one of my site if this helps to find out what is the problem.

3 Likes

Yea so to reproduce one can simply disable ratings plugin.

1 Like

Taking a look in a few.

p.s.
Yes, I can repro the issue. Taking a look .

2 Likes

Exactly I agree

we need this

Can confirm the exact same issue described.

Repro Steps:

  1. Rebuild to Latest.
  2. Have the Topic Ratings Plugin installed.
  3. Have the Topic ratings Plugin disabled.
  4. Try to access any topic.

Workaround:

  1. Uninstall (comment on the yml) the Topic ratings Plugin.
  2. Rebuild.
3 Likes

@Don @AntiMetaman @Iceman
This commit fixes the issue
https://github.com/paviliondev/discourse-ratings/commit/be282cb2965e70f949b8a00f72e9c1b4f38d8230

If you’re using it in production, I would suggest refraining from updating the plugin. Either keep it enabled or remove it if not required until the next support period begins.

5 Likes

Thanks for taking the time to fix this outside the support period.

4 Likes

Couple questions on this;

  1. When the first reply is deleted the rating doesn’t seem to be set back to no rating, see this topic. Is this expected behavior?
  2. The topic creator can reply to their own topic and leave a rating, shouldn’t this be ignored? See this topic.

Thanks guys!

3 Likes

Yes, that might seem like a side effect but the first post doesn’t define the ratings being enabled on the topic or not.

Yeah, they can rate for each criterion only once so basically can’t influence the ratings completely. But the request makes sense for some use cases.

3 Likes

Also, the support period is on. The plugin is working perfectly fine on the latest tests-passed as of now.

5 Likes

Can it be considered an error?
Or I’ll have to delete this for it to work.

https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Ftry.thepavilion.io%2Ft%2Fthis-is-a-new-post-with-ratings%2F547

4 Likes

I’ll happily accept a PR if you can try and fix.

3 Likes

It’s the same way though it’s not true.

https://github.com/bcat95/discourse-ratings/commit/35e8d5f5474ddf21fad1169ef2f4d987fd11981d

Demo: https://search.google.com/test/rich-results

It’s not exactly how the extension works, but it’s still useful for getting featured at google. My website doesn’t matter as much to reviews because of its few members.

4 Likes

Hi all! How can i make that ratings shows on every single thread for logued and not logued users?

Thanks

3 Likes

You can enable ratings for all categories.

3 Likes