When I attempt to enable the votingapi module I get this error.

Parse error: parse error, expecting `')'' in /drupal/modules/votingapi/votingapi.module on line 212

CommentFileSizeAuthor
#3 votingapi2_add_votes.patch598 bytesquicksketch

Comments

cybernostra’s picture

I have the same error with votingapi + fivestars

nekobul’s picture

For now you can manually edit the file. Open votingapi.module and on line 212, change:

function votingapi_add_votes(&$votes = array()) {

to this:

function votingapi_add_votes(&$votes) {

Regards,
Ivan

quicksketch’s picture

Assigned: takimberly » Unassigned
Category: support » bug
Priority: Normal » Critical
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new598 bytes

Sounds like a critical bug to me :)

ezra-g’s picture

While I wasn't experiencing this error when casting a vote, votingapi.module did fail php validation. This patch resolved the issue for me.

zilla’s picture

hi - saw this change and others and wonder if there's going to be a new roll-up for d6 with these assorted patches...i've manually edited line 212 in the module, but seems that there are some other hooks, a fix for uninstall, proper versioning and so on...

quicksketch’s picture

Eaton is currently returning from SXSW and DrupalCon. Just hang in there.

hallmark’s picture

thx you are a life saver ;)

eaton’s picture

Status: Needs review » Fixed

This one's an oldie that's been fixed for a while. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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