I see this error when I attempt to add a newly created content type to a group.

adding content types that ship with commons to groups works great. i noticed that the og form widget is different on my newly created content type: instead of two autocomplete inputs (Your groups and Other groups), it shows me one select box and one autocomplete. the errors below show up when i try to use either input.

additionally, when i used a panels override for the node edit form to show only the group and the submit buttons, submitting the form showed these errors and also un-published the node (??!). not sure if these issues are related.

i also tried enabling the Radioactivity defaults feature, but the errors persisted.

hopefully this is clear enough to be useful!

    Notice: Undefined variable: gids_original in commons_radioactivity_process_node_group_membership_change() (line 171 of /Applications/AMPPS/www/wt/profiles/commons/modules/contrib/commons_radioactivity/commons_radioactivity.module).
    Warning: array_diff() [function.array-diff]: Argument #1 is not an array in commons_radioactivity_process_node_group_membership_change() (line 171 of /Applications/AMPPS/www/wt/profiles/commons/modules/contrib/commons_radioactivity/commons_radioactivity.module).
    Notice: Undefined variable: gids_original in commons_radioactivity_process_node_group_membership_change() (line 173 of /Applications/AMPPS/www/wt/profiles/commons/modules/contrib/commons_radioactivity/commons_radioactivity.module).
    Warning: array_diff() [function.array-diff]: Argument #2 is not an array in commons_radioactivity_process_node_group_membership_change() (line 173 of /Applications/AMPPS/www/wt/profiles/commons/modules/contrib/commons_radioactivity/commons_radioactivity.module).

Comments

ryanrain’s picture

i verified i'm using the most recent dev of the radioactivity module (7.x-2.7+19-dev).

and another error upon changing the groups:

Notice: Undefined property: stdClass::$field_radioactivity in commons_radioactivity_process_node_group_membership_change() (line 181 of /Applications/AMPPS/www/wt/profiles/commons/modules/contrib/commons_radioactivity/commons_radioactivity.module).
Notice: Undefined property: stdClass::$field_radioactivity in commons_radioactivity_process_node_group_membership_change() (line 188 of /Applications/AMPPS/www/wt/profiles/commons/modules/contrib/commons_radioactivity/commons_radioactivity.module).

ryanrain’s picture

another error upon creating a group:

Error message
Notice: Undefined index: radioactivity_timestamp in radioactivity_field_widget_form() (line 378 of /Applications/AMPPS/www/wt/profiles/commons/modules/contrib/radioactivity/radioactivity.field.inc).

also the unpublishing of a node that i mentioned earlier seems unrelated

BarisW’s picture

Version: » 7.x-3.x-dev

I'm getting it too for some nodes during the migration (Migrate API) processing.

File /profiles/commons/modules/contrib/commons_radioactivity/commons_radioactivity.module, line 175 in MigrationBase->errorHandler() (line 530 of /sites/all/modules/contrib/migrate/includes/base.inc).
array_diff(): Argument #1 is not an array

devin carlson’s picture

Status: Active » Closed (duplicate)

The original issue has been fixed in #2038827: Undefined array in _membership_change.

Please test the latest Commons Radioactivity code and open new issues for any other errors you come across.

BarisW’s picture

Thanks Devin, that patch fixed it!