I have 4 Fivestar ratings per article. Two while editing and two while viewing. I also have two content types that I have set-up this way. One is working perfectly. The other is working except for one exception.
In the edit tab of field, the Star Display Options do not appear for 1 of the 4 Fivestar fields. (This is a 'rated while viewing' field). First, I set it up like the others, using the 'Add existing field'. When this did not work I created a new Fivestar rating using the same Voting Tag; the same result. I also tried using a different tag with the same result: No Display Options to select the Star Type; while the star amount and all other options are intact.
I have received no errors when doing any of these steps so I'm wondering; Is there a maximum amount of Star Fields that keeps them from displaying. If not; any suggestions on how to make my last Fivestar field work?
Thanks
Comments
Comment #1
whiteph commentedWhen I tried to reproduce what you're seeing, I found another issue. I've made a note of it and will dig into it later, otherwise I'd go down a rabbit hole.
To prevent that could you say exactly what your structure is: content type A, with fours Fivestars configured as {Rating_A, Stars (Rated while Viewing), tag Quality, display Style Oxygen, Exposed yes, average, average}, {…}, {…},{…}. Ditto for content type B.
Which one of these is working ok, which is giving the problem?
Then I'll try to reproduce what you're seeing and get back to you.
The issue I bumped into is this critical issue Rating is reset.
Comment #2
wouser commentedOf course! I am listing them in the order that they were created.
I am looking again and noticing that all of the "While Viewing" Fivestar Fields are missing the "style". I now can not recall if this is normal or not.
Modules interacting:
I am using Revisioning, Diff along with Workflow.
* A difference I am just noticing: In Content Type A, all 4 Fivestar fields are displayed in Workflow view; For Type B only one is showing.
Update:
Deleted 'While viewing' fivestar fields for Content Type B and added them back; when I did this both are not appearing on the view tab.
Content Type A:
1) Style: Default, Number of stars: 7 - Can not cancel rating - Tag: Quality - While Editing - Required
2)Style: Flames, Number of stars: 7 - Can not cancel rating - Tag: Bias - While Editing - Required
3) Style: *This is missing*, Number of stars: 7 - Can not cancel rating - Tag: Quality - While Viewing -
4) Style: *This is missing*, Number of stars: 7 - Can not cancel rating - Tag: Bias - While Viewing
Content Type B:
5) Style: Default, Number of stars: 7 - Can not cancel rating - Tag: Quality - While Editing - Required
6) Style: Flames, Number of stars: 7 - Can not cancel rating - Tag: Bias - While Editing - Required
7) Style: *This is missing*, Number of stars: 7 - Can not cancel rating - Tag: Quality - While Viewing
8) Style: *This is missing*, Number of stars: 7 - Can not cancel rating - Tag: Bias - While Viewing
We are still developing; If you like I would be happy to remove all fivestar field, disable the module and try it all again. Otherwise I would be happy to help any way I can.
Comment #3
whiteph commentedThanks. Let me dig into this and get back to you.
Comment #4
wouser commentedI just noticed this error Appearing on all pages, this seems to have appeared after I activated new modules (unrelated to Fivestar).
Notice: Undefined index: type in flag_field_attach_form() (line 722 of .../sites/all/modules/flag/flag.module).
UPDATE: ***This error has since disappeared***
Comment #5
wouser commentedI went ahead and started over; the fields are now all working in the content; must have been a setting on my end.
I still had the same issue when adding the field for 'While Viewing'; "Star Display Options" are missing.
BUT I am able to fix this with no problem in Display Options once the initial field settings are set. I also noticed "Expose this Fivestar field for voting on the @type type." on the "While Viewing Display Options". This seems to make no difference checked or unchecked.
Editing field works perfectly.
I hope this help. I am happy to run anymore tests or provide any more information needed.
Comment #6
whiteph commentedSorry for the delay in getting back to you, I've been trying to sort out the critical bug I mentioned in #1. You should encounter this bug, so it would be good if you could test the patch I've created. See Rating is reset.
I'll start looking at your issue now.
Comment #7
whiteph commentedI've reproduced your issue. For fields "Rated while viewing" the "Star Display Options" don't appear on the admin/structure/Content types/.../Manage fields/Edit form. This is correct behaviour in my view.
However, they do appear on the same form for "Rated while editing" - but if you select a different display e.g. Oxygen, this setting isn't saved. In my view, the "Star Display Options" shouldn't appear here, and it's a bug.
The correct place to edit "Star Display Options" is on the "Manage Display" tab (using the cog widget at the right-hand side). As you say, this is working for you. Do be careful to select the other star options you need e.g. average/user.
The "Exposed" setting flips the Fivestar widget between the user being able to vote (exposed) and just being able to see the result (not exposed).
Hope this helps.
I'm leaving this open, as the bug needs to be fixed.
Comment #8
wouser commentedThat patch worked great...what a few extra spaces can do.
I have also posted a new issue; I'm not sure if these might be related.
Help text is not displayed on node for "While Viewing" field
Thank you, as always, I am happy to do any tests. We are in development mode and I have a couple of Drupal sites to play with.
Comment #9
dbt102 commentedPlease test with 7.x-2.2 release and report back, as there have been a lot of fixes applied since then.