Jump to:

10930 Posts in 2613 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Newsletter module not working on SS 2.3.2

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 986 Views
  • klikhier
    Avatar
    Community Member
    150 Posts

    Newsletter module not working on SS 2.3.2 Link to this post

    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

  • Benedikt
    Avatar
    Community Member
    16 Posts

    Re: Newsletter module not working on SS 2.3.2 Link to this post

    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.

    986 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.