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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Newsletter csv upload


Go to End


3 Posts   2604 Views

Avatar
fvt

Community Member, 2 Posts

22 September 2009 at 4:36am

Hi

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.

Thanks.

[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
Source

227 return preg_match( '/.*\.csv$/i', $file['name'] ) > 0;
228 }
229
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 }
238
239 function cancel( $data, $form ) {
240 $newForm = $this->controller->UploadForm( $data['ID'] );
241 return $newForm->forTemplate();
242 }

Trace

* 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

Avatar
one2gamble

Community Member, 30 Posts

6 October 2009 at 3:30am

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?

Avatar
one2gamble

Community Member, 30 Posts

7 October 2009 at 5:04am

Edited: 07/10/2009 5:42am

meh, turned dev mode off and it completed the upload