Closed (fixed)
Project:
OG Node Approval
Version:
6.x-2.0-beta2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
25 Apr 2009 at 01:20 UTC
Updated:
2 Mar 2011 at 04:46 UTC
warning: Invalid argument supplied for foreach() in /home/user/example.com/sites/all/modules/og_node_approval/og_node_approval.module on line 537.
warning: Division by zero in /home/user/example.com/sites/all/modules/og_node_approval/og_node_approval.module on line 544.
I'm getting the above errors when I try to save node into the group. Please fix it.
Comments
Comment #1
mradcliffeHmm, that shouldn't be happening at that point in the code. However I have explicitly defined the array so this should be fixed.
Can you please try out the development version when it is updated later today [edit]?
Comment #2
mradcliffeneeds work?
This does not seem to be working for ozwebguru??
Comment #3
mradcliffeComment #4
rkdesantos commentedThis error has recently popped up on one of my web sites:
warning: Invalid argument supplied for foreach() in /home/example/public_html/sites/all/modules/og_node_approval/og_node_approval.module on line 53
Haven't identified what triggered it and no luck in making it go away either.
I'm running the latest dev version I could find here.
Comment #5
mradcliffeThat error does not correspond to this issue. I've opened up a new issue.
Comment #6
rkdesantos commentedI'm seeing the same error:
warning: Invalid argument supplied for foreach() in /home/site/public_html/sites/all/modules/og_node_approval/og_node_approval.module on line 538.
line 538 corresponds to :
So, the division by zero is fixed but not the invalid argument error.
Comment #7
mradcliffeOkay, I am tracking this in issue, #1059740: Invalid foreach, line 538.