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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

Newsletter [v0.1.1] - Server error #500 after a manual submit


Go to End


2 Posts   2014 Views

Avatar
thorsten

Community Member, 4 Posts

11 March 2009 at 1:19am

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.

Avatar
thorsten

Community Member, 4 Posts

13 March 2009 at 3:05am

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 );".