I got these notices on frontpage after enabling thumsp-up-down:

Notice: Undefined index: up_percent in include() (line 11 of /***/sites/all/modules/contrib/rate/templates/thumbs-up-down/thumbs-up-down.tpl.php).
Notice: Undefined index: down_percent in include() (line 15 of /***/sites/all/modules/contrib/rate/templates/thumbs-up-down/thumbs-up-down.tpl.php).

Drupal 7.8

CommentFileSizeAuthor
#6 thumbs-up-down-tpl.patch801 bytesAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dgastudio’s picture

same here

mauritsl’s picture

Status: Active » Closed (cannot reproduce)

I cannot reproduce this in the latest dev version.

Feel free to reopen ticket if you still get this message.

Aldus’s picture

Status: Closed (cannot reproduce) » Active

I have the same problem (I just intsalled the module)

a print_r on $results gives this:

Array ( [count] => 1 [rating] => 1 [user_vote] => 1 [empty] => )

pradyumnahpt’s picture

Same Problem here to,I am getting these notices,with the latest development version too...Any solution please.

fruitsalad’s picture

Hello got the same problem with thumb up/ thumb down. percentages are not displayed. just "You voted 'up'"

Notice: Undefined index: up_percent in include() (line 11 von -/sites/all/modules/rate/templates/thumbs-up-down/thumbs-up-down.tpl.php).
Notice: Undefined index: down_percent in include() (line 15 von -/sites/all/modules/rate/templates/thumbs-up-down/thumbs-up-down.tpl.php).

version used: rate-7.x-1.x-dev.zip

thank you all for help

Anonymous’s picture

Issue summary: View changes
FileSize
801 bytes

It's a simple check for variable existence. If you haven't rated a comment with thumbs up/down yet and have E_NOTICE error_logging, it'll show the warning. Patch is attached.

quotesBro’s picture

Status: Active » Needs review