I get the following Fields notice when using a Star Rating field in a Views Block:
Notice: Undefined offset: 0 in views_handler_field_field->set_items() (line 760 of ~MYSITE/sites/all/modules/views/modules/field/views_handler_field_field.inc).
To produce this issue, I found I must create the following conditions:
- Create a content type that uses a Star Rating field and create nodes with that field populated.
- Create a Block Display in Views. Page Display is not affected.
- Add the Star Rating field in the display settings and save the view.
- Filtering in Views must have at least one result. No results removes the message.
- You must be in the Block Display settings -OR- on a page where the block is showing.
Interestingly, the FiveStar module seems to have had a similar issue, which was quickly fixed. See: http://drupal.org/node/1213448
Comments
Comment #1
tomogden commentedOne more qualification:
- At least one of the nodes in the results must have the Star Rating field unset.
This seems to make all the difference.
Comment #2
W.M. commentedHello tomogden,
I doubt that this is a Star Rating module problem. It looks like it is a Views issue. I have Views version 7.x-3.0-rc1 installed at one of my sites.
I don't use Star Rating or / and Voting API at all. I am seeing this error message when supplying one particular term argument to the contextual filter. As a matter of fact, I do not see the error message when supplying "1" as an argument in the URL but see it if I supply "2" in the same URL ! Very strange.
I have to emphasize that the view looks as it should, nothing missing. But with the red-box error message sticking at top.
I hope that this information will be useful. Please let me know if you have found a solution.
I guess we might need to check if a similar issue has been reported at Views pages.
Comment #3
CarbonPig commentedsubscribe - bump - same error message - not quite sure when/why this started happening.
Comment #4
bryancasler commentedI think this might be cause by the entity cache module
Comment #5
ivnishDrupal 7 is EOL. Issue will be closed