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.
Notice: Undefined index: target_bundles in message_entity_delete() (line 364 of message/message.module).
When I delete a content, I get the above message.
Comment | File | Size | Author |
---|---|---|---|
#7 | notice_undefined-2040735-7.patch | 690 bytes | joelpittet |
#3 | message.target_bundles.2040735-3.patch | 706 bytes | mcrittenden |
Comments
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedhere is output from devel. Recursion is taking place:
Notice: Undefined index: target_bundles in message_entity_delete() (line 364 of message/message.module). =>
... (Array, 13 elements)
12: message_entity_delete() (Array, 2 elements)
file (String, 61 characters ) /message/mess...message/message.module:364
args (Array, 2 elements)
0 (Object) stdClass
1 (String, 4 characters ) node
11: call_user_func_array() (Array, 1 element)
args (Array, 2 elements)
0 (String, 21 characters ) message_entity_delete | (Callback) message_entity_delete();
1 (Array, 2 elements)
1 (Object) stdClass
∞ (Recursion)
2 (String, 4 characters ) node
10: module_invoke_all() (Array, 2 elements)
file (String, 23 characters ) includes/module.inc:857
args (Array, 3 elements)
0 (String, 13 characters ) entity_delete | (Callback) entity_delete();
1 (Object) stdClass
∞ (Recursion)
2 (String, 4 characters ) node
Comment #2
hazit CreditAttribution: hazit commentedFYI - I get the same message:
Notice: Undefined index: target_bundles in message_entity_delete() (line 360 of profiles\openatrium\modules\contrib\message\message.module).
Message 7.x-1.9+0-dev
Open Atrium Messages 7.x-2.0-beta2+3-dev
Other relevant posts (all duplicates I think):
https://drupal.org/node/2050507
https://drupal.org/node/2051291
https://drupal.org/commitlog/commit/43502/58502ac35c79a2c7bb3ace158363c8...
Comment #3
mcrittenden CreditAttribution: mcrittenden commentedPatch attached.
Comment #4
ranroz CreditAttribution: ranroz commentedlooks ok.
Comment #6
mpotter CreditAttribution: mpotter commentedNot sure why this failed testing. We are using this in Open Atrium for many months now on the -dev of Message.
Comment #7
joelpittetJust a re-roll, the patch applies but may not with git.
Comment #8
andrewbelcher CreditAttribution: andrewbelcher at FreelyGive commentedThis is still an issue now and the patch solves it, would be great to get it committed!
Comment #9
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commentedComment #10
klausiThis patch has been committed to the Message D7 fork at https://gitlab.com/d7security/message/-/commit/388225cb176d0d1b9a50a8e80...
As the Drupal 7 message module is unsupported now on drupal.org you can get security support from the D7Security group. Follow the user guide to participate!