Cannot subscribe to single list.

Darren Phillips - August 21, 2008 - 06:29
Project:phplist Integration Module
Version:5.x-1.0
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

cbrody - August 21, 2008 - 16:53

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

#2

Darren Phillips - August 26, 2008 - 06:01

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.

#3

paulbeaney - September 4, 2008 - 07:39

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

#4

paulbeaney - November 26, 2009 - 11:21
Status:active» closed

No activity for (well) over 2 weeks

 
 

Drupal is a registered trademark of Dries Buytaert.