Closed (fixed)
Project:
Drupal Commons
Version:
7.x-3.x-dev
Component:
Radioactivity
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2014 at 14:34 UTC
Updated:
19 Mar 2015 at 11:43 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lsolesen commentedI can confirm this happens on a clean install.
Comment #2
devin carlson commentedThis only occurs when OG Access is enabled.
A patch to add additional checks to ensure that the node has an og_group_ref field and to improve the retrieval of field items.
Comment #3
devin carlson commentedTested #1 with both a fresh and an existing Commons install and verified that it fixed the notice when OG Access was enabled and did not introduce any problems when it is not in use.
Committed to Commons 7.x-3.x.
Comment #5
todoele commentedI get this error on deleting a post assigned to a group:
"Notice: Undefined index: und in commons_radioactivity_groups_node_delete() (line 46 of /mnt/www/html/youspanishdev/docroot/profiles/commons/modules/commons/commons_radioactivity/commons_radioactivity_groups/commons_radioactivity_groups.module)."
On line 46 on the file I see this:
// If this node is a member of groups, generate incidents for each group.
commons_radioactivity_groups_incident_groups($node, -1 * $node->field_radioactivity[LANGUAGE_NONE][0]['radioactivity_energy']);
}
I have noticed that when the post is not assigned to a group the message does not appear.
Also, the message appears when the post has 0 radioactivity. When I assign some radioactivity to the post, even if it is in a group, the notice does not show up when I delete them.
Comment #7
heddnI've opened #2455453: Undefined index: und in commons_radioactivity_groups_node_delete() (line 46 as a follow-up.