Needs work
Project:
OG Contact
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2011 at 13:37 UTC
Updated:
16 May 2013 at 18:56 UTC
Jump to comment: Most recent file
I get the following error after submitting a og contact form.
Warning: Invalid argument supplied for foreach() in og_contact_get_recipients() (line 194 of /sites/all/modules/og_contact/og_contact.pages.inc).
I believe line 194 needs altering to foreach ($admin_query as $admin) {
Is anyone else getting this?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | swapping_for_each_argument-1309802-1.patch | 609 bytes | md2 |
Comments
Comment #1
md2 commentedThe following patch seems to fix the issue by correcting the order of the foreach arguments.
Comment #2
gnat commentedThanks for the report and the patch!
I'm setting this to "needs work" not because your patch doesn't fix the bug, but because bc was working on a larger patch set and rewrite of that function. I'm going to see where they are with that, and see if I can get that into the module.
If I don't hear back soonish, I'll roll this into next -dev release.
Comment #3
md2 commentedYes no worries, its a stupidly small patch anyhows :)
Comment #4
bassthiam commentedHello there,
i bumped on this issue while searching for a og mass_contact module.
@gnat we still waiting for bc's lager patch & i'm wondering why since 2011 nobody there are no more comments on this page.
Subscribing,
but i think that it will be great if we can have a look at bc's work and try to continue with.
Comment #5
greg.1.anderson commentedThis is fixed in the current 7.x-1.x-dev.
Comment #6
greg.1.anderson commentedMy mistake; this is fixed by the patch in #1701418: Support for OG 7.x-2.x. This could be closed as a duplicate, though, I think.