I get the following error messages when I try to edit a subscription; Home › Administer › Content management › Mailout › Mailout lists › Edit Mailout list (www.mydomain.com/?q=admin/content/mailout/lists/edit/sub/24)
ie I'm looking at the list of subscribers and I click on a subscribers name to edit it.

* warning: Invalid argument supplied for foreach() in /home/windwand/addon/story/src/drupal-modules/ModuleGroups-EmailNews/mailout/mailout.module on line 693.
* warning: md5() expects parameter 1 to be string, array given in /home/windwand/addon/story/src/drupal-modules/ModuleGroups-EmailNews/mailout/mailout_admin.inc on line 649.
* warning: Invalid argument supplied for foreach() in /home/windwand/addon/story/src/drupal-modules/ModuleGroups-EmailNews/mailout/mailout.module on line 693.
* warning: md5() expects parameter 1 to be string, array given in /home/windwand/addon/story/src/drupal-modules/ModuleGroups-EmailNews/mailout/mailout_admin.inc on line 649.

Below is: List, Email, Display Name, etc. of the person. Have not tried to change anything here and have had no problems so far, simply the error messages.

Comments

tamlin’s picture

Status: Active » Fixed

This has been fixed in the dev release.

To manually fix just this bug. change the following

In mailout.module change line 692
from: $form = variable_get('mailout_subscription_fields', FALSE);
to: $form = variable_get('mailout_subscription_fields', array());

and in mailout_admin.inc change line 649
from: 'old_data' => array('#type' => 'hidden', '#value' => md5($subs[$sub_id]->data)),
to: 'old_data' => array('#type' => 'hidden', '#value' => count($subs[$sub_id]->data) ? md5($subs[$sub_id]->data) : ''),

This stops the warning messages. I'm afraid I'm not a good enough programmer to know what else it does or whether it causes problems of it's own. I just looked at the dev version, found these differences, and applied them. Use at your own risk!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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