Closed (fixed)
Project:
Webform
Version:
6.x-2.6
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 May 2009 at 11:18 UTC
Updated:
21 Aug 2012 at 08:07 UTC
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
Comment #1
quicksketchMy 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.Comment #2
Heilong commentedActually 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.
Comment #3
quicksketchComment #5
manderson311 commentedI'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?
Comment #6
quicksketchTurn 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.
Comment #7
manderson311 commentedNo additional validation or processing.
I tried creating a new form, but it gave me the same result.
I'll try the error_reporting now.
Comment #8
manderson311 commentederror...
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.
Comment #9
quicksketchLooks 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.Comment #10
manderson311 commentedtemplate.php is ok...
starts with
and does NOT end withHow can I dig deeper in to this problem?
Comment #11
quicksketchHmm, 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.
Comment #12
manderson311 commentedYeah I'm positive it's the right template.php
Comment #13
quicksketchHm, 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.
Comment #14
manderson311 commentedI 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?
Comment #15
quicksketchIt 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.
Comment #16
drupalgambatte commentedI 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