If phplist only has 1 list it is not listed on the subscribe page which is fine. However when I try and subscribe as an anonymous user I get an error message.

Oops, you have not been added to the mailing list; please contact a site administrator.

The actual response from phplist is a subscribe page with a message telling me to select a list.

Subscribe to one or more of our newsletters using the form below

All field with labels in red text are required fields.

Please select a newsletter to subscribe to

If there is more than 1 list I get the check boxes and subscribing works fine.

Comments

cbrody’s picture

I am getting the same error message, with only one active list.

darrenphillips’s picture

I found and fixed a couple of problems.

From line 891 of phplist.module I changed this:
'#value' => array_keys($options),
to this:
'#value' => $options,

From line 962 of phplist.modules I changes this:
$data['list'. $listkey] = 'subscribe';
to this:
$data['list'. $listkey] = 'signup';

Works for me.

paulbeaney’s picture

I'm wondering if there isn't something wrong with the way I'm updating the code on Drupal.org, as this change is in my source; I am just updating the Development version now - when you check back here, please go and download that version of the module as it will be the latest one with all patches/fixes in it.

Regards,

- Paul

paulbeaney’s picture

Status: Active » Closed (fixed)

No activity for (well) over 2 weeks