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, simon_w

Newsletter csv upload


3 Posts   1751 Views


22 September 2009 at 4:36am Community Member, 2 Posts


I've downloaded the trunk newsletter file today, and installed it. The stable version wouldn't work at all for me - nothing happened when I hit the create button, and nothing appeared in the left column.
I am trying to upload a csv file to the site, but am encountering an error. See below. I have searched and searched to try and resolve this and am having no luck. Any advice?

Any help at all would be much appreciated.


[Notice] Undefined index: Set
POST /SilverStripe-v2.3.3/admin/newsletter/UploadForm

Line 236 in C:\wamp\www\SilverStripe-v2.3.3\newsletter\code\RecipientImportField.php

227       return preg_match( '/.*\.csv$/i', $file['name'] ) > 0;
228    }
230    function confirm( $data, $form ) {
231       $id = $data['ID'];
232       $mailType = DataObject::get_one("NewsletterType", "ID = $id");
233       if($mailType->GroupID)
234          $group = DataObject::get_one("Group", "ID = $mailType->GroupID");
235       // @TODO Look into seeing if $data['Set'] should be removed since it seems to be undefined
236       return $this->importMembers( $id, $group, $data['ImportFileColumns'], $data['Set'] );
237    }
239    function cancel( $data, $form ) {
240       $newForm = $this->controller->UploadForm( $data['ID'] );
241       return $newForm->forTemplate();
242    }


* RecipientImportField_UploadForm->confirm(Array,RecipientImportField_UploadForm,HTTPRequest)
Line 246 of Form.php
* Form->httpSubmission(HTTPRequest)
Line 129 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 143 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 122 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 277 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
* Director::direct(/admin/newsletter/UploadForm)
Line 118 of main.php


6 October 2009 at 3:30am Community Member, 30 Posts

Im having the same issue, did this ever get situated?

Also does SS create a web page in association with the email it tries to send out so that you can provide a click-able link if needed?


7 October 2009 at 5:04am (Last edited: 7 October 2009 5:42am), Community Member, 30 Posts

meh, turned dev mode off and it completed the upload