Jump to:

10990 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » Newsletter csv upload

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1742 Views
  • fvt
    Community Member
    2 Posts

    Newsletter csv upload Link to this post


    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

  • one2gamble
    Community Member
    30 Posts

    Re: Newsletter csv upload Link to this post

    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?

  • one2gamble
    Community Member
    30 Posts

    Re: Newsletter csv upload Link to this post

    meh, turned dev mode off and it completed the upload

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.