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).

#5 2013306-undefined_index_message_notify_email_body-5.patch1.48 KBevilehk
PASSED: [[SimpleTest]]: [MySQL] 69 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


amitaibu’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Did you clear cache?

jweowu’s picture

I 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.

eft’s picture

I 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.

amitaibu’s picture

> Can submit patch if you think this is appropriate solution, Amitai.

Yes, this seems like a relic of older versions.

evilehk’s picture

Category: support » bug
Status: Postponed (maintainer needs more info) » Needs review
1.48 KB
PASSED: [[SimpleTest]]: [MySQL] 69 pass(es). View

I 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.

amitaibu’s picture

Status: Needs review » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.