Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've noticed every once in a while that the node create on radioactivity tries to fire before new nodes are completely made. I think this patch below will fix this screenshot:
Comment | File | Size | Author |
---|---|---|---|
#19 | 2105133-radioactivity-notice-19.patch | 1.36 KB | sdstyles |
#9 | 2105133-remove-notice-in-radioactivity.patch | 591 bytes | BarisW |
#1 | 2105133-radioactivity-notice-2.patch | 966 bytes | japerry |
Screenshot_10_3_13_4_40_PM.png | 194.1 KB | japerry |
Comments
Comment #1
japerryPatch
Comment #2
ezra-g CreditAttribution: ezra-g commentedLooks reasonable to me.
Comment #3
japerryFixed!
http://drupalcode.org/project/commons.git/commit/8e7ce3e
Comment #5
WebSinPat CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: BarisW commentedHere's a patch.
Comment #10
japerryComment #11
japerryEasy. Fixed!
http://drupalcode.org/project/commons.git/commit/4363c44
Comment #13
cosineBob CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: webadpro commentedI am also getting those error :/
Comment #19
sdstyles CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: TuWebO commentedPatch in #19 worked for me to.
Thanks @sdstyles .
Comment #22
Devin Carlson CreditAttribution: Devin Carlson commentedRestored the fix from #9.