Option results not showing in comments

Created on 5 June 2023, almost 2 years ago

Option results for the fivestar widget not showing in comments, only in articles.

🐛 Bug report
Status

Active

Version

3.0

Component

User interface

Created by

🇫🇷France stado

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @stado
  • Status changed to Needs review almost 2 years ago
  • 🇮🇳India ravi kant Jaipur

    The rating can enable in the comment by checking the next checkbox of content type checkbox.
    Follow the below steps -
    Structure -> Rate widgets -> Add/Edit widget -> Find entity section and check for comments for related content type.

    If still not getting rating option in comment section then error may be in console or Drupal log.
    It working for me and attaching screenshot for confirmation.

  • 🇫🇷France stado

    Thanks for your comment.
    However, my problem is not enabling the fivestar widget for comments. I can well enable it. But, while for articles it displays the average points after all votes, in comments, this value always remains at 0.0, no matter matter how many votes have been cast. See pics attached.

  • Status changed to Active over 1 year ago
  • Status changed to Postponed: needs info over 1 year ago
  • 🇦🇹Austria jordik

    Can you please give exact steps to reproduce this issue? Also some more information on your setup (which entities, how are comments added etc.)? As helpful pictures are in other cases, this one sentence and the two small pictures are insufficient to reproduce this issue.

  • 🇫🇷France stado

    Sorry @jordik for a very late reply.

    The setup is pretty standard:

    1. install D10
    2. Install Rate 3.0.1
    3. Create a Rate widget: Fivestar, points, display options results.
    4. Activate for articles and their comments.

    While in articles, the widget works fine and displays the average of all votes in points, in comments the display stays at 0, no matter the number and value of votes.
    Consequently, I can't use this widget in comments and I have to use thumbs up/down instead. Which works as expected, except in /admin/content/vote_all, where under the Voted entity, in case of comment ratings, a random page appears instead of the comment in question or at least its article.

    Any advice on how to fix these 2 issues would be highly appreciated.

Production build 0.71.5 2024