Closed (cannot reproduce)
Project:
OG Audience
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2009 at 14:33 UTC
Updated:
10 Nov 2012 at 08:41 UTC
Happening with drupal-6.10 and -dev packages when add audience edit page.
warning: Missing argument 3 for og_access_alter_nongroup_form(), called in /sites/all/modules/og_audience/og_audience.module on line 153 and defined in /sites/all/modules/og/modules/og_access/og_access.module on line 118.
Comments
Comment #1
David Lesieur commentedCould you indicate you Organic Groups version? Thanks.
Comment #2
likewhoa commentedI can't seem to reproduce this anymore, a recent update must to fixed it. I am postponing this issue for now or until I encounter it again. Thanks for the support.
Comment #3
likewhoa commentedComment #4
mbria commentedSame issue with OG Audience and OpenAtrium (drupal profile) that include last OG stable release.
"warning: Missing argument 3 for og_access_alter_nongroup_form(), called in /var/www/atriumb32/sites/all/modules/groups/og_audience/og_audience.module on line 153 and defined in /var/www/atriumb32/sites/all/modules/contrib/og/modules/og_access/og_access.module on line 155."
The problem appears with on a "no group node" with "Posts with no audience may be added to a group" CHECKED.
If I assign the node to a group and the warning disappears.
Comment #5
jpdaley commentedI have this same issue (and a fix) with this error showing up when no groups are assigned as the audience:
"warning: Missing argument 3 for og_access_alter_nongroup_form(), called in /var/www/atriumb32/sites/all/modules/groups/og_audience/og_audience.module on line 153 and defined in /var/www/atriumb32/sites/all/modules/contrib/og/modules/og_access/og_access.module on line 155."
The problem is that the function in og_access.module is defined as:
function og_access_alter_nongroup_form(&$form, $form_state, $node)
Whereas it is called in og_audience.module (line 153) as:
function og_access_alter_nongroup_form(&$form, $node)
TO FIX: go to the file /sites/all/modules/contrib/og_access/og_access.module
(assuming you are putting your modules in /sites/all/modules/contrib folder)
Edit line 153 to change it
FROM
og_access_alter_nongroup_form($form, $node);
TO
og_access_alter_nongroup_form($form,$form_state, $node);
Save and you are good to go.
I am using the following versions by the way.
OG version 6.x-2.1
OG Audience version 6.x-1.x-dev
Comment #6
likewhoa commentedclosing old ignored issue