I am using Organic Groups in conjunction with Views Block Operations. Whenever I try to perform a group action (such as adding a group to a post), this error appears:

warning: call_user_func(og_add_group_action_validate) [function.call-user-func]: First argument is expected to be a valid callback in /var/www/html/sites/default/modules/views_bulk_operations/views_bulk_operations.module on line 380.

From what I see in the issue queue for the other module, this is a bug in OG because it doesn't provide a _validate function.

From the Actions doc:

If an action is configurable it will provide form, validation and submission functions. The hooks the action supports are declared in the 'hooks' array.

Due to this error, the action does not get performed.

Comments

joewang’s picture

Title: OG Actions no _validate function » OG Actions does not add to group

Nevermind. The error was of no relevance -- Drupal simply does not perform the Action of adding a group to a post. It doesn't throw an error either.

joewang’s picture

Title: OG Actions does not add to group » Add node to OG group does nothing
Project: Organic Groups » Views Bulk Operations (VBO)
Version: 6.x-1.0-rc6 » 6.x-1.x-dev
Component: og.module » Code

I actually did run a test on the Organic Groups action, and it works fine when used with a Trigger (run action after updating post). This narrows the problem down to the Views Bulk Operations module -- it doesn't execute the action?

infojunkie’s picture

Assigned: Unassigned » infojunkie

I was able to reproduce that bug. I'll look into it. Thanks for your report.

infojunkie’s picture

Status: Active » Fixed

Fixed with moshe weitzman's gracious help. You will need to download the latest og-HEAD, or wait until the next stable og release, or manually patch og_actions.module as per the aforementioned issue.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.