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 [v0.1.1] - Server error #500 after a manual submit


Go to End


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