When using the rate module there is a scenario where $vote can not be an array causing the following.

Error: Uncaught exception 'Error' with message 'Unsupported operand types' in wwwroot/sites/all/modules/votingapi/votingapi.module:595

in _votingapi_prep_vote called at wwwroot/sites/all/modules/votingapi/votingapi.module (165)
in votingapi_set_votes called at wwwroot/sites/all/modules/rate/rate.module (671)
in rate_save_vote called at wwwroot/sites/all/modules/rate/rate.module (318)
in rate_generate_widget called at wwwroot/sites/all/modules/rate/rate.module (772)
in rate_node_view called at wwwroot/includes/module.inc (957)
in module_invoke_all called at wwwroot/modules/node/node.module (1441)
in node_build_content called at wwwroot/modules/node/node.module (1336)
in node_view called at wwwroot/modules/node/node.module (2669)
in node_view_multiple called at wwwroot/modules/node/node.module (1466)
in node_show called at wwwroot/modules/node/node.module (2761)
in node_page_view called at wwwroot/includes/menu.inc (527)
…xecute_active_handler called at wwwroot/index.php (21)

Comments

EvanSchisler created an issue. See original summary.

kschisler’s picture

kschisler’s picture

Status: Active » Needs review

pifagor’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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