The error message

warning: Invalid argument supplied for foreach() in /home/xyz/public_html/modules/voting_actions/voting_actions.module on line 476.

The referred code is this

-- snip --

foreach ($vote_action->conditions as $condition) {
if ($check == VOTING_ACTIONS_FAILED) {
break;

-- / snip --

The voting results show fine.

Comments

eaton’s picture

Assigned: Unassigned » eaton

It appears to be a problem when the list of 'filter criteria' for an action set has no entries in it. I believe I have a simple fix, but I need to double-check.

Can you give me any additional information about the action set you've set up?

scriptnews’s picture

Hi Eaton

the setup is strait forward:

action.module
voting-action.module
voting_api.module
simplevote.module

all setup and activated

What else do You need ?

scriptnews’s picture

Hi

Just as an update:

the problems with the voting module have ceased after I de-activated the voting-api.module.

Thanks.

scriptnews’s picture

Sorry. The above should say "voting-action.module". That is the one I de-activated.

Now voting goes fine.

eaton’s picture

Status: Active » Fixed

This appears to happen only when there is an action set defined, but no filter criteria set up for it. Problem module is voting_actions.module, not voting API.

Fixed in voting_actions.module, latest cvs.

Anonymous’s picture

Status: Fixed » Closed (fixed)