Getting the following error when voting:

Notice: Undefined index: #description in fivestar_ajax_submit() (line 424 of /srv/www/xxxxxx.com/public_html/sites/all/modules/fivestar/fivestar.module).

Comments

davemybes’s picture

Just saw this after patching for the field.tpl.php problem. Its solved if you change line 424 to look like this:

  if (isset($new_element['vote']['#description'])) {
    $form['vote']['vote']['#description'] = $new_element['vote']['#description'];
  }

Ignore the opening and closing php tags.

davemybes’s picture

Status: Active » Needs review
StatusFileSize
new667 bytes

Patch for the above attached. Rolled against 7.x-2.x head, not alpha2.

Status: Needs review » Needs work

The last submitted patch, fivestar-undefined_index_description-1803962-2.patch, failed testing.

davemybes’s picture

Version: 7.x-2.0-alpha2 » 7.x-2.x-dev
Status: Needs work » Needs review

Change version for patch testing.

davemybes’s picture

NenadP’s picture

I experienced same error. I applied the patch, error notice seems to be gone, and fivestar vote looks ok in my isolated case.

whiteph’s picture

Issue summary: View changes
Status: Needs review » Closed (duplicate)

Not quite a duplicate, but the latest 7.x-2.x-dev has updated the same line in fivestar.module.