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 just installed and enabled message 1.8 and message_example.
I then visited admin/structure/messages and clicked on the 'edit' link for the 'Example - User register' message type: admin/structure/messages/manage/example_user_register
The following PHP notice is thrown:
Notice: Undefined index: message_notify_email_body in message_field_attach_form() (line 561 of message.module).
Comment | File | Size | Author |
---|---|---|---|
#5 | 2013306-undefined_index_message_notify_email_body-5.patch | 1.48 KB | evilehk |
Comments
Comment #1
amitaibuDid you clear cache?
Comment #2
jweowu CreditAttribution: jweowu commentedI believe I did, but I can't confirm it. I do note that I didn't have message_notify installed, and that array key seems like it might well be associated with it?
I *have* since added message_notify, I just tried re-enabling the example module, and I can't reproduce the issue. However I can't reproduce the original error after uninstalling message_notify either.
Feel free to close if you can't see a problem. I (or someone else) can always re-open it if need be.
Comment #3
eft CreditAttribution: eft commentedI had same error. Affected both example_user_register and example_create_node. Traced to strongarm file in message_example.
Removed the file message_example.strongarm.inc from message_example directory and errors went away. I don't know if the strongarm variables were still used or were relics of a previous version.
Can submit patch if you think this is appropriate solution, Amitai.
Comment #4
amitaibu> Can submit patch if you think this is appropriate solution, Amitai.
Yes, this seems like a relic of older versions.
Comment #5
evilehk CreditAttribution: evilehk commentedI experienced this message as well. It can be reproduced on a clean install and enabling the message and message_example modules and their dependencies. Enabling message_notify resolves the problem, and disabling message_notify and running a feature revert on message_example will reproduce it. Here's a patch that removes the message_notify keys from the strongarm values.
Comment #6
amitaibuCommitted, thanks.