Active
Project:
Fivestar
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jun 2013 at 09:59 UTC
Updated:
26 Nov 2024 at 07:35 UTC
Jump to comment: Most recent
I have fivestar field on comments and one on node. Comments field uses the same tag and votes to relative node.
Everything worked just fine but after something (maybe it was core update) it started to store only the latest value given.
What can be done? I had plenty of content types and comments with reviews on multiple nodes and now there're almost all broken since new values appear!
Please help to fix the issue. Thanks in advance! Best regards
Comments
Comment #1
alexkb commentedHave you upgraded the fivestar or votingapi dependency modules recently? If so what was the last versions it worked. Also which version of Drupal core did you upgrade from (presume your on the latest now of 7.22).
Comment #2
rootical commentedYes i think that could be the last voting api in the March, 2013 and the core version that was in that time maybe 20th or 21st. Fivestar module has no updates since March, 2012 so i don't think that it could be the problem.
Comment #3
k.dani commentedSame problem here...really annoying:
Drupal 7.23
Fivestar 7.x-2.0-alpha2
Voting API 7.x-2.11
Comment #4
ruhsnet commentedSame here aswell
Drupal 7.23
Fivestar 7.x-2.0-alpha2
Voting API 7.x-2.11
Comment #5
k.dani commentedIt became a major problem, because nobody wants to see the latest vote, average or his/her own instead.
Comment #6
k.dani commentedAfter a little code digging, I realized, that no matter what values are stored in the table of the fivestar field, becase it recieves the vaues from the votingapi_cache table. So I don't think it is the source of the problem.
Another thing that this problem is only happened in Firefox. When I was cheking it in Chrome, it had displayed my vote first, but the average after I re-loaded the page.
I hope I can help you a little to be closer to the solution.
Comment #7
Jeroen94 commentedI have precisely the same problem! My settings are exactly the same as the ones mentioned in the first comment here. I just don't see the 'Exposed' option in the
Node > Manage display, so that's not ticked. Also, as a reply on @k.dani, it doesn't work in any browser.Please help, because I really need this!
Comment #8
Jeroen94 commentedI solved the problem by deleting the Fivestar rating fields and creating them again. The 'Exposed' check box appeared this time.
Comment #9
splitsplitsplit commentedI'm also having this problem.
Drupal - 7.23
Fivestar - 7.x-2.0-alpha2
Voting API - 7.x-2.11
I've got a content type. It has a Fivestar field with rating on view. In display I've turned off the exposed value.
I placed the same field on the comment and set it's votes to the parent node. It's rate on editing.
When I create a comment the first vote is stored however future votes replace the previous comment. The average isn't summed and the number of votes cast never increases past 1.
I'm using different users (because I have votes per registered users set to 1) and I have anonymous votes set to unlimited.
Comment #10
rakesh.nimje84@gmail.com commentedI am suggesting the working solution.
Use the latest development module for both fivestar & voting api.
In Voting API settings on configuration page- select Anonymous vote rollover & Registered user vote rollover for 5 min
In Vote tallying setting select 'Tally results whenever a vote is cast ' option & save configuration.
Then write comment from same user on single node but there should be more than 5 minute interval between these two comments.
(means write second comment on same node after 5 minute.)
U will get required result.
Then u can minimize the time limit as per your requirement.
Hope, this solution will give you Idea that how to deal with this problem situation, you are facing.
Comment #11
whiteph commentedCan you please test with the 7.x-2.0-beta1 version? It has about twenty fixes applied since the latest comment here.
Comment #12
whiteph commentedLack of response by the community, so downgrading the priority.
Comment #13
whiteph commentedLack of response from the community, so closing.
Comment #14
tammo commentedWell, four years later: here is some community feedback:
The problem still exits, even when following the instructions as seen above in #10
Using Fivestar 7.x-2.2 and Voting API 7.x-2.12
Comment #15
carlotacm commentedHi. It's happening again.
Fivestar 7.x-2.2
Voting API 7.x-2.13
Comment #16
carlotacm commentedThis problem seems to be happening again.
Voting API 7.x-2.13
Fivestar 7.x-2.2
Comment #17
avpadernoComment #18
dr.osd commentedHow can I make the module recalculate all the old ratings? I'm trying to implement an average rating for a node based on user ratings in comments. The Fivestar field in comments has existed for a long time and has accumulated ratings. Now, I’ve added this existing field to the node entity and configured everything according to the instructions. It works fine for new ratings in comments, but not for the old ones.
To make the module account for all the old ratings, I tried re-saving the comments. However, this results in the module counting only one rating from the most recently re-saved comment. That is, the average rating displays the value of the last comment's rating, and the counter always equals 1.
When I switch to new ratings, everything works almost correctly. The counter counts new ratings accurately and calculates the average rating properly. But when I re-save a new comment, its rating and counter are counted twice. Deleting a new comment with a rating doesn’t change anything.
Does anyone know how to make the counter and average rating recalculate all the comments with ratings, both old and new?
I have anonymous and not votes set to unlimited and try different versions of fivestar and votingapi.