Upon submission of form I get this error:
Cannot modify header information - headers already sent by (output started at /home/invisible/www/www/modules/webform/webform.module(1578) : eval()'d code:1) in /home/invisible/www/www/includes/common.inc on line 319.
and a blank screen, rather than a return to homepage.
Thanks in advance.
Comments
Comment #1
d.sibaud commentedsame problem, but I have no output, neither in the apache error log, it send me to a blank screen in the both cases I put a page to redirect to or a message to show. Please Help
Comment #2
d.sibaud commentedOps, for me was an error in the fckeditor configuration. Solved
Comment #3
quicksketchWhenever an error is caused by "eval()'d code", this mean that you're using a custom PHP snippet on your site. While Drupal is trying to run eval() on the custom code, it is either causing an error or printing something to the output (which will cause errors).
Comment #4
moronicbajebus commented+1 I am getting a blank screen after submission.
Comment #5
moronicbajebus commentedIt give me the blank screen if "E-mail to address:" has an email address. It sends the email fine. With it blank, the user see the correct page after submission.
Comment #6
moronicbajebus commentedI fixed it for myself. Since the theme engine is used to create the emails, it was loading up my theme for my website in particular template.php. Well, template.php outputted whitespace (because of "?> ") which cause the headers to be sent prematurely. The headers were sent before the redirect could be added to the headers.
Comment #7
quicksketchComment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #9
hanskuiters commentedAn additional solution for people finding this post (like I did):
In the fieldset 'Webform advanced settings' you find two textareas, in my case both with a fck editor. And the editor puts a break
in the textareas. And that causes the above mentioned problem. Remove them and problem is solved.
Comment #10
btopro commentedSame goes for tinymce in 6 and 5
Comment #11
thedevnull commentedI had the same problem because of this interaction with FCKEditor. I fixed it with what Capono said:
In the fieldset 'Webform advanced settings' you find two textareas, in my case both with a fck editor. And the editor puts a break
in the textareas. And that causes the above mentioned problem. Remove them and problem is solved.
Thanks!
Comment #12
TwanVeugelers commentedHi.
I had the same issue.
Disabled FCKeditor for those areas, as well as the redirect area.
issues solved.
grtz,
Twan
Comment #13
aaronchristian commentedAlso be aware that when you are posting snippets to have all your code & validation within ONE php tag.
For example, the following will generate a "headers already sent error".
Instead you should make sure all your code is like this;
The space between the 2 snippets "php" tags in the first example is what is causing the error.
Comment #14
ian.d.rossi commentedAaron,
Does this apply for both the additional validation and additional processing sections?
If you have the following in the additional validation section:
and then the following in the additional processing section:
Does that mean that this white screen error will be caused?
Also, how were you able to find out how the "headers already sent error" was caused? Do you know some tricks that can help debug this type of stuff?
Thanks!
Comment #15
somebodysysop commentedI had the same error as everyone else: white screen of death. I removed fckeditor from advanced settings. Same error.
What I had to do was remove fckeditor from my webform form component. That solved the problem for me. But, got this error submission:
I take that back. Even with webform form component removed, still getting white screen of death with NO way to debug the error.
Comment #16
somebodysysop commentedHow did you fix this?
Comment #17
Bensbury commentedI found that FCK editor was putting
(or I had set it to ) in the Additionally validation input boxes.
When you look at the admin screen you can tell, because aside from being in a dropdown, it doesn't show up in the box.
Flip it over to basic input and it was displaying
Hence white screen of death on submission.
And I'm now highly unpopular at the office for the previously non-working company contact form.
Comment #18
davidw commentedComment #19
davidw commentedThank you! I've been stumped by this for months.
Comment #20
mattmm commentedi've disabled FCKeditor on my webform and I still get white screen nor does it redirect to the supplied URL. Anyone else get a different fix?
Comment #21
hanskuiters commentedAfter disabling the FCK, there might still be a html-linebreak left. See http://drupal.org/node/293984#comment-1041632
Comment #22
teodor.sandu commentedThanks #6, that was my issue as well.