Jump to:

10993 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » Error on Post with Default Subscribe Form

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1497 Views
  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Error on Post with Default Subscribe Form Link to this post

    Hi,

    I've installed last trunk newsletter and userfom. But when post data from loaded form , I've this error:
    I my form there are 3 fields: Email, LastName and FirstName.

    [Notice] Undefined index: Email
    POST /newsletter/Form

    Line 189 in /var/www/clients/client1/web4/web/newsletter/code/SubscribeForm.php
    Source

    180 function process( $data, $form ) {
    181 // Add the user to the mailing list
    182 $member = Object::create("Member");
    183
    184 // $_REQUEST['showqueries'] = 1;
    185
    186 // map the editables to the data
    187 $obj_field_map = $this->owner->getObjFieldMap();
    188 foreach( $this->Fields() as $editable ) {
    189 $field = $obj_field_map[$editable->Title];
    190 if( !$field )
    191 continue;
    192
    193 // Debug::message( $editable->Name . '->' . $field );
    194
    195 // if( $member->hasField( $field ) )

    Thank you

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: Error on Post with Default Subscribe Form Link to this post

    I've resolved...

    Into the source, the fields name are:

    static $required_fields = array(
    'Email address' => 'EditableEmailField(CanDelete=0)',
    'First name' => 'EditableTextField',
    'Last name' => 'EditableTextField',
    );

    Then, I can't change their name from admin area...

    And , How can I traslate them in other language?

  • firstpixel
    Avatar
    Community Member
    16 Posts

    Re: Error on Post with Default Subscribe Form Link to this post

    Did anyone manage to rename the labels meanwhile. I've got the same problem right now.

    Thanks a lot!

    1497 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.