Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba

Newsletter module not working on SS 2.3.2


Go to End
Reply


2 Posts   1087 Views

Avatar
klikhier

Community Member, 150 Posts

12 July 2009 at 10:24am

Have checked out clean install of SS 2.3.2 and latest trunk of newsletter module. All seems to work fine, however when I manually try to add a recepient to the mailing list I receive the following error:

The page at http://localhost says:ERROR [Notice]: Undefined index:  
IN POST /test/silverstripe/admin/newsletter/EditForm?fieldName=Recipients&action_callfieldmethod&methodName=addtogroup
Line 101 in /Sites/test/silverstripe/cms/code/MemberTableField.php

Source
======
  92:  			$csvFieldList[$field] = $field;
  93:  		}
  94:  		
  95:  		if($group) {
  96:  			if(is_object($group)) {
  97:  				$this->group = $group;
  98:  			} elseif(is_numeric($group)) {
  99:  				$this->group = DataObject::get_by_id('Group', $group);
  100: 			}
* 101: 		} else if(isset($_REQUEST['ctf']) && is_numeric($_REQUEST['ctf'][$this->Name()]["ID"])) {
  102: 			$this->group = DataObject::get_by_id('Group', $_REQUEST['ctf'][$this->Name()]["ID"]);
  103: 		}
  104: 
  105: 		foreach(self::$addedFields as $key => $value) {
  106: 			$fieldList[$key] = $value;
  107: 		}

<ul>MemberTableField->__construct(NewsletterAdmin,Recipients,)
line 339 of NewsletterAdmin.php

NewsletterAdmin->getMailingListEditForm(1)
line 273 of NewsletterAdmin.php

NewsletterAdmin->MailingListEditForm()
line 247 of NewsletterAdmin.php

NewsletterAdmin->EditForm(HTTPRequest)
line 167 of Controller.php

Controller->handleAction(HTTPRequest)
line 131 of RequestHandler.php

RequestHandler->handleRequest(HTTPRequest)
line 127 of Controller.php

Controller->handleRequest(HTTPRequest)
line 282 of Director.php

Director::handleRequest(HTTPRequest,Session)
line 123 of Director.php

Director::direct(/admin/newsletter/EditForm)
line 122 of main.php

Avatar
Benedikt

Community Member, 16 Posts

10 February 2010 at 2:00am

I encountered this mistake today.

It occurs when you don't set a Mailing list group for the newsletter type. In order to create a User group go to Security panel and create a group, for example Newsletter Recipients, with no rights. Then select this group on the Newsletter Settings.