Closed (fixed)
Project:
Drupal Commons
Version:
7.x-3.x-dev
Component:
Radioactivity
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
4 Oct 2013 at 20:19 UTC
Updated:
5 Mar 2015 at 21:04 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
japerryPatch
Comment #2
ezra-g commentedLooks reasonable to me.
Comment #3
japerryFixed!
http://drupalcode.org/project/commons.git/commit/8e7ce3e
Comment #5
WebSinPat commentedsetting back to active....sorry....
I have applied the patch but I just now still got the error message when creating a node.
Only difference is now the error message is for line 132, which is where the reference is now after the patch was applied.
Notice: Undefined index: und in commons_radioactivity_incident_node() (line 132 of /usr/www/users/incite/incite7/profiles/commons/modules/contrib/commons_radioactivity/commons_radioactivity.module).Comment #6
devin carlson commented@WebSinPat The patch has been committed and is in Commons 7.x-3.4; you shouldn't have to apply it.
Can you confirm the version of Commons you are using?
Comment #7
WebSinPat commentedAh sorry @Devin Carlson, I forgot to specify I am still on commons 3.3.
Are there other changes other than what's in the patch in #1 needed for this fix?
Comment #8
BarisW commentedEven with 3.4 I'm still getting this notice for some nodes that do have the field, but without a value.
Changing the line from:
to
fixes the issue.
Comment #9
BarisW commentedHere's a patch.
Comment #10
japerryComment #11
japerryEasy. Fixed!
http://drupalcode.org/project/commons.git/commit/4363c44
Comment #13
cosineBob commentedI am running Commons 7.x-3.17. It is a new install, no upgrades. I am suddenly getting this same error message.
Notice: Undefined index: und in commons_radioactivity_incident_node() (line 104 of /var/www/drupal4/profiles/commons/modules/commons/commons_radioactivity/commons_radioactivity.module).
Not sure where it came from or why.
Comment #14
scottzak commentedI can confirm issue occurs on Commons 7.x-3.17 on our existing system upgraded a couple of weeks ago. This happens when adding a new node (group content) to a group. The field_radioactivity key is set in the group node object (checked on line 99), but it points to an empty array so field_radioactivity[LANGUAGE_NONE] returns the message shown.
Backtracking up the call stack, I'm finding that the call to node_load_multiple() in function commons_radioactivity_groups_incident_groups() returns group objects with an empty array for field_radioactivity. There are data rows in the DB with values for that group. All other fields appear to be correctly populated.
What's special about field_radioactivity on a group node?
Comment #15
a1mpreza commentedI am also getting this message when trying to create a post.
I am on a fresh install of 7.x-3.17.
Notice: Undefined index: und in commons_radioactivity_incident_node() (line 104 of profiles/commons/modules/commons/commons_radioactivity/commons_radioactivity.module).
Comment #16
alisoncc commentedI am on a fresh install of 7.x-3.18 and getting the same error message occasionally. Doesn't seem to be easily reproduceable.
Comment #17
alisoncc commentedHow does one re-open a closed issue.
I seem to be getting an increasing number of messages per
"Undefined index: und in commons_radioactivity_incident_node() (line 104"
of late, and that's in the latest release 3.20 of Commons.
Comment #18
webadpro commentedI am also getting those error :/
Comment #19
sdstyles commentedI have this issue on Commons 7.3.20 too, warning appear because radioactivity field is empty.
Here's a patch.
Comment #20
eleuthere commentedI checked that patch : 2105133-radioactivity-notice-19.patch on Commons 3.17 and it worked at least once.
# cd /site directory/profiles/commons/
# patch -p1 < /path to patch directory/2105133-radioactivity-notice-19.patch
patching file modules/commons/commons_radioactivity/commons_radioactivity.module
When I created a new post, I had no more error message.
Comment #21
tuwebo commentedPatch in #19 worked for me to.
Thanks @sdstyles .
Comment #22
devin carlson commentedRestored the fix from #9.