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

David Lesieur’s picture

Could you indicate you Organic Groups version? Thanks.

likewhoa’s picture

Status: Active » Postponed

I 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.

likewhoa’s picture

Status: Postponed » Closed (fixed)
mbria’s picture

Status: Closed (fixed) » Active

Same 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.

jpdaley’s picture

I 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

likewhoa’s picture

Status: Active » Closed (cannot reproduce)

closing old ignored issue