Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm getting these errors:
Notice: Undefined offset: 53 in rate_generate_widget() (line 225 of /.../sites/all/modules/rate/rate.module).
Notice: Undefined offset: 52 in rate_generate_widget() (line 225 of /.../sites/all/modules/rate/rate.module).
Any ideas on how to get rid of these?
Here's the only patch I have applied to the rate module: rate-ds-1069906-39.patch
Comment | File | Size | Author |
---|---|---|---|
#6 | removed_undefined_notice_error-2409995.patch | 489 bytes | jaffaralia |
Comments
Comment #1
DagleesDo you happen to have Rate enabled on comments rather than nodes?
Comment #2
deanflory CreditAttribution: deanflory commentedI have the Fivestar rating on nodes and the thumbs up/down on comments, both based on votingapi and rate modules.
Comment #3
DagleesSame here, it appears to me that some references in code are hardcoded to 'node', so that the permission checks fail (although the widgets will still work if anonymous users can vote).
Comment #4
deanflory CreditAttribution: deanflory as a volunteer commentedSo, the only present workaround is to remove rate from comments? For my purposes it's more important to have thumbs up/down on the comments than it is to have a rating of the node itself.
Comment #5
deanflory CreditAttribution: deanflory as a volunteer commentedComment #6
jaffaralia CreditAttribution: jaffaralia commentedI resolved this issues by applied this patch
Comment #7
jaffaralia CreditAttribution: jaffaralia commented