Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Newsletter [v0.1.1] - Server error #500 after a manual submit

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1401 Views
  • thorsten
    Avatar
    Community Member
    4 Posts

    Newsletter [v0.1.1] - Server error #500 after a manual submit Link to this post

    Hello,

    we have set up a page (type: subscribe form, just one e-mail-field) and a test-newsletter. We want to allow the users to submit their e-mail-addresses manually, but after pressing on submit I just get a "500 Internal Server Error". After that I see another empty (no name and no e-mail-address) entry in my mailing list.

    The form-action is "http://mydomain.de/newsletter/SearchForm".

    The log-file of the server says:

    [Tue Mar 10 13:15:47 2009] [error] [client xxx] malformed header from script. Bad header=No recipient addresses found i: php-cgi, referer: http://mydomain.de/newsletter/
    [Tue Mar 10 13:15:47 2009] [error] [client xxx] suexec failure: could not open log file, referer: http://mydomain.de/newsletter/
    [Tue Mar 10 13:15:47 2009] [error] [client xxx] fopen: Permission denied, referer: http://mydomain.de/newsletter/
    [Tue Mar 10 13:15:47 2009] [error] [client xx] Premature end of script headers: errors.cgi, referer: http://mydomain.de/newsletter/

    Where is the problem?

    Thanks.

  • thorsten
    Avatar
    Community Member
    4 Posts

    Re: Newsletter [v0.1.1] - Server error #500 after a manual submit Link to this post

    We have found a solution for this problem. Just open the file "SubscribeForm.php" (/newsletter/code/") and search for "$email->setFrom( Email::getAdminEmail() );". Add the following above this line: "$email->setTo( $member->Email );".

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