Closed (fixed)
Project:
Voting Actions
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 Feb 2006 at 23:42 UTC
Updated:
23 Feb 2006 at 07:01 UTC
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
Comment #1
eaton commentedIt 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?
Comment #2
scriptnews commentedHi 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 ?
Comment #3
scriptnews commentedHi
Just as an update:
the problems with the voting module have ceased after I de-activated the voting-api.module.
Thanks.
Comment #4
scriptnews commentedSorry. The above should say "voting-action.module". That is the one I de-activated.
Now voting goes fine.
Comment #5
eaton commentedThis 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.
Comment #6
(not verified) commented