I have the message bellow time after time and it full up my watchdog table in in less than 24hours
"* warning: Invalid argument supplied for foreach() in /home.10.11/bovebuzz/www/modules/contrib/voting_actions/voting_actions.module on line 467.
* warning: Invalid argument supplied for foreach() in /home.10.11/bovebuzz/www/modules/contrib/voting_actions/voting_actions.module on line 467."

I am using voting action in conjonction with

vote_storylink
vote_up_down
voting_actions
votingapi

all in version 4.7 and I didn't install any new module.

I try to erase the node where it happen but it still come back

Any idea ?

Jean-Baptiste

CommentFileSizeAuthor
#3 voting_actions.module.patch8.77 KBsecgeek

Comments

DanielR’s picture

I can reproduce similar behavior with version 5.x-2.0b2.
If I save a new voting action, which has a condition set up but no action selected, I get an error showing up in a red box whenever I try to edit that voting action:
warning: Invalid argument supplied for foreach() in /hsphere/local/home/phugoid/toonut.com/sites/all/modules/voting_actions/voting_actions_ui.inc on line 460.
May have nothing to do with this thread, but I thought it worth mentioning. I can make my error go away by setting an action for the given voting action.

bacchus101’s picture

warning: Invalid argument supplied for foreach() in /home/.plumber/bacchus101/theglobalradio.com/sites/all/modules/voting_actions-5.x-2.0b2/voting_actions/voting_actions_ui.inc on line 428.

I am getting the same thing. Not sure how to proceed. It looks like all development action on this module has ceased.

secgeek’s picture

StatusFileSize
new8.77 KB

Hi,

I solved this prob.here is a patch.

secgeek’s picture

Status: Active » Needs review

chaning the status to patch need review.

tj2653’s picture

I have a similar problem, but I don't see what this patch is doing. The only lines that seem to be added from the 5.x-2.0b2 version are:

+ else{
+ print "Function Does not Exists?
";
+ }

which doesn't fix anything. There are a few more lines that were added, but they are commented out. Am I missing something?

My problem is:

* warning: Invalid argument supplied for foreach() in /mypath/modules/voting_actions/voting_actions.inc on line 160.
* warning: Invalid argument supplied for foreach() in /mypath/modules/voting_actions/voting_actions.inc on line 160.

when I click on a Reset Vote link (Vote Up/Down module) for a node. Clicking on the Reset Vote link for comments works. I'm running Vote Up/Down 5.x-1.x-dev and Voting Actions 5.x-2.0b2, with Drupal 5.3.

Thanks

bacchus101’s picture

Status: Needs review » Closed (fixed)