Hi everyone,

I have a basic webform Name, Email, Message to react like a contact form. The problem is when the user submit the form it's redirected to a blank page and by refreshing the page, an email sending error appear but the mail is sent.

Any idea ?

Comments

quicksketch’s picture

My guess is that you have a WYSIWYG editor enabled on your site. WYSIWYGs have a bad habit of inserting empty <p></p> tags into textareas, causing your result page to appear empty. Try disabling the WYSIWYG for all text areas within webform, including the body, confirmation page, additional processing and validation, and select list options.

Heilong’s picture

Actually I have FCKEditor already disabled but the problem was coming from the additional processing which contained some extra characters. Just deleted it and it's working fine.
Thanks.

quicksketch’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

manderson311’s picture

Status: Closed (fixed) » Needs review

I'm having this same problem here... zee-bar.com/private-parties

When I click the submit button, it goes to a blank page. I did have the WYSIWYG module enabled but I disabled it.

Any ideas?

quicksketch’s picture

Turn on error_reporting on your site in your php.ini file. "Whitescreen" could be any number of problems and it's hard to know what's wrong if you're not seeing the error. My guess is this is the same problem however. You probably have code in your "Additional validation" or "Additional processing" fields that is throwing an error. Try creating a new form and I'll bet you won't have the problem there. Check those fields and make sure they are empty.

manderson311’s picture

No additional validation or processing.

I tried creating a new form, but it gave me the same result.

I'll try the error_reporting now.

manderson311’s picture

error...

Cannot modify header information - headers already sent by (output started at /home/content/18/4832418/html/themes/home/template.php:1) in /home/content/18/4832418/html/includes/common.inc on line 328.

quicksketch’s picture

Looks like you have a problem in your theme. From the error it probably means you have blank lines at the top of your template.php file. You need to make sure that the VERY FIRST line is <?php, without any space before it. Also make sure you do NOT have a closing ?> at the end of the file.

manderson311’s picture

template.php is ok...

starts with and does NOT end with

How can I dig deeper in to this problem?

quicksketch’s picture

Hmm, I'm skeptical. The error pretty clearly states that "output started" in "themes/home/template.php". Are you sure you checked the right template.php? We've left the scope of support provided in the Webform queue, since this constitutes a theming question.

manderson311’s picture

Yeah I'm positive it's the right template.php

quicksketch’s picture

Hm, well try switching your theme to Garland. I think that will "fix" things because the error is claiming that the problem is with your theme's template.php. At least then you'll know it's the theme and not something else.

manderson311’s picture

I must have missed something because this webform works on my dev site. I just recently released this site, but now that webform doesn't work.

Can you think of anything that I may have missed when I moved the site over?

quicksketch’s picture

Status: Needs review » Closed (fixed)

It sounds like something is wrong with the files themselves, like they might be in the wrong encoding or something. However I think we've gotten as far as I can help with, clearly this isn't a question about Webform.

drupalgambatte’s picture

I experienced same blank page after submitting webform,
so deleted and recreated but no solution,
then I tried contact form and saw the same blankpage after sumbitting the ordinary contact form,
in order to find out what's wrong, ı added php.ini file with display errors on, and got the message about PDO classes,
searching
http://drupal.org/node/570452
just added the following lines to php.ini
extension=pdo.so
extension=pdo_mysql.so
and the problem was solved