Good day,

I have had this module on my mind since the day I started thinking about a Drupal site, so this was one of the first items I installed. I just got it configured today, and when I went to my article the following error appeared:

Notice: Undefined index: user_vote in rate_preprocess_rate_widget() (line 851 of /hermes/web09c/b1053/as.darkdan/sites/all/modules/rate/rate.module).

Thank you for any help you can provide.

Daniel

Comments

Anonymous’s picture

I'm also using the latest dev version and experience same problem:
Notice: Undefined index: user_vote in rate_preprocess_rate_widget() (line 851 of /.........
It all seems to work, except this message pops up.

ericoahu’s picture

Update: I just deleted the widget and re-added it - this resolved the issue for me....

I am also getting the same or similar error and symptoms

    Notice: Undefined index: up_percent in include() (line 10 of /home2/MY USERNAME/public_html/mywebsitecom/sites/all/modules/rate/templates/thumbs-up-down.tpl.php).
    Notice: Undefined index: down_percent in include() (line 15 of /home2/MY USERNAME/public_html/mywebsitecom/sites/all/modules/rate/templates/thumbs-up-down.tpl.php).

Note: I changed some of the path after I copied it here

sea4’s picture

i am getting a similar error as well. any ideas what is causing it? i am using the latest dev and drupal 7.2

here is my error:

Notice: Undefined index: user_vote in rate_preprocess_rate_template_thumbs_up() (line 953 of /username/public_html/bgi/sites/all/modules/rate/rate.module).

DarkDan’s picture

Category: support » bug
Priority: Normal » Major

I tried to uninstall the app, and I cannot. Although it appears to successfully uninstall, it is still on my Modules tab with an unselected checkbox and when I try to install it again it states "already installed."

TimelessDomain’s picture

Getting a similar error

Notice: Undefined index: user_vote in rate_preprocess_rate_template_thumbs_up_down() (line 933 of /example.com/sites/all/modules/rate/rate.module).

Mujtaba Mir’s picture

the same issue here.
Notice: Undefined index: user_vote in rate_preprocess_rate_widget() (line 851 of /home/a1513833/public_html/mydrupal/sites/all/modules/rate/rate.module).

sea4’s picture

did anyone find a fix for this?

Sylense’s picture

+1

Sylense’s picture

Downgrading to the beta release appears to have corrected the issue for me - for now.

Starminder’s picture

+1

mauritsl’s picture

Status: Active » Fixed

Issue is fixed in the latest dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

omd’s picture

I'm having this issue even after installing the latest dev version. Only when using the widget in a block using:

if (arg(0) == 'node' && is_numeric(arg(1)) && ($node = node_load(arg(1)))) {
  print rate_embed($node, 'NAME');
}

I get this error on the node page:

Notice: Undefined index: up_percent in include() (line 11 of /var/www/vhosts/1.mysite.com/httpdocs/sites/all/modules/rate/templates/thumbs-up-down/thumbs-up-down.tpl.php).
Notice: Undefined index: down_percent in include() (line 15 of /var/www/vhosts/1.mysite.com/httpdocs/sites/all/modules/rate/templates/thumbs-up-down/thumbs-up-down.tpl.php).
Notice: Undefined index: up_percent in include() (line 11 of /var/www/vhosts/1.mysite.com/httpdocs/sites/all/modules/rate/templates/thumbs-up-down/thumbs-up-down.tpl.php).
Notice: Undefined index: down_percent in include() (line 15 of /var/www/vhosts/1.mysite.com/httpdocs/sites/all/modules/rate/templates/thumbs-up-down/thumbs-up-down.tpl.php).